diff --git a/.release/ci.hcl b/.release/ci.hcl index 99610e492..5074b3e1f 100644 --- a/.release/ci.hcl +++ b/.release/ci.hcl @@ -7,7 +7,7 @@ project "nomad" { team = "nomad" slack { - notification_channel = "C03B5EWFW01" + notification_channel = "CUYKT2A73" } github { diff --git a/CHANGELOG.md b/CHANGELOG.md index 247eac69a..e72d389d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,26 @@ +## 1.10.3 (July 08, 2025) + +IMPROVEMENTS: + +* consul: Added kind field to service block for Consul service registrations [[GH-26170](https://github.com/hashicorp/nomad/issues/26170)] +* docker: Added support for cgroup namespaces in the task config [[GH-25927](https://github.com/hashicorp/nomad/issues/25927)] +* task environment: new NOMAD_UNIX_ADDR env var points to the task API unix socket, for use with workload identity [[GH-25598](https://github.com/hashicorp/nomad/issues/25598)] + +BUG FIXES: + +* agent: Fixed a bug to prevent a possible panic during graceful shutdown [[GH-26018](https://github.com/hashicorp/nomad/issues/26018)] +* agent: Fixed a bug to prevent panic during graceful server shutdown [[GH-26171](https://github.com/hashicorp/nomad/issues/26171)] +* agent: Fixed bug where agent would exit early from graceful shutdown when managed by systemd [[GH-26023](https://github.com/hashicorp/nomad/issues/26023)] +* cli: Fix panic when restarting stopped job with no scaling policies [[GH-26131](https://github.com/hashicorp/nomad/issues/26131)] +* cli: Fixed a bug in the `tls cert create` command that always added ``".global.nomad"` to the certificate DNS names, even when the specified region was not ``"global"`. [[GH-26086](https://github.com/hashicorp/nomad/issues/26086)] +* cli: Fixed a bug where the `acl token self` command only performed lookups for tokens set as environment variables and not by the `-token` flag. [[GH-26183](https://github.com/hashicorp/nomad/issues/26183)] +* client: Attempt to rollback directory creation when the `mkdir` plugin fails to perform ownership changes on it [[GH-26194](https://github.com/hashicorp/nomad/issues/26194)] +* client: Fixed bug where drained batch jobs would not be rescheduled if no eligible nodes were immediately available [[GH-26025](https://github.com/hashicorp/nomad/issues/26025)] +* docker: Fixed a bug where very low resources.cpu values could generate invalid cpu weights on hosts with very large client.cpu_total_compute values [[GH-26081](https://github.com/hashicorp/nomad/issues/26081)] +* host volumes: Fixed a bug where volumes with server-terminal allocations could be deleted from clients but not the state store [[GH-26213](https://github.com/hashicorp/nomad/issues/26213)] +* tls: Fixed a bug where reloading the Nomad server process with an updated `tls.verify_server_hostname` configuration parameter would not apply an update to internal RPC handler verification and require a full server restart [[GH-26107](https://github.com/hashicorp/nomad/issues/26107)] +* vault: Fixed a bug where non-periodic tokens would not have their TTL incremented to the lease duration [[GH-26041](https://github.com/hashicorp/nomad/issues/26041)] + ## 1.10.2 (June 09, 2025) BREAKING CHANGES: diff --git a/client/structs/structs.generated.go b/client/structs/structs.generated.go new file mode 100644 index 000000000..ac666809b --- /dev/null +++ b/client/structs/structs.generated.go @@ -0,0 +1,12731 @@ +//go:build codegen_generated +// +build codegen_generated + +// Code generated by codecgen - DO NOT EDIT. + +package structs + +import ( + "errors" + codec1978 "github.com/hashicorp/go-msgpack/v2/codec" + pkg1_hoststats "github.com/hashicorp/nomad/client/hoststats" + pkg4_structs "github.com/hashicorp/nomad/nomad/structs" + pkg2_device "github.com/hashicorp/nomad/plugins/device" + pkg3_structs "github.com/hashicorp/nomad/plugins/shared/structs" + "runtime" + "strconv" + "time" +) + +const ( + // ----- content types ---- + codecSelferCcUTF8102 = 1 + codecSelferCcRAW102 = 255 + // ----- value types used ---- + codecSelferValueTypeArray102 = 10 + codecSelferValueTypeMap102 = 9 + codecSelferValueTypeString102 = 6 + codecSelferValueTypeInt102 = 2 + codecSelferValueTypeUint102 = 3 + codecSelferValueTypeFloat102 = 4 + codecSelferBitsize102 = uint8(32 << (^uint(0) >> 63)) +) + +var ( + errCodecSelferOnlyMapOrArrayEncodeToStruct102 = errors.New(`only encoded map or array can be decoded into a struct`) +) + +type codecSelfer102 struct{} + +func init() { + if codec1978.GenVersion != 10 { + _, file, _, _ := runtime.Caller(0) + panic("codecgen version mismatch: current: 10, need " + strconv.FormatInt(int64(codec1978.GenVersion), 10) + ". Re-generate file: " + file) + } + if false { + var _ byte = 0 // reference the types, but skip this branch at build/run time + var v0 pkg1_hoststats.HostStats + var v1 pkg4_structs.QueryMeta + var v2 pkg2_device.DeviceGroupStats + var v3 pkg3_structs.StatValue + var v4 time.Time + _, _, _, _, _ = v0, v1, v2, v3, v4 + } +} + +func (x *RpcError) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Message)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Message\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Message`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Message)) + } + } + } + var yyn6 bool + if x.Code == nil { + yyn6 = true + goto LABEL6 + } + LABEL6: + if yyr2 || yy2arr2 { + if yyn6 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Code == nil { + r.EncodeNil() + } else { + yy7 := *x.Code + if false { + } else { + r.EncodeInt(int64(yy7)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Code\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Code`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.Code == nil { + r.EncodeNil() + } else { + yy9 := *x.Code + if false { + } else { + r.EncodeInt(int64(yy9)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *RpcError) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *RpcError) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Message": + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = (string)(r.DecodeString()) + } + case "Code": + if r.TryDecodeAsNil() { + if true && x.Code != nil { + x.Code = nil + } + } else { + if x.Code == nil { + x.Code = new(int64) + } + + if false { + } else { + *x.Code = (int64)(r.DecodeInt64()) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *RpcError) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Code != nil { + x.Code = nil + } + } else { + if x.Code == nil { + x.Code = new(int64) + } + + if false { + } else { + *x.Code = (int64)(r.DecodeInt64()) + } + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *ClientStatsResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + var yyn3 bool + if x.HostStats == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.HostStats == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt4 := z.Extension(z.I2Rtid(x.HostStats)); yyxt4 != nil { + z.EncExtension(x.HostStats, yyxt4) + } else { + z.EncFallback(x.HostStats) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HostStats\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `HostStats`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.HostStats == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.HostStats)); yyxt5 != nil { + z.EncExtension(x.HostStats, yyxt5) + } else { + z.EncFallback(x.HostStats) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ClientStatsResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *ClientStatsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "HostStats": + if r.TryDecodeAsNil() { + if true && x.HostStats != nil { + x.HostStats = nil + } + } else { + if x.HostStats == nil { + x.HostStats = new(pkg1_hoststats.HostStats) + } + + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.HostStats)); yyxt5 != nil { + z.DecExtension(x.HostStats, yyxt5) + } else { + z.DecFallback(x.HostStats, false) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ClientStatsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.HostStats != nil { + x.HostStats = nil + } + } else { + if x.HostStats == nil { + x.HostStats = new(pkg1_hoststats.HostStats) + } + + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.HostStats)); yyxt13 != nil { + z.DecExtension(x.HostStats, yyxt13) + } else { + z.DecFallback(x.HostStats, false) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *MonitorRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(18) + } else { + r.WriteMapStart(18) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LogLevel))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.LogLevel)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LogLevel\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `LogLevel`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LogLevel))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.LogLevel)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.LogJSON)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LogJSON\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `LogJSON`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.LogJSON)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.LogIncludeLocation)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LogIncludeLocation\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `LogIncludeLocation`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.LogIncludeLocation)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ServerID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.ServerID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ServerID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `ServerID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ServerID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.ServerID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.PlainText)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PlainText\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `PlainText`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.PlainText)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt31 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt31 != nil { + z.EncExtension(x.MaxQueryTime, yyxt31) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt32 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt32 != nil { + z.EncExtension(x.MaxQueryTime, yyxt32) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *MonitorRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *MonitorRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "LogLevel": + if r.TryDecodeAsNil() { + x.LogLevel = "" + } else { + x.LogLevel = (string)(r.DecodeString()) + } + case "LogJSON": + if r.TryDecodeAsNil() { + x.LogJSON = false + } else { + x.LogJSON = (bool)(r.DecodeBool()) + } + case "LogIncludeLocation": + if r.TryDecodeAsNil() { + x.LogIncludeLocation = false + } else { + x.LogIncludeLocation = (bool)(r.DecodeBool()) + } + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "ServerID": + if r.TryDecodeAsNil() { + x.ServerID = "" + } else { + x.ServerID = (string)(r.DecodeString()) + } + case "PlainText": + if r.TryDecodeAsNil() { + x.PlainText = false + } else { + x.PlainText = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { + z.DecExtension(x.MaxQueryTime, yyxt14) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *MonitorRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj23 int + var yyb23 bool + var yyhl23 bool = l >= 0 + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LogLevel = "" + } else { + x.LogLevel = (string)(r.DecodeString()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LogJSON = false + } else { + x.LogJSON = (bool)(r.DecodeBool()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LogIncludeLocation = false + } else { + x.LogIncludeLocation = (bool)(r.DecodeBool()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ServerID = "" + } else { + x.ServerID = (string)(r.DecodeString()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PlainText = false + } else { + x.PlainText = (bool)(r.DecodeBool()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt34 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt34 != nil { + z.DecExtension(x.MaxQueryTime, yyxt34) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj23-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocFileInfo) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.IsDir)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IsDir\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `IsDir`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.IsDir)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Size)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Size\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Size`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Size)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.FileMode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.FileMode)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FileMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `FileMode`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.FileMode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.FileMode)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.ModTime) + } else if yyxt16 := z.Extension(z.I2Rtid(x.ModTime)); yyxt16 != nil { + z.EncExtension(x.ModTime, yyxt16) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.ModTime) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.ModTime) + } else { + z.EncFallback(x.ModTime) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `ModTime`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.ModTime) + } else if yyxt17 := z.Extension(z.I2Rtid(x.ModTime)); yyxt17 != nil { + z.EncExtension(x.ModTime, yyxt17) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.ModTime) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.ModTime) + } else { + z.EncFallback(x.ModTime) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ContentType))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.ContentType)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ContentType\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `ContentType`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ContentType))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.ContentType)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocFileInfo) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *AllocFileInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "IsDir": + if r.TryDecodeAsNil() { + x.IsDir = false + } else { + x.IsDir = (bool)(r.DecodeBool()) + } + case "Size": + if r.TryDecodeAsNil() { + x.Size = 0 + } else { + x.Size = (int64)(r.DecodeInt64()) + } + case "FileMode": + if r.TryDecodeAsNil() { + x.FileMode = "" + } else { + x.FileMode = (string)(r.DecodeString()) + } + case "ModTime": + if r.TryDecodeAsNil() { + x.ModTime = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.ModTime = r.DecodeTime() + } else if yyxt9 := z.Extension(z.I2Rtid(x.ModTime)); yyxt9 != nil { + z.DecExtension(x.ModTime, yyxt9) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.ModTime) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.ModTime) + } else { + z.DecFallback(&x.ModTime, false) + } + } + case "ContentType": + if r.TryDecodeAsNil() { + x.ContentType = "" + } else { + x.ContentType = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocFileInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.IsDir = false + } else { + x.IsDir = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Size = 0 + } else { + x.Size = (int64)(r.DecodeInt64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.FileMode = "" + } else { + x.FileMode = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModTime = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.ModTime = r.DecodeTime() + } else if yyxt17 := z.Extension(z.I2Rtid(x.ModTime)); yyxt17 != nil { + z.DecExtension(x.ModTime, yyxt17) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.ModTime) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.ModTime) + } else { + z.DecFallback(&x.ModTime, false) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ContentType = "" + } else { + x.ContentType = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *FsListRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(14) + } else { + r.WriteMapStart(14) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Path)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Path\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Path`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Path)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { + z.EncExtension(x.MaxQueryTime, yyxt19) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.EncExtension(x.MaxQueryTime, yyxt20) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *FsListRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *FsListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "Path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *FsListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj19 int + var yyb19 bool + var yyhl19 bool = l >= 0 + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { + z.DecExtension(x.MaxQueryTime, yyxt26) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj19-1, "") + } + r.ReadArrayEnd() +} + +func (x *FsListResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Files == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocFileInfo(([]*AllocFileInfo)(x.Files), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Files\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Files`) + } + r.WriteMapElemValue() + if x.Files == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocFileInfo(([]*AllocFileInfo)(x.Files), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *FsListResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *FsListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Files": + if r.TryDecodeAsNil() { + x.Files = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocFileInfo((*[]*AllocFileInfo)(&x.Files), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *FsListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Files = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocFileInfo((*[]*AllocFileInfo)(&x.Files), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *FsStatRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(14) + } else { + r.WriteMapStart(14) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Path)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Path\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Path`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Path)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { + z.EncExtension(x.MaxQueryTime, yyxt19) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.EncExtension(x.MaxQueryTime, yyxt20) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *FsStatRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *FsStatRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "Path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *FsStatRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj19 int + var yyb19 bool + var yyhl19 bool = l >= 0 + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { + z.DecExtension(x.MaxQueryTime, yyxt26) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj19-1, "") + } + r.ReadArrayEnd() +} + +func (x *FsStatResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + var yyn3 bool + if x.Info == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Info == nil { + r.EncodeNil() + } else { + x.Info.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Info\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Info`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Info == nil { + r.EncodeNil() + } else { + x.Info.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *FsStatResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *FsStatResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Info": + if r.TryDecodeAsNil() { + if true && x.Info != nil { + x.Info = nil + } + } else { + if x.Info == nil { + x.Info = new(AllocFileInfo) + } + + x.Info.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *FsStatResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Info != nil { + x.Info = nil + } + } else { + if x.Info == nil { + x.Info = new(AllocFileInfo) + } + + x.Info.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.DecExtension(x.LastContact, yyxt14) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *FsStreamRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(19) + } else { + r.WriteMapStart(19) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Path)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Path\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Path`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Path)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Offset)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Offset\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Offset`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Offset)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Origin))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Origin)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Origin\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Origin`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Origin))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Origin)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.PlainText)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PlainText\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `PlainText`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.PlainText)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Limit)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Limit\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Limit`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Limit)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Follow)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Follow\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Follow`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Follow)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt34 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt34 != nil { + z.EncExtension(x.MaxQueryTime, yyxt34) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt35 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt35 != nil { + z.EncExtension(x.MaxQueryTime, yyxt35) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *FsStreamRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *FsStreamRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "Path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = (string)(r.DecodeString()) + } + case "Offset": + if r.TryDecodeAsNil() { + x.Offset = 0 + } else { + x.Offset = (int64)(r.DecodeInt64()) + } + case "Origin": + if r.TryDecodeAsNil() { + x.Origin = "" + } else { + x.Origin = (string)(r.DecodeString()) + } + case "PlainText": + if r.TryDecodeAsNil() { + x.PlainText = false + } else { + x.PlainText = (bool)(r.DecodeBool()) + } + case "Limit": + if r.TryDecodeAsNil() { + x.Limit = 0 + } else { + x.Limit = (int64)(r.DecodeInt64()) + } + case "Follow": + if r.TryDecodeAsNil() { + x.Follow = false + } else { + x.Follow = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt15 != nil { + z.DecExtension(x.MaxQueryTime, yyxt15) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *FsStreamRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj24 int + var yyb24 bool + var yyhl24 bool = l >= 0 + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = (string)(r.DecodeString()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Offset = 0 + } else { + x.Offset = (int64)(r.DecodeInt64()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Origin = "" + } else { + x.Origin = (string)(r.DecodeString()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PlainText = false + } else { + x.PlainText = (bool)(r.DecodeBool()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Limit = 0 + } else { + x.Limit = (int64)(r.DecodeInt64()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Follow = false + } else { + x.Follow = (bool)(r.DecodeBool()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt36 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt36 != nil { + z.DecExtension(x.MaxQueryTime, yyxt36) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj24-1, "") + } + r.ReadArrayEnd() +} + +func (x *FsLogsRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(19) + } else { + r.WriteMapStart(19) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Task)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Task\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Task`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Task)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LogType))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.LogType)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LogType\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `LogType`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LogType))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.LogType)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Offset)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Offset\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Offset`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Offset)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Origin))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Origin)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Origin\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Origin`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Origin))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Origin)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.PlainText)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PlainText\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `PlainText`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.PlainText)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Follow)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Follow\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Follow`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Follow)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt34 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt34 != nil { + z.EncExtension(x.MaxQueryTime, yyxt34) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt35 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt35 != nil { + z.EncExtension(x.MaxQueryTime, yyxt35) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *FsLogsRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *FsLogsRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "Task": + if r.TryDecodeAsNil() { + x.Task = "" + } else { + x.Task = (string)(r.DecodeString()) + } + case "LogType": + if r.TryDecodeAsNil() { + x.LogType = "" + } else { + x.LogType = (string)(r.DecodeString()) + } + case "Offset": + if r.TryDecodeAsNil() { + x.Offset = 0 + } else { + x.Offset = (int64)(r.DecodeInt64()) + } + case "Origin": + if r.TryDecodeAsNil() { + x.Origin = "" + } else { + x.Origin = (string)(r.DecodeString()) + } + case "PlainText": + if r.TryDecodeAsNil() { + x.PlainText = false + } else { + x.PlainText = (bool)(r.DecodeBool()) + } + case "Follow": + if r.TryDecodeAsNil() { + x.Follow = false + } else { + x.Follow = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt15 != nil { + z.DecExtension(x.MaxQueryTime, yyxt15) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *FsLogsRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj24 int + var yyb24 bool + var yyhl24 bool = l >= 0 + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Task = "" + } else { + x.Task = (string)(r.DecodeString()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LogType = "" + } else { + x.LogType = (string)(r.DecodeString()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Offset = 0 + } else { + x.Offset = (int64)(r.DecodeInt64()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Origin = "" + } else { + x.Origin = (string)(r.DecodeString()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PlainText = false + } else { + x.PlainText = (bool)(r.DecodeBool()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Follow = false + } else { + x.Follow = (bool)(r.DecodeBool()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt36 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt36 != nil { + z.DecExtension(x.MaxQueryTime, yyxt36) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj24-1, "") + } + r.ReadArrayEnd() +} + +func (x *StreamErrWrapper) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + var yyn3 bool + if x.Error == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Error == nil { + r.EncodeNil() + } else { + x.Error.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Error\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Error`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Error == nil { + r.EncodeNil() + } else { + x.Error.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Payload == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Payload)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Payload\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Payload`) + } + r.WriteMapElemValue() + if x.Payload == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Payload)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *StreamErrWrapper) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *StreamErrWrapper) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Error": + if r.TryDecodeAsNil() { + if true && x.Error != nil { + x.Error = nil + } + } else { + if x.Error == nil { + x.Error = new(RpcError) + } + + x.Error.CodecDecodeSelf(d) + } + case "Payload": + if r.TryDecodeAsNil() { + x.Payload = nil + } else { + if false { + } else { + x.Payload = r.DecodeBytes(([]byte)(x.Payload), false) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *StreamErrWrapper) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Error != nil { + x.Error = nil + } + } else { + if x.Error == nil { + x.Error = new(RpcError) + } + + x.Error.CodecDecodeSelf(d) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Payload = nil + } else { + if false { + } else { + x.Payload = r.DecodeBytes(([]byte)(x.Payload), false) + } + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocExecRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(18) + } else { + r.WriteMapStart(18) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Task)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Task\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Task`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Task)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Tty)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Tty\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Tty`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Tty)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Cmd == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Cmd), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Cmd\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Cmd`) + } + r.WriteMapElemValue() + if x.Cmd == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Cmd), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Action))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Action)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Action\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Action`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Action))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Action)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt31 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt31 != nil { + z.EncExtension(x.MaxQueryTime, yyxt31) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt32 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt32 != nil { + z.EncExtension(x.MaxQueryTime, yyxt32) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocExecRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *AllocExecRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "Task": + if r.TryDecodeAsNil() { + x.Task = "" + } else { + x.Task = (string)(r.DecodeString()) + } + case "Tty": + if r.TryDecodeAsNil() { + x.Tty = false + } else { + x.Tty = (bool)(r.DecodeBool()) + } + case "Cmd": + if r.TryDecodeAsNil() { + x.Cmd = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Cmd), d) + } + } + case "Action": + if r.TryDecodeAsNil() { + x.Action = "" + } else { + x.Action = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt15 != nil { + z.DecExtension(x.MaxQueryTime, yyxt15) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocExecRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj24 int + var yyb24 bool + var yyhl24 bool = l >= 0 + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Task = "" + } else { + x.Task = (string)(r.DecodeString()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Tty = false + } else { + x.Tty = (bool)(r.DecodeBool()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Cmd = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Cmd), d) + } + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Action = "" + } else { + x.Action = (string)(r.DecodeString()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt36 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt36 != nil { + z.DecExtension(x.MaxQueryTime, yyxt36) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj24-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocChecksRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.EncExtension(x.MaxQueryTime, yyxt13) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { + z.EncExtension(x.MaxQueryTime, yyxt14) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocChecksRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *AllocChecksRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { + z.DecExtension(x.MaxQueryTime, yyxt8) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocChecksRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt23 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt23 != nil { + z.DecExtension(x.MaxQueryTime, yyxt23) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocChecksResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.EncExtension(x.LastContact, yyxt7) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.EncExtension(x.LastContact, yyxt8) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Results == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstructs_CheckIDPtrtostructs_CheckQueryResult((map[pkg4_structs.CheckID]*pkg4_structs.CheckQueryResult)(x.Results), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Results\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Results`) + } + r.WriteMapElemValue() + if x.Results == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstructs_CheckIDPtrtostructs_CheckQueryResult((map[pkg4_structs.CheckID]*pkg4_structs.CheckQueryResult)(x.Results), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocChecksResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *AllocChecksResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt6 := z.Extension(z.I2Rtid(x.LastContact)); yyxt6 != nil { + z.DecExtension(x.LastContact, yyxt6) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Results": + if r.TryDecodeAsNil() { + x.Results = nil + } else { + if false { + } else { + h.decMapstructs_CheckIDPtrtostructs_CheckQueryResult((*map[pkg4_structs.CheckID]*pkg4_structs.CheckQueryResult)(&x.Results), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocChecksResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.DecExtension(x.LastContact, yyxt14) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Results = nil + } else { + if false { + } else { + h.decMapstructs_CheckIDPtrtostructs_CheckQueryResult((*map[pkg4_structs.CheckID]*pkg4_structs.CheckQueryResult)(&x.Results), d) + } + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocStatsRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(14) + } else { + r.WriteMapStart(14) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Task)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Task\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Task`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Task)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { + z.EncExtension(x.MaxQueryTime, yyxt19) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.EncExtension(x.MaxQueryTime, yyxt20) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocStatsRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *AllocStatsRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "Task": + if r.TryDecodeAsNil() { + x.Task = "" + } else { + x.Task = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocStatsRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj19 int + var yyb19 bool + var yyhl19 bool = l >= 0 + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Task = "" + } else { + x.Task = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { + z.DecExtension(x.MaxQueryTime, yyxt26) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj19-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocStatsResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + var yyn3 bool + if x.Stats == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Stats == nil { + r.EncodeNil() + } else { + x.Stats.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Stats\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Stats`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Stats == nil { + r.EncodeNil() + } else { + x.Stats.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocStatsResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *AllocStatsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Stats": + if r.TryDecodeAsNil() { + if true && x.Stats != nil { + x.Stats = nil + } + } else { + if x.Stats == nil { + x.Stats = new(AllocResourceUsage) + } + + x.Stats.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocStatsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Stats != nil { + x.Stats = nil + } + } else { + if x.Stats == nil { + x.Stats = new(AllocResourceUsage) + } + + x.Stats.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.DecExtension(x.LastContact, yyxt14) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *MemoryStats) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.RSS)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RSS\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `RSS`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.RSS)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Cache)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Cache\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Cache`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Cache)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Swap)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Swap\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Swap`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Swap)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MappedFile)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MappedFile\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MappedFile`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MappedFile)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Usage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Usage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Usage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Usage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MaxUsage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxUsage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MaxUsage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MaxUsage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.KernelUsage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KernelUsage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `KernelUsage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.KernelUsage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.KernelMaxUsage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KernelMaxUsage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `KernelMaxUsage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.KernelMaxUsage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Measured == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Measured), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Measured\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Measured`) + } + r.WriteMapElemValue() + if x.Measured == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Measured), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *MemoryStats) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *MemoryStats) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "RSS": + if r.TryDecodeAsNil() { + x.RSS = 0 + } else { + x.RSS = (uint64)(r.DecodeUint64()) + } + case "Cache": + if r.TryDecodeAsNil() { + x.Cache = 0 + } else { + x.Cache = (uint64)(r.DecodeUint64()) + } + case "Swap": + if r.TryDecodeAsNil() { + x.Swap = 0 + } else { + x.Swap = (uint64)(r.DecodeUint64()) + } + case "MappedFile": + if r.TryDecodeAsNil() { + x.MappedFile = 0 + } else { + x.MappedFile = (uint64)(r.DecodeUint64()) + } + case "Usage": + if r.TryDecodeAsNil() { + x.Usage = 0 + } else { + x.Usage = (uint64)(r.DecodeUint64()) + } + case "MaxUsage": + if r.TryDecodeAsNil() { + x.MaxUsage = 0 + } else { + x.MaxUsage = (uint64)(r.DecodeUint64()) + } + case "KernelUsage": + if r.TryDecodeAsNil() { + x.KernelUsage = 0 + } else { + x.KernelUsage = (uint64)(r.DecodeUint64()) + } + case "KernelMaxUsage": + if r.TryDecodeAsNil() { + x.KernelMaxUsage = 0 + } else { + x.KernelMaxUsage = (uint64)(r.DecodeUint64()) + } + case "Measured": + if r.TryDecodeAsNil() { + x.Measured = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Measured), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *MemoryStats) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj14 int + var yyb14 bool + var yyhl14 bool = l >= 0 + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RSS = 0 + } else { + x.RSS = (uint64)(r.DecodeUint64()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Cache = 0 + } else { + x.Cache = (uint64)(r.DecodeUint64()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Swap = 0 + } else { + x.Swap = (uint64)(r.DecodeUint64()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MappedFile = 0 + } else { + x.MappedFile = (uint64)(r.DecodeUint64()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Usage = 0 + } else { + x.Usage = (uint64)(r.DecodeUint64()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MaxUsage = 0 + } else { + x.MaxUsage = (uint64)(r.DecodeUint64()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.KernelUsage = 0 + } else { + x.KernelUsage = (uint64)(r.DecodeUint64()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.KernelMaxUsage = 0 + } else { + x.KernelMaxUsage = (uint64)(r.DecodeUint64()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Measured = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Measured), d) + } + } + for { + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj14-1, "") + } + r.ReadArrayEnd() +} + +func (x *CpuStats) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeFloat64(float64(x.SystemMode)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SystemMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `SystemMode`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeFloat64(float64(x.SystemMode)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeFloat64(float64(x.UserMode)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"UserMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `UserMode`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeFloat64(float64(x.UserMode)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeFloat64(float64(x.TotalTicks)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TotalTicks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `TotalTicks`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeFloat64(float64(x.TotalTicks)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ThrottledPeriods)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ThrottledPeriods\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `ThrottledPeriods`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ThrottledPeriods)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ThrottledTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ThrottledTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `ThrottledTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ThrottledTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeFloat64(float64(x.Percent)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Percent\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Percent`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeFloat64(float64(x.Percent)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Measured == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Measured), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Measured\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Measured`) + } + r.WriteMapElemValue() + if x.Measured == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Measured), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CpuStats) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *CpuStats) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "SystemMode": + if r.TryDecodeAsNil() { + x.SystemMode = 0 + } else { + x.SystemMode = (float64)(r.DecodeFloat64()) + } + case "UserMode": + if r.TryDecodeAsNil() { + x.UserMode = 0 + } else { + x.UserMode = (float64)(r.DecodeFloat64()) + } + case "TotalTicks": + if r.TryDecodeAsNil() { + x.TotalTicks = 0 + } else { + x.TotalTicks = (float64)(r.DecodeFloat64()) + } + case "ThrottledPeriods": + if r.TryDecodeAsNil() { + x.ThrottledPeriods = 0 + } else { + x.ThrottledPeriods = (uint64)(r.DecodeUint64()) + } + case "ThrottledTime": + if r.TryDecodeAsNil() { + x.ThrottledTime = 0 + } else { + x.ThrottledTime = (uint64)(r.DecodeUint64()) + } + case "Percent": + if r.TryDecodeAsNil() { + x.Percent = 0 + } else { + x.Percent = (float64)(r.DecodeFloat64()) + } + case "Measured": + if r.TryDecodeAsNil() { + x.Measured = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Measured), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CpuStats) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SystemMode = 0 + } else { + x.SystemMode = (float64)(r.DecodeFloat64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.UserMode = 0 + } else { + x.UserMode = (float64)(r.DecodeFloat64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TotalTicks = 0 + } else { + x.TotalTicks = (float64)(r.DecodeFloat64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ThrottledPeriods = 0 + } else { + x.ThrottledPeriods = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ThrottledTime = 0 + } else { + x.ThrottledTime = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Percent = 0 + } else { + x.Percent = (float64)(r.DecodeFloat64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Measured = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Measured), d) + } + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *ResourceUsage) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + var yyn3 bool + if x.MemoryStats == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.MemoryStats == nil { + r.EncodeNil() + } else { + x.MemoryStats.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MemoryStats\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `MemoryStats`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.MemoryStats == nil { + r.EncodeNil() + } else { + x.MemoryStats.CodecEncodeSelf(e) + } + } + } + var yyn6 bool + if x.CpuStats == nil { + yyn6 = true + goto LABEL6 + } + LABEL6: + if yyr2 || yy2arr2 { + if yyn6 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.CpuStats == nil { + r.EncodeNil() + } else { + x.CpuStats.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CpuStats\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `CpuStats`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.CpuStats == nil { + r.EncodeNil() + } else { + x.CpuStats.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.DeviceStats == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtodevice_DeviceGroupStats(([]*pkg2_device.DeviceGroupStats)(x.DeviceStats), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeviceStats\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `DeviceStats`) + } + r.WriteMapElemValue() + if x.DeviceStats == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtodevice_DeviceGroupStats(([]*pkg2_device.DeviceGroupStats)(x.DeviceStats), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ResourceUsage) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *ResourceUsage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "MemoryStats": + if r.TryDecodeAsNil() { + if true && x.MemoryStats != nil { + x.MemoryStats = nil + } + } else { + if x.MemoryStats == nil { + x.MemoryStats = new(MemoryStats) + } + + x.MemoryStats.CodecDecodeSelf(d) + } + case "CpuStats": + if r.TryDecodeAsNil() { + if true && x.CpuStats != nil { + x.CpuStats = nil + } + } else { + if x.CpuStats == nil { + x.CpuStats = new(CpuStats) + } + + x.CpuStats.CodecDecodeSelf(d) + } + case "DeviceStats": + if r.TryDecodeAsNil() { + x.DeviceStats = nil + } else { + if false { + } else { + h.decSlicePtrtodevice_DeviceGroupStats((*[]*pkg2_device.DeviceGroupStats)(&x.DeviceStats), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ResourceUsage) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.MemoryStats != nil { + x.MemoryStats = nil + } + } else { + if x.MemoryStats == nil { + x.MemoryStats = new(MemoryStats) + } + + x.MemoryStats.CodecDecodeSelf(d) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.CpuStats != nil { + x.CpuStats = nil + } + } else { + if x.CpuStats == nil { + x.CpuStats = new(CpuStats) + } + + x.CpuStats.CodecDecodeSelf(d) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeviceStats = nil + } else { + if false { + } else { + h.decSlicePtrtodevice_DeviceGroupStats((*[]*pkg2_device.DeviceGroupStats)(&x.DeviceStats), d) + } + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *TaskResourceUsage) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + var yyn3 bool + if x.ResourceUsage == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ResourceUsage == nil { + r.EncodeNil() + } else { + x.ResourceUsage.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ResourceUsage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `ResourceUsage`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.ResourceUsage == nil { + r.EncodeNil() + } else { + x.ResourceUsage.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Timestamp)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timestamp\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Timestamp`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Timestamp)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Pids == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoResourceUsage((map[string]*ResourceUsage)(x.Pids), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Pids\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Pids`) + } + r.WriteMapElemValue() + if x.Pids == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoResourceUsage((map[string]*ResourceUsage)(x.Pids), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *TaskResourceUsage) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *TaskResourceUsage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ResourceUsage": + if r.TryDecodeAsNil() { + if true && x.ResourceUsage != nil { + x.ResourceUsage = nil + } + } else { + if x.ResourceUsage == nil { + x.ResourceUsage = new(ResourceUsage) + } + + x.ResourceUsage.CodecDecodeSelf(d) + } + case "Timestamp": + if r.TryDecodeAsNil() { + x.Timestamp = 0 + } else { + x.Timestamp = (int64)(r.DecodeInt64()) + } + case "Pids": + if r.TryDecodeAsNil() { + x.Pids = nil + } else { + if false { + } else { + h.decMapstringPtrtoResourceUsage((*map[string]*ResourceUsage)(&x.Pids), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *TaskResourceUsage) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ResourceUsage != nil { + x.ResourceUsage = nil + } + } else { + if x.ResourceUsage == nil { + x.ResourceUsage = new(ResourceUsage) + } + + x.ResourceUsage.CodecDecodeSelf(d) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Timestamp = 0 + } else { + x.Timestamp = (int64)(r.DecodeInt64()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Pids = nil + } else { + if false { + } else { + h.decMapstringPtrtoResourceUsage((*map[string]*ResourceUsage)(&x.Pids), d) + } + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocResourceUsage) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + var yyn3 bool + if x.ResourceUsage == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ResourceUsage == nil { + r.EncodeNil() + } else { + x.ResourceUsage.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ResourceUsage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `ResourceUsage`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.ResourceUsage == nil { + r.EncodeNil() + } else { + x.ResourceUsage.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Tasks == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoTaskResourceUsage((map[string]*TaskResourceUsage)(x.Tasks), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Tasks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Tasks`) + } + r.WriteMapElemValue() + if x.Tasks == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoTaskResourceUsage((map[string]*TaskResourceUsage)(x.Tasks), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Timestamp)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timestamp\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Timestamp`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Timestamp)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocResourceUsage) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *AllocResourceUsage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ResourceUsage": + if r.TryDecodeAsNil() { + if true && x.ResourceUsage != nil { + x.ResourceUsage = nil + } + } else { + if x.ResourceUsage == nil { + x.ResourceUsage = new(ResourceUsage) + } + + x.ResourceUsage.CodecDecodeSelf(d) + } + case "Tasks": + if r.TryDecodeAsNil() { + x.Tasks = nil + } else { + if false { + } else { + h.decMapstringPtrtoTaskResourceUsage((*map[string]*TaskResourceUsage)(&x.Tasks), d) + } + } + case "Timestamp": + if r.TryDecodeAsNil() { + x.Timestamp = 0 + } else { + x.Timestamp = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocResourceUsage) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ResourceUsage != nil { + x.ResourceUsage = nil + } + } else { + if x.ResourceUsage == nil { + x.ResourceUsage = new(ResourceUsage) + } + + x.ResourceUsage.CodecDecodeSelf(d) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Tasks = nil + } else { + if false { + } else { + h.decMapstringPtrtoTaskResourceUsage((*map[string]*TaskResourceUsage)(&x.Tasks), d) + } + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Timestamp = 0 + } else { + x.Timestamp = (int64)(r.DecodeInt64()) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *HealthCheckRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(0) + } else { + r.WriteMapStart(0) + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *HealthCheckRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *HealthCheckRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *HealthCheckRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4 int + var yyb4 bool + var yyhl4 bool = l >= 0 + for { + yyj4++ + if yyhl4 { + yyb4 = yyj4 > l + } else { + yyb4 = r.CheckBreak() + } + if yyb4 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj4-1, "") + } + r.ReadArrayEnd() +} + +func (x *HealthCheckResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Drivers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtostructs_DriverInfo((map[string]*pkg4_structs.DriverInfo)(x.Drivers), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Drivers\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Drivers`) + } + r.WriteMapElemValue() + if x.Drivers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtostructs_DriverInfo((map[string]*pkg4_structs.DriverInfo)(x.Drivers), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *HealthCheckResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *HealthCheckResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Drivers": + if r.TryDecodeAsNil() { + x.Drivers = nil + } else { + if false { + } else { + h.decMapstringPtrtostructs_DriverInfo((*map[string]*pkg4_structs.DriverInfo)(&x.Drivers), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *HealthCheckResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Drivers = nil + } else { + if false { + } else { + h.decMapstringPtrtostructs_DriverInfo((*map[string]*pkg4_structs.DriverInfo)(&x.Drivers), d) + } + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *HealthCheckIntervalRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(0) + } else { + r.WriteMapStart(0) + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *HealthCheckIntervalRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *HealthCheckIntervalRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *HealthCheckIntervalRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4 int + var yyb4 bool + var yyhl4 bool = l >= 0 + for { + yyj4++ + if yyhl4 { + yyb4 = yyj4 > l + } else { + yyb4 = r.CheckBreak() + } + if yyb4 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj4-1, "") + } + r.ReadArrayEnd() +} + +func (x *HealthCheckIntervalResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Eligible)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Eligible\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Eligible`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Eligible)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.Period)); yyxt7 != nil { + z.EncExtension(x.Period, yyxt7) + } else { + r.EncodeInt(int64(x.Period)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Period\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `Period`) + } + r.WriteMapElemValue() + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.Period)); yyxt8 != nil { + z.EncExtension(x.Period, yyxt8) + } else { + r.EncodeInt(int64(x.Period)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *HealthCheckIntervalResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *HealthCheckIntervalResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Eligible": + if r.TryDecodeAsNil() { + x.Eligible = false + } else { + x.Eligible = (bool)(r.DecodeBool()) + } + case "Period": + if r.TryDecodeAsNil() { + x.Period = 0 + } else { + if false { + } else if yyxt6 := z.Extension(z.I2Rtid(x.Period)); yyxt6 != nil { + z.DecExtension(x.Period, yyxt6) + } else { + x.Period = (time.Duration)(r.DecodeInt64()) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *HealthCheckIntervalResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Eligible = false + } else { + x.Eligible = (bool)(r.DecodeBool()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Period = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.Period)); yyxt10 != nil { + z.DecExtension(x.Period, yyxt10) + } else { + x.Period = (time.Duration)(r.DecodeInt64()) + } + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeRegistration) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.HasRegistered)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HasRegistered\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, `HasRegistered`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.HasRegistered)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeRegistration) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap102 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray102 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct102) + } + } +} + +func (x *NodeRegistration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "HasRegistered": + if r.TryDecodeAsNil() { + x.HasRegistered = false + } else { + x.HasRegistered = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeRegistration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HasRegistered = false + } else { + x.HasRegistered = (bool)(r.DecodeBool()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x codecSelfer102) encSlicePtrtoAllocFileInfo(v []*AllocFileInfo, e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer102) decSlicePtrtoAllocFileInfo(v *[]*AllocFileInfo, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*AllocFileInfo{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*AllocFileInfo, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*AllocFileInfo, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(AllocFileInfo) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*AllocFileInfo, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer102) encSlicestring(v []string, e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyv1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(yyv1)) + } + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer102) decSlicestring(v *[]string, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []string{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]string, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) + } else { + yyrl1 = 8 + } + yyv1 = make([]string, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, "") + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = "" + } else { + yyv1[yyj1] = (string)(r.DecodeString()) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]string, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer102) encMapstructs_CheckIDPtrtostructs_CheckQueryResult(v map[pkg4_structs.CheckID]*pkg4_structs.CheckQueryResult, e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else if yyxt2 := z.Extension(z.I2Rtid(yyk1)); yyxt2 != nil { + z.EncExtension(yyk1, yyxt2) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt3 := z.Extension(z.I2Rtid(yyv1)); yyxt3 != nil { + z.EncExtension(yyv1, yyxt3) + } else { + z.EncFallback(yyv1) + } + } + } + r.WriteMapEnd() +} + +func (x codecSelfer102) decMapstructs_CheckIDPtrtostructs_CheckQueryResult(v *map[pkg4_structs.CheckID]*pkg4_structs.CheckQueryResult, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[pkg4_structs.CheckID]*pkg4_structs.CheckQueryResult, yyrl1) + *v = yyv1 + } + var yymk1 pkg4_structs.CheckID + var yymv1 *pkg4_structs.CheckQueryResult + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + if false { + } else if yyxt3 := z.Extension(z.I2Rtid(yymk1)); yyxt3 != nil { + z.DecExtension(yymk1, yyxt3) + } else { + yymk1 = (pkg4_structs.CheckID)(r.DecodeString()) + } + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(pkg4_structs.CheckQueryResult) + } + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(yymv1)); yyxt5 != nil { + z.DecExtension(yymv1, yyxt5) + } else { + z.DecFallback(yymv1, false) + } + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer102) encSlicePtrtodevice_DeviceGroupStats(v []*pkg2_device.DeviceGroupStats, e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt2 := z.Extension(z.I2Rtid(yyv1)); yyxt2 != nil { + z.EncExtension(yyv1, yyxt2) + } else { + z.EncFallback(yyv1) + } + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer102) decSlicePtrtodevice_DeviceGroupStats(v *[]*pkg2_device.DeviceGroupStats, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*pkg2_device.DeviceGroupStats{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*pkg2_device.DeviceGroupStats, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*pkg2_device.DeviceGroupStats, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(pkg2_device.DeviceGroupStats) + } + if false { + } else if yyxt3 := z.Extension(z.I2Rtid(yyv1[yyj1])); yyxt3 != nil { + z.DecExtension(yyv1[yyj1], yyxt3) + } else { + z.DecFallback(yyv1[yyj1], false) + } + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*pkg2_device.DeviceGroupStats, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer102) encMapstringPtrtoResourceUsage(v map[string]*ResourceUsage, e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer102) decMapstringPtrtoResourceUsage(v *map[string]*ResourceUsage, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*ResourceUsage, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *ResourceUsage + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(ResourceUsage) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer102) encMapstringPtrtoTaskResourceUsage(v map[string]*TaskResourceUsage, e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer102) decMapstringPtrtoTaskResourceUsage(v *map[string]*TaskResourceUsage, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*TaskResourceUsage, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *TaskResourceUsage + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(TaskResourceUsage) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer102) encMapstringPtrtostructs_DriverInfo(v map[string]*pkg4_structs.DriverInfo, e *codec1978.Encoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8102, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt3 := z.Extension(z.I2Rtid(yyv1)); yyxt3 != nil { + z.EncExtension(yyv1, yyxt3) + } else { + z.EncFallback(yyv1) + } + } + } + r.WriteMapEnd() +} + +func (x codecSelfer102) decMapstringPtrtostructs_DriverInfo(v *map[string]*pkg4_structs.DriverInfo, d *codec1978.Decoder) { + var h codecSelfer102 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*pkg4_structs.DriverInfo, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *pkg4_structs.DriverInfo + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(pkg4_structs.DriverInfo) + } + if false { + } else if yyxt4 := z.Extension(z.I2Rtid(yymv1)); yyxt4 != nil { + z.DecExtension(yymv1, yyxt4) + } else { + z.DecFallback(yymv1, false) + } + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} diff --git a/command/agent/bindata_assetfs.go b/command/agent/bindata_assetfs.go index 11971fb84..ae1c0f941 100644 --- a/command/agent/bindata_assetfs.go +++ b/command/agent/bindata_assetfs.go @@ -3,10 +3,10 @@ // ui/dist/assets/chunk.424.a31d938ac38918187080.js // ui/dist/assets/chunk.424.a31d938ac38918187080.js.LICENSE.txt // ui/dist/assets/chunk.504.10ee502b35385ac258f3.js -// ui/dist/assets/chunk.524.00f229e009bf7cc191c1.css -// ui/dist/assets/chunk.524.00f229e009bf7cc191c1.js -// ui/dist/assets/chunk.582.3e7befb7e31cbd93bb56.css -// ui/dist/assets/chunk.582.3e7befb7e31cbd93bb56.js +// ui/dist/assets/chunk.524.163f7c06e956c9535525.css +// ui/dist/assets/chunk.524.163f7c06e956c9535525.js +// ui/dist/assets/chunk.582.2a316edfa0fb871040a5.css +// ui/dist/assets/chunk.582.2a316edfa0fb871040a5.js // ui/dist/assets/chunk.787.23c990ecc75c2fc2f0db.js // ui/dist/assets/chunk.914.4f97f0c27a0500495691.js // ui/dist/assets/chunk.914.4f97f0c27a0500495691.js.LICENSE.txt @@ -148,82 +148,82 @@ func distAssetsChunk50410ee502b35385ac258f3Js() (*asset, error) { return a, nil } -var _distAssetsChunk52400f229e009bf7cc191c1Css = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x94\x92\xe1\x6a\x83\x30\x14\x85\xff\xef\x29\x0a\x63\xd0\x42\x33\x14\xd9\xd8\x22\xeb\x8b\x8c\x0d\xae\x1a\xf5\x42\xf4\x86\xe4\xae\x75\x94\xbe\xfb\x88\x29\x6c\xac\x31\xa5\xff\x04\xfd\x4e\xce\x77\xcc\x23\xa3\x31\xdf\xa2\xa2\xe9\xbd\x01\x06\x61\x34\xd4\x6a\x50\x23\x7f\xbe\x31\x99\x8f\xdd\xf9\xbd\xdb\x77\x02\xac\xa5\xc3\xb1\x22\x66\x1a\x64\x76\xba\x95\x94\xd0\xb2\xb2\xdb\x5b\xb1\x9d\xdb\x77\x47\x26\x23\xf3\x67\x33\x95\x6c\x61\x74\x2d\xd9\x41\x5a\x62\x60\xb5\xce\x5f\xb2\x46\x75\x9b\x54\x9b\xd0\x38\xa2\xe2\x53\x93\x1e\x4b\xe4\xdc\xe9\x3c\x84\xaf\x95\xca\xd0\xaa\xe5\xc8\xd9\x16\xbb\x9e\xd3\xa7\xc7\xc9\xeb\x33\xc6\xb9\xb0\xe3\xff\xf9\x5e\xe7\xf5\x4a\xbf\x44\x0d\xba\x5e\x3f\x65\x0f\x2b\xb1\x2a\xcc\xb4\x29\x7d\x8c\xcc\xf3\xb4\xdd\xac\x11\xd1\x9b\xe1\xa4\xdd\x02\x79\x5d\x6f\x01\x8c\xfb\x89\x84\x60\xf8\x05\x7f\x0d\x7f\xfb\x1f\xb0\xe1\x3e\x5c\xb9\x5e\x85\xef\xfc\x73\x8b\x5a\xcb\xfb\xa2\x28\x4a\x56\x13\x0b\xd0\xd8\x8d\x12\x47\x64\x04\x7d\x11\xb2\x8d\x56\x34\xe4\x90\x91\x46\x09\x95\x23\xfd\xc5\xea\x74\xf7\x13\x00\x00\xff\xff\xa9\x4d\x27\x63\x84\x03\x00\x00") +var _distAssetsChunk524163f7c06e956c9535525Css = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x94\x92\xe1\x6a\x83\x30\x14\x85\xff\xef\x29\x0a\x63\xd0\x42\x33\x14\xd9\xd8\x22\xeb\x8b\x8c\x0d\xae\x1a\xf5\x42\xf4\x86\xe4\xae\x75\x94\xbe\xfb\x88\x29\x6c\xac\x31\xa5\xff\x04\xfd\x4e\xce\x77\xcc\x23\xa3\x31\xdf\xa2\xa2\xe9\xbd\x01\x06\x61\x34\xd4\x6a\x50\x23\x7f\xbe\x31\x99\x8f\xdd\xf9\xbd\xdb\x77\x02\xac\xa5\xc3\xb1\x22\x66\x1a\x64\x76\xba\x95\x94\xd0\xb2\xb2\xdb\x5b\xb1\x9d\xdb\x77\x47\x26\x23\xf3\x67\x33\x95\x6c\x61\x74\x2d\xd9\x41\x5a\x62\x60\xb5\xce\x5f\xb2\x46\x75\x9b\x54\x9b\xd0\x38\xa2\xe2\x53\x93\x1e\x4b\xe4\xdc\xe9\x3c\x84\xaf\x95\xca\xd0\xaa\xe5\xc8\xd9\x16\xbb\x9e\xd3\xa7\xc7\xc9\xeb\x33\xc6\xb9\xb0\xe3\xff\xf9\x5e\xe7\xf5\x4a\xbf\x44\x0d\xba\x5e\x3f\x65\x0f\x2b\xb1\x2a\xcc\xb4\x29\x7d\x8c\xcc\xf3\xb4\xdd\xac\x11\xd1\x9b\xe1\xa4\xdd\x02\x79\x5d\x6f\x01\x8c\xfb\x89\x84\x60\xf8\x05\x7f\x0d\x7f\xfb\x1f\xb0\xe1\x3e\x5c\xb9\x5e\x85\xef\xfc\x73\x8b\x5a\xcb\xfb\xa2\x28\x4a\x56\x13\x0b\xd0\xd8\x8d\x12\x47\x64\x04\x7d\x11\xb2\x8d\x56\x34\xe4\x90\x91\x46\x09\x95\x23\xfd\xc5\xea\x74\xf7\x13\x00\x00\xff\xff\xa9\x4d\x27\x63\x84\x03\x00\x00") -func distAssetsChunk52400f229e009bf7cc191c1CssBytes() ([]byte, error) { +func distAssetsChunk524163f7c06e956c9535525CssBytes() ([]byte, error) { return bindataRead( - _distAssetsChunk52400f229e009bf7cc191c1Css, - "dist/assets/chunk.524.00f229e009bf7cc191c1.css", + _distAssetsChunk524163f7c06e956c9535525Css, + "dist/assets/chunk.524.163f7c06e956c9535525.css", ) } -func distAssetsChunk52400f229e009bf7cc191c1Css() (*asset, error) { - bytes, err := distAssetsChunk52400f229e009bf7cc191c1CssBytes() +func distAssetsChunk524163f7c06e956c9535525Css() (*asset, error) { + bytes, err := distAssetsChunk524163f7c06e956c9535525CssBytes() if err != nil { return nil, err } - info := bindataFileInfo{name: "dist/assets/chunk.524.00f229e009bf7cc191c1.css", size: 900, mode: os.FileMode(420), modTime: time.Unix(1480000000, 0)} + info := bindataFileInfo{name: "dist/assets/chunk.524.163f7c06e956c9535525.css", size: 900, mode: os.FileMode(420), modTime: time.Unix(1480000000, 0)} a := &asset{bytes: bytes, info: info} return a, nil } -var _distAssetsChunk52400f229e009bf7cc191c1Js = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xdc\x7d\x5b\x73\xe3\x38\xb2\xe6\xbb\x7f\x85\x8b\x0f\x3a\x64\x98\xa4\x79\xbf\xf5\xb0\x7a\x67\x67\xfa\x44\x6c\xc4\x99\xa9\x89\x98\x3e\x4f\x5e\x87\x03\x22\x21\x09\x6d\x92\x60\x03\x90\xab\x54\x2e\xed\x6f\xdf\xc0\x85\x14\x7d\x53\xd9\x0d\x99\xd5\x71\x5e\x6c\x7d\x20\x01\x64\x26\x12\x99\x89\x2b\xef\x00\x39\xbf\xb9\x81\xed\x12\x92\x1b\xb0\x65\xf8\x06\xb5\x3d\x26\xec\xe6\xe6\x27\xd3\xb4\xca\x8f\xf7\xfc\x39\xb4\x3b\x9b\xd9\xd8\x6e\x6d\x52\xde\x87\x71\x18\x67\x85\x29\xd2\x86\x17\x70\x79\x6f\xb8\x97\x60\x65\x14\x51\x1a\x66\xbe\x2d\x80\xfb\x1b\x9d\x62\x62\x14\x79\x98\x27\x0a\x38\xf5\x57\xa3\x88\xe3\xcc\x8b\x46\x2c\xde\x9f\x26\xdd\x7e\x36\x0a\xdf\xf3\xa3\x03\x16\xaf\x4c\x93\x9a\x9d\x51\x24\x51\x14\xc5\x23\x16\xaf\x4c\x93\x5a\x60\x14\xa9\x17\x04\xde\x88\xc5\x2b\xd3\xa4\x9e\x1a\x45\x98\xc4\x61\x3c\x62\xf1\xca\x34\x89\x02\xa3\x48\xbc\x28\xf4\x46\x2c\x2b\x9a\x24\xb1\x8e\x57\x7c\xa0\x8d\x75\x8a\x96\x31\x49\xe0\x83\x10\xbe\x1a\x85\x9f\x46\x81\xac\x42\xb2\x3f\xe2\x25\x34\x8a\x28\x0f\xa2\x50\x02\x29\xcb\x11\xaf\x8d\xc2\x0f\xfd\x28\x97\x40\xe6\x1c\x71\x6b\x14\x61\x16\xc4\x0a\x48\x4e\x46\xdc\x19\x45\x14\xa5\xb9\x27\x81\xb3\xac\x39\x0f\x5e\x12\x8f\x58\xb1\x35\x26\xc9\x9a\xc7\x2c\xd8\x28\xe2\x30\x55\x35\x61\xd9\x64\x23\x26\x46\x91\xc6\x7e\x98\x49\x20\xc5\x3c\x62\x5e\x4c\xe8\x29\xee\xa4\x80\x47\x5c\x01\xa3\x88\x3d\x4f\x8a\xb2\x92\xa2\x3d\x60\x6a\x14\x99\x17\x07\xf2\xb7\x78\x36\xc2\x3b\xa3\xc8\xc2\x2c\xf5\x25\x90\xcf\x46\xbc\x33\x8a\x34\xc9\x63\x59\x88\x54\x8c\x11\xd7\xc0\x28\xf2\x5c\x32\x59\xcb\x0a\x47\x08\x8d\x22\x88\xa3\x38\x95\xc0\x01\xcc\x28\x52\x3f\x8e\x0e\x58\x16\x35\x49\xaa\x36\x46\x11\x84\xb9\x14\x83\xc0\xe2\x95\x49\x92\xc4\x63\xa9\x82\x6e\x3f\x4d\x24\x50\x74\x2b\x0c\x1b\xa3\x08\x83\xd8\x0b\x25\x90\x0d\x38\xe2\xce\x01\x5b\xa3\x08\xbd\x4c\xbd\xcc\xb1\x7c\x65\x92\xc4\xe5\x19\x79\x81\x94\xbc\xc0\x52\xde\x93\xa4\xf5\xd2\x28\xe2\xc4\xcb\xe3\x11\x4b\xa9\x4f\x92\x10\xd7\x41\x3f\x8d\xb2\x11\xcb\x52\xa6\x49\x8d\x51\xa4\x59\xea\xa5\x23\x96\xb2\x99\x26\x75\x46\x91\x47\x7e\x7e\xc0\x52\xda\x93\xa4\xee\xab\x51\x84\x61\x2a\x5b\x46\x60\xc9\xd1\x24\x89\xae\x8d\x22\xc8\xd3\x30\x19\xb1\x94\xe8\x98\x84\x8d\x22\xf4\x3d\xf5\xbe\x54\xcc\x03\xe6\x54\x27\x71\x14\x48\xe0\xd4\xd8\x28\xf2\x20\xf5\x92\x11\x4b\x92\x26\x49\xed\x17\xa1\xbb\xb9\x37\xe2\x41\x9d\xc7\xa4\xad\x30\x57\x69\x12\x8e\x58\x59\xb0\x31\x49\x8a\x6b\xac\x98\x71\xa5\x0e\x02\xf9\x90\x29\x25\x1f\xf0\xd6\x28\xfc\x38\x4b\x22\x09\x64\x97\x1e\xf0\x8a\x37\x67\xe6\x49\x63\xb4\x52\x6d\x39\x62\x64\x14\x49\xec\xcb\x3a\x57\x48\xf6\xdf\x03\x6e\x8c\x22\xcb\x3c\xd9\x1a\x2b\xd5\x3c\x87\x04\x6c\x14\x59\x9e\xf8\x0a\xc8\x87\x23\x26\x46\x91\x05\x69\x26\x7f\x4b\x9d\xf2\x7d\xa9\x86\x02\x2b\x6d\x98\x24\x6d\x8c\xc2\x0f\xe2\xc4\x1b\xb1\xe4\xe3\x90\x24\x6b\x18\x0a\xdd\xf1\x67\x69\xe8\x4b\xa0\xde\x55\x78\x0d\x8c\x22\x4c\xd3\x28\x91\x40\x36\xe8\x88\x6b\xa1\x86\xd2\x78\xac\xeb\x41\x2d\x15\xe6\xfd\xc7\x4b\x23\x59\x8c\xea\x3f\x23\xc6\xad\x53\xc3\x3b\xde\xfb\xb3\xc4\x4f\xa6\x49\x52\x07\xa6\xa9\x0d\x10\x36\x3d\xf5\xb3\x74\x9a\x24\x45\x3c\xa6\x6e\x79\x63\xf8\x91\xfc\xad\xda\x46\xc2\x0d\x34\x8a\x24\x0c\xfc\x50\x02\x99\x6f\xc4\x88\x1b\xed\x40\xd2\xbc\x41\xca\x88\x0f\x98\x70\xf7\x13\x05\xb2\x18\xa2\xdc\xd1\x80\xb9\x01\x08\xf2\x2c\x97\x40\x19\x88\x01\xef\x1c\xd0\x1a\x05\x97\x94\x37\x62\xa9\xbb\x43\x12\xaa\x39\x9f\xb9\xb4\x92\xa8\x56\x7c\x0f\x98\x03\xcf\x97\x72\x46\x52\x85\x0f\x98\xf1\x5e\x19\xa7\xb9\x04\xa2\xc1\xb3\x24\x08\x0f\x58\x36\xf0\x21\x49\x75\x64\x95\xe5\x37\xa1\xc8\x81\xb4\x30\xbf\x0d\x8a\x3c\xe0\x3b\xae\xf2\x71\x26\x7f\xab\x1e\x20\xe1\x2d\x57\x06\x3f\x1f\x80\xea\xdd\x03\xbe\x35\x8a\x34\xf0\x65\xb3\xdd\xde\x4a\x5e\x47\xdc\x72\x8d\x8e\xe3\x48\x02\xa5\xe1\x03\xe6\xa6\x29\x09\x63\x5f\x02\xc9\xeb\x88\xb1\x51\x44\x81\xec\x80\xb7\xb2\x6b\x8c\x70\x6b\x14\x39\x6f\x2b\x09\x9c\xdb\x96\x18\x45\x92\xc5\x32\xe6\x90\x09\xb2\xb1\x0f\x69\xb2\xf0\x31\xd3\xce\x28\x02\x2f\x93\xfd\xe0\x56\xaa\xfe\x88\x9b\x25\x57\xd8\x48\x46\x0d\xcd\x52\x29\xf0\x80\xb9\xed\x8a\x64\x5b\x35\xca\x6e\x0d\x90\x71\x4f\x2d\x8d\x4d\xc3\x94\xe3\x56\xf0\xce\x28\x82\x28\xce\x15\x90\xf5\x0d\xb8\x85\x5c\xb9\x72\xe9\x3d\x5a\xa8\x94\x6d\xc0\x88\x4b\x33\x96\x16\xbf\x45\x4a\xba\x03\xbe\xe5\x8d\xad\xda\xa1\xbd\x55\x8d\x3f\xe0\x86\x6b\x4e\x22\x35\xa1\x6d\x94\x26\x0d\xb8\xe3\x7d\x3d\x91\xda\xde\x76\xaa\xef\x0f\x98\x70\xdf\x19\x4a\xdf\xa9\x44\x79\xc0\xfc\xcd\x28\x94\x66\xb8\xa5\x4e\xbb\x13\x2d\xea\xf9\x23\x1e\x1a\x79\x48\x92\x85\x8f\x59\xb8\x3b\x0f\x72\x5f\x16\xa6\x7c\xf9\x88\x77\x46\x11\x47\x03\x77\xb2\xa4\x11\x77\x4b\xa3\x08\xfc\x48\xea\x4e\x27\xdb\xe5\x80\xa1\x51\xc4\x79\xe8\xfb\x12\xc8\x9c\x23\x6e\x84\x51\x90\x12\xed\x1a\x87\x47\x77\x99\xaf\x02\x50\x81\x25\xcd\x87\xa4\xc1\x8e\xa8\x2c\xdc\x0c\x65\x89\x17\x48\xa0\x74\x4b\x61\x5c\x39\x4d\x57\x19\x45\xec\x07\x59\x72\x48\x90\x14\x0c\x69\x3d\x10\x8e\xd8\x8f\x42\x19\x81\x08\x3c\x08\x46\x25\x71\x5f\x9e\xc6\x89\x7c\x5f\x39\xf2\x11\x0b\xe7\x95\x04\xf2\xb7\xc3\x43\x3d\x3f\x08\xfd\x78\xc4\xaa\x05\xc7\x24\xe5\xde\x64\x0e\x82\xb9\x4f\x0a\xe2\x50\x02\xe5\xa3\x06\xcc\x0d\x68\x22\x9d\x19\x51\x06\x54\x41\xca\xed\x7c\x1e\xa6\xa9\x04\x2a\x0a\x1e\x30\x8f\xd3\xf2\x44\xba\x78\xaa\x22\xac\x11\x23\x5e\x4a\x1e\x46\x12\xa8\x52\x07\x7c\xcb\x25\x13\x87\x81\x04\x4a\x52\x03\xe6\xee\x23\xf4\x65\xbf\xa5\xca\x7d\x8c\xf8\x77\x6e\x21\x52\x3f\x93\x40\x59\x8c\x01\x73\xa3\x9d\x49\x45\xa2\xc4\xa9\x76\xa4\x31\x8a\x38\xf0\xa4\x82\xa8\x14\x59\xd9\x21\x51\xc5\xe7\x2a\x97\xb0\xc4\xbe\x54\x37\xaa\x8c\xef\x88\xef\x8c\x22\x8d\x54\xbc\x40\x65\x1f\x3e\xe0\xcf\xdc\x46\x04\x79\x22\x81\xb2\x19\x0a\x33\xee\xee\x82\x20\x8b\x25\x50\xc1\xce\x80\x21\xb7\x4b\x89\x1c\xa5\x31\xa8\xec\xd4\x88\x45\x6f\xc9\x64\xa8\xc6\xe0\xd0\x5d\x86\x84\x35\x0f\x89\xa4\xbd\x64\x6b\x15\x21\x29\x28\x43\xe2\x40\x12\x30\xc6\xc3\x0a\xdf\x72\xab\xe5\xe5\xb9\x04\xca\x8a\x0d\xb8\x71\xfa\x0d\x1f\x27\xf9\x32\x48\x11\x58\x0d\x9d\xc6\xa4\x0d\x0f\x55\xd3\x20\x53\x48\xc5\xae\x43\x82\x1c\x88\x44\x9e\x04\x43\xe4\xa6\xf0\x57\x6e\x97\xf2\x58\xf6\x0b\xf6\x55\x19\xa6\x43\x42\xcb\x9d\x7b\x94\x86\x0a\x0d\x51\x40\x90\x4b\x1f\x36\x24\x49\x25\x9e\xa4\xaa\xb0\x40\xe5\xdc\xae\x9d\x8a\xbb\x17\x4f\x95\x2b\xb0\xb2\x81\x43\xd2\xad\x18\x1f\x27\x0a\x0c\xe3\x65\x85\x79\x0f\x4b\x3c\x39\x54\xdc\xaa\xee\x35\x62\x3e\x78\xf6\x64\x37\xd8\x7e\x55\x14\x46\x71\x22\x83\x3e\x95\x22\xcb\x3b\x24\xaa\x1e\x29\x73\xdd\x21\x6e\xa9\x7d\x69\x8c\xef\x90\xb2\xdc\x0a\x7f\x71\x7a\x0a\xb7\x3c\x4a\x0e\x82\x34\x7f\x90\x24\xdb\x71\x48\xdd\x89\x40\x3a\x90\xe3\xb4\xdd\x10\x45\x2b\xfc\x75\x23\x24\x90\xe5\x9e\x34\x62\x02\x2b\xdb\x7c\x48\xda\x70\x21\x78\x69\xe4\x8d\x58\x0d\x55\x0e\x49\xad\xf0\xc4\x52\x21\x05\x54\xce\x78\x4c\x61\x9f\x79\xb5\x5e\x92\x8d\x58\x51\xe2\x25\xd9\xfe\x6c\xb5\xed\x2a\x86\x70\x77\xde\x9a\xd0\x12\xd3\x15\x5d\x49\x4c\x68\x9d\x11\xc8\xb6\xa4\x3b\x67\x66\x67\xed\xc7\x97\xf8\x93\x7b\xb4\x32\x3f\x30\x17\x9b\xd8\x86\xd6\x90\xa5\x83\x9f\xcf\x7f\x21\x04\x13\xd3\xf8\x1b\xe8\x3a\xcc\xce\x57\xa8\xab\xcf\x5b\x5c\x6f\x1b\x78\xfe\x1f\xc6\x05\xbc\x30\xfe\xc3\xb0\xce\xd8\x86\xe0\xcf\xe7\x9d\x5b\xe1\x1a\x96\xc6\x3f\x3e\xfd\xfd\xbf\xff\xeb\x97\x9b\x7f\x7e\xfa\xf5\xe6\x3f\x3f\xfd\xf7\x3f\xff\x6e\xd8\xdd\x5e\xd5\x8b\xaf\xe0\xf5\xbe\x75\x6f\xe1\x8e\x96\x43\xf5\xa6\x75\xaf\x9e\x7e\x5a\xfe\x06\x2b\x26\x9e\x9a\xd8\xda\xdb\xad\x4b\x20\xc5\xcd\x1d\x2c\x89\x0d\x5d\xf8\xa5\xc7\x84\xd1\xb2\xb5\x5b\x17\xd5\xa5\x98\x93\xd9\xdb\x61\x10\xe4\x51\x01\xcb\x8f\xf7\xc6\x96\xc2\x73\xca\x08\xaa\x98\x71\x76\x78\x9d\xc0\xdf\xb7\x88\x40\xd3\xf8\x5f\x62\xc2\xe7\x12\xf4\x7d\x83\x2a\xc0\x6b\x36\xac\xbd\x9d\x04\x49\x12\xbe\x25\x7f\x85\xdb\x1e\x77\xb0\x63\x3c\xb7\xef\x85\x61\xf2\x87\x72\x5f\x6e\x60\xd3\x43\x22\x0a\x49\x82\x30\xfe\x63\x85\x30\xd8\xf6\x0d\x60\xd0\xc1\x5d\xb3\x13\xec\xf8\x89\xf7\x26\x76\x6a\xb8\xdc\xae\x79\xce\xd0\xf7\x43\xef\x6d\x39\x29\x23\x78\x07\x96\x0d\x14\x35\xa7\x7e\xf0\x96\xec\x07\xfe\x83\x30\x4d\xdf\x92\xb3\xc5\x35\x5a\x21\x99\x37\x8a\x52\xff\x2d\x79\xb1\x50\x31\x51\x6b\x94\x24\x6f\x6a\x3a\x99\xf5\x12\x75\x0c\x92\x0e\x34\x94\x17\x92\xfa\x41\xf0\x26\x71\x93\x6d\xd7\x60\xdc\xf3\xbc\x59\x90\xbe\xad\xd9\x29\x24\x77\xa8\x12\xc2\x0e\xd2\x3c\x7d\x53\x63\x0d\x8a\x22\xf4\xcd\x8f\x92\x37\x55\x3c\x6a\xd9\x0a\x54\x0c\x13\xa1\x68\x61\xe0\x67\x6f\x12\x1f\x83\x94\x39\x9f\x01\x62\x90\x48\xd1\x85\xc9\x1b\xf4\x8d\x60\x54\x43\x72\xb9\x65\xa8\x11\xcd\x9e\x65\xf1\x2b\x59\x58\x37\xa8\x6d\x1f\xf7\xdb\xdc\x8b\xd2\x57\xb6\xdb\x90\x9f\x11\x50\xdd\xa2\x6e\x2d\xb5\x2e\xf0\x5f\xa9\xb2\x8f\xb3\x5f\xf6\x04\xb5\x88\xa1\x3b\x48\x2f\x2b\x50\x6d\x64\x8b\x44\x7e\xfe\x3a\x35\x16\xb2\x74\xd6\x90\x39\x15\xee\x56\x48\x50\x93\xc6\x71\xfe\xba\xa6\x10\x44\xc0\xda\x69\x41\x4f\x1d\xd0\xd5\x0e\x85\x8c\x4a\x3b\x96\x07\xf9\x64\x82\xfb\x90\x77\x62\xa5\xc5\xb4\x78\x79\x03\x01\xba\xa9\xed\x4e\xfe\x20\x07\x57\x83\xb9\x17\x51\x96\x1c\x2e\x16\xd0\xbd\xb9\x81\xf4\x1f\xc2\x55\xfc\x0c\x0b\x65\xdb\x01\xa5\x68\xdd\x99\xf7\x35\x5c\x81\x6d\xc3\x0a\xb8\xb7\xa1\xb5\xff\x8c\xba\x1a\x7f\x76\x05\x73\x7f\xdd\x32\xfc\x7f\xc4\x7c\xfc\xdf\x77\x1d\x68\x51\x75\x20\xe1\x50\xbe\x5f\x96\x25\x20\xeb\x6d\x0b\x3b\x46\xdd\x06\x76\x6b\xb6\xf9\xb9\x33\x0d\x49\xdc\xae\xbb\x31\x2e\xa0\x55\x4c\x12\x98\x48\x31\xff\x4a\x08\xd8\xb9\x3d\xc1\x0c\xb3\x5d\x0f\x5d\xda\xa0\x0a\xba\x15\x68\x1a\x73\x2c\xce\xf6\x2d\x6b\x6f\x3f\x4f\xd2\xbf\x77\xdd\xb3\xf4\x0c\x35\xd1\x5d\x57\xbd\xb5\x26\xae\x25\x1b\x40\x37\xa8\xc2\xa4\xe7\x56\x15\xad\x3b\x87\xee\x28\x83\xad\x33\x2a\x2d\xbd\x9c\xfc\xdc\xd4\xf4\x12\x54\x15\x26\x35\xc2\xdd\x25\xea\x6a\xf8\xc5\xb0\xaf\x9e\x53\x75\xfb\xa1\x99\xb7\x5f\xb4\x65\xf6\x53\xf7\x66\xbf\xd8\xfd\xaf\x6d\xf3\xa9\xf3\xc6\x26\x33\x13\x3f\xcd\x72\xcb\xda\x5b\x96\x3e\x57\x0c\xb6\x97\xcb\x2d\x63\xb8\xfb\x1e\x6f\xca\xa6\x9f\x86\x85\x20\x4c\xb3\xf8\x84\x2c\xfc\x89\x5a\x27\xf7\x02\x4f\x8f\xb5\x06\x12\xc6\xdf\xae\x08\xea\x45\x00\xc5\xf9\x3a\x1e\x93\x9c\x86\x74\xdf\x8b\x7d\x3d\xc5\x12\xa4\xbf\xaa\x31\x1e\xab\xd3\x2b\x1a\xe7\x89\x8f\x38\x11\xd7\xb1\xef\xf9\xfa\x5c\x33\xc4\x1a\xf8\x3d\xae\xf5\xfa\x7d\x9a\xc6\x7a\x84\xf6\xbd\xb3\xc2\x98\x09\x42\xfa\x1d\x41\xeb\x0d\x7b\x57\x8a\xfd\x24\x8e\xf4\x14\xea\x40\xf1\xab\xb4\x4a\x8b\xda\x34\x4a\x33\xef\x54\xd4\x32\xd8\xce\xd6\x6f\xa3\xe0\x54\x42\x6e\xe0\x1a\x34\x4e\x83\xba\x5b\xfa\xae\xa2\x8e\x7c\xcf\x0f\x4f\x45\x33\xea\x6e\x67\x13\x75\x9c\xf8\x41\x72\x22\xc2\x29\x03\x6c\x4b\x9d\x91\xfe\x23\xc2\x1e\x07\x16\x2f\xd9\x4b\x3d\x97\xe5\x87\x49\xa4\xcd\x14\x01\x2d\x9c\xa1\x97\xc6\x5e\xe8\xeb\xb7\x80\x20\xb6\x07\x84\xd1\x4b\xd9\x1a\xf3\x39\xd9\x38\x0e\x4f\x24\x6c\x49\xff\x06\x82\x7a\x46\xfa\xe3\x38\x8c\x83\x53\xd2\xdf\x02\x34\x63\x88\x93\x87\xf9\x69\xa9\xc7\xb5\x08\x4f\xe6\x32\xf5\x69\xe0\xa5\xa7\xa4\x9f\xa2\x1a\x2e\xc1\x7c\xea\x93\x66\x9e\xaf\xcd\x80\x54\xf9\xcb\x0d\x6e\xe1\xab\xcc\xe7\x49\x8d\x65\xee\xa5\xda\x1a\xa4\x18\xf8\x43\x91\xf2\xdb\x42\xe3\xe9\xfc\xe1\x89\xba\x90\x1f\xe4\xda\x61\x92\x12\x40\x0b\xbb\xad\xf3\x03\xc6\x9f\x79\xe2\x79\x99\x26\x0f\xc3\xfc\xb6\xc3\xfd\x38\xbc\x5c\xe2\x7a\x37\x5f\x2f\x8a\x02\xed\xc0\xfa\x11\xfd\x33\xbb\xc1\x3c\xf5\x53\x5d\x37\xf8\x88\x83\x89\x23\x7c\xb7\x21\x98\x9f\x9d\x5a\x6f\xfe\xc8\xd4\x85\xe6\x28\x3f\x08\x75\x63\xef\x47\x3c\xb4\xb0\x46\x60\x3e\x1f\x18\xa7\x91\xd6\x38\x78\x09\xea\x35\x74\x2a\xbc\xed\x5e\x39\x59\x71\x52\xf1\xc7\x91\xd6\xf4\x90\x20\x7e\x7e\xb2\xd3\xc8\x4f\xb4\xfc\xf6\x92\x40\x50\x57\x64\xdb\x2e\x67\x18\x24\xf8\x71\x1a\x68\xf9\xa8\x29\xb5\xc3\x50\xfe\x87\x8d\xcf\xb2\x3c\x0e\xf4\x14\xfe\xc0\x0d\x23\xdb\x4e\xad\xcb\xbe\xeb\x00\x3f\x88\xf4\xc2\x3c\x19\x14\x38\x14\x4e\xbb\xe8\x1c\xd6\x25\x08\x13\xbd\xf8\x4e\x52\x3e\x7f\x0f\x4d\xa2\x48\x6f\x60\x5c\x01\x52\x5f\x56\xb8\x63\x00\x75\xdf\xf7\xa3\xa7\x24\x3d\x4e\xa3\x50\xcb\xad\x56\xb8\x86\xce\xb2\xc1\xd5\xad\x98\xd9\x9c\x86\x94\x73\xe8\x4c\x16\x04\xd1\xa9\xe8\xff\x11\x13\xff\x49\x16\xa7\xa7\xa2\xff\x8d\x63\x9a\x63\x23\x97\x07\x0a\x36\xac\xe9\x1f\xb1\xb9\xef\xb5\xde\x16\xe6\x99\x56\xa8\x3a\x91\xce\xfb\xaf\x12\xa4\x61\x96\xe8\x99\x01\xdc\xef\xfe\x98\x11\x7b\xb9\x2d\x4f\x3b\x78\xf3\xb4\xb5\xb5\xdf\x5d\xd2\x0e\xf5\x3d\x7c\x6b\x00\x38\x13\x8b\x59\x92\x27\x5a\x31\x7a\x8d\x40\x83\xd7\xce\xb8\x0d\x62\xde\xe1\x69\x12\x25\xb1\x96\xf7\x7f\x42\xfe\x8f\xb0\x8a\x61\x18\x04\xa7\xe5\x62\x32\xc6\x7e\xb7\xee\x9f\x45\xb9\x96\xb1\x7a\x42\xf4\x0c\xc3\xea\xd0\x8f\xf5\x76\x34\x3c\x21\x1a\xdf\x41\xd2\x80\xf9\x34\x3e\x8a\xe3\x4c\x2b\x44\x7f\xc2\xc1\x67\x02\xfa\x7e\xc6\x09\x99\x34\x88\xf5\x26\x64\x6a\x44\xab\x06\xd3\x2d\x81\x13\x2e\xbe\x63\x5d\x5f\x6f\x4e\x9f\xb8\x7f\xcd\xe1\x89\x17\x6a\x8d\xc2\x6b\x44\x5b\x44\xa9\xf3\x16\x3f\xa9\xe7\xf4\xb2\x58\x6b\x40\x5b\x13\xdc\xd7\xf8\x73\x37\xf7\x3c\x5f\x90\xf9\x89\x5e\xc7\x18\x08\x9f\x79\x9d\x2b\xcc\x12\xbd\xdd\x16\x23\xe1\xa7\xd8\x0f\xa3\x39\x1b\xe2\x6b\x3a\xb2\x81\x95\x06\x51\xe6\x88\x1d\x57\xd5\x06\x56\xb7\x4b\xfc\x4a\xbe\x4e\x1f\x93\xa7\x71\x78\x9a\xfe\xf0\x88\xa5\x16\x90\xef\x2e\x27\xe9\x8d\x75\x33\xdf\xd3\x8a\xcf\x9f\xa3\x9c\x8f\x79\x5f\x33\x4f\x75\x4a\xad\x0a\x82\x38\xd3\x0a\xc3\x9f\x61\xe4\x71\x98\x37\xd7\xfc\x43\x14\xc4\x7a\xe1\xf6\x53\x56\xd6\xb0\x83\x04\x55\x33\x2e\xac\x26\x7a\xa3\xa2\x67\x78\x10\xbd\x16\x54\xdc\x93\xcf\x3a\x93\x75\x62\x36\x08\xa8\x11\xfe\x41\x86\xca\xcf\xd3\xe4\xd4\x86\x8a\xc2\x1e\x10\xc0\xf0\x7c\xce\x30\xc9\x3c\xbd\x29\x90\x67\xb8\x78\xd5\x54\xc8\x29\xd5\x2a\xca\x12\xbd\x39\xe9\x91\x09\x86\xd7\xeb\x06\xbe\x72\xe3\xf4\x3c\xdb\x8e\xe3\x20\x4c\x4f\x63\xc2\x14\x73\xd5\x06\xde\x91\x19\x47\xdb\x69\x10\xea\x6d\x2b\x78\xcc\x00\xaa\xde\xbe\xa9\xe0\x15\xf3\x3c\x7a\xad\x94\x64\x7a\xd6\x60\xd5\xec\xf0\x96\x1d\x66\x73\xe6\xb2\xc8\xb1\xa6\xaf\x57\x74\xff\x20\xff\x9e\x67\x51\xa0\x65\xbe\x14\xf9\xaf\x9b\xbf\x39\xe9\xd2\x5f\x92\xfa\x5a\x03\x55\x45\xf9\xeb\x26\x71\x4e\x1a\x1e\x26\x51\x70\x0a\xca\x4f\x36\x83\xf0\x6a\x3b\xfc\xe0\x0c\xdd\x53\x61\xbc\xcf\x0a\x52\xa6\xb9\xc4\xbb\xc2\x84\x8f\x60\x00\x0f\xd7\x20\x79\xcb\xe6\x06\xcd\xc0\x20\xd5\xdb\xce\xa0\xe8\x96\x83\xc9\xcb\x25\xa0\x70\xc6\xe3\x2e\x49\xa8\xb5\xd2\xfb\x90\xf6\x15\x82\x4d\x3d\xe3\x46\x50\xcd\x53\x2b\x0f\x89\x5f\x13\xbc\xed\xe7\x9b\x14\x4a\x34\x67\xb3\x04\xf1\x90\x10\x3c\xc7\xb9\x90\xcc\xd3\xdc\xaa\x36\xa1\xb6\x85\x94\x82\xf5\x7c\x3a\x9e\xa4\xb9\x56\x54\x28\x48\x17\x9a\xad\x71\xc6\xee\xb8\xd1\x7d\xd9\x82\x9f\x76\xce\x37\x0e\xb3\x53\xc9\x82\xbe\x76\xdd\xf0\xcf\xc4\x7f\x9a\x64\x7a\xe7\x84\x14\xff\x0d\x74\x50\xd7\xf3\x20\x74\x4e\x63\x1d\x05\x9a\x8b\xbe\x8f\xa9\x9f\xd7\x5c\xfb\xa1\x17\xeb\xfb\x49\x79\x9b\x83\xc3\xe0\x97\x39\x7c\xbb\x1f\xa7\x91\xbe\x95\x46\x5d\x8d\x2a\xc0\x66\xb2\xd4\xa9\xd6\x00\x5f\x10\xdc\x80\x25\x6c\xe6\x08\x9d\x82\xd4\xd7\x17\x6f\x03\xd7\xb0\x7b\xa5\x71\xd6\x1b\x43\xc5\x99\xde\x91\x6d\x41\x6e\x0b\xe8\x2d\xac\x1f\x1b\x10\xcd\xc8\xfe\xbd\xd6\x18\xa2\x38\xd4\x0f\xb1\x1e\x70\x3c\xaf\xd1\x89\x63\xcd\x8d\x4b\x82\x01\x31\x7b\xea\x88\xcd\x81\x3f\x62\x17\x46\x1c\x06\xfe\x49\x99\x98\x37\xd4\x8d\x12\x3f\xd6\xf7\xba\x13\xf2\xe7\xdf\x57\x1a\x86\x27\x88\x1b\x26\x1c\x08\x03\x3b\xe3\x79\x4b\x4f\x6f\x3f\xdc\x81\xfc\x99\x87\xa7\x51\x1c\xe9\x0f\x4f\x25\xe1\xf3\xda\x9d\x34\x89\xc3\x13\x69\xcc\xcc\xbd\x35\x4f\xa3\x5c\x5f\x59\x28\x6c\xb8\x3f\x3a\xee\xde\x4e\x40\x6d\x98\x84\xb9\xbe\x4b\x56\xd4\xce\xab\x22\x59\xa2\x3b\x23\x2b\x48\xdf\xf2\x70\x58\x31\x00\x56\x0c\x12\x07\x0b\xef\x34\xdf\x81\xdc\x3c\x4b\xd2\x13\xb4\xc1\x94\x91\x76\xdb\x30\xd4\x37\xf0\x55\x0a\x34\xbd\x68\x6f\x4c\x1c\xef\x6e\x9b\x38\x84\x67\x8e\x81\xbe\x38\x58\x7f\xa7\xd5\x8f\x2c\xf6\xf4\x36\x6d\x1c\x91\xd5\x41\x7d\xdf\x6d\x70\x11\x85\x81\xfe\xfc\xc1\x03\xea\xa5\xb2\x3a\x07\x1b\x37\xff\xfa\x74\xea\xe7\x7a\x7b\x83\x9e\x72\xd5\x37\xa0\x82\x1b\xdc\xcc\xba\x5b\x2b\x4e\x4f\xdd\x0d\x29\xea\xd6\xff\x03\x3b\x61\x18\xc7\x81\x7e\x58\xf1\x9c\xa4\xde\xbf\x0b\x9e\x24\x96\x66\xf0\x0b\x7b\xd5\x00\xf4\x1d\xd6\x21\x93\xe8\x04\x93\xf6\x13\x06\xbe\x23\xf2\x99\x4e\x2b\xf8\x69\x7e\x82\x09\x72\xce\x16\x20\x10\xcc\x12\x37\x9d\x60\x44\x33\xd2\x3b\x6f\xe4\x14\x44\xa1\xde\xfd\x31\x92\x78\xb5\x83\x65\xce\x01\x4d\x90\x64\xe9\x09\xc4\x2e\x29\x9f\x57\xe8\x61\xa8\x77\x26\x74\x4a\xf9\xbc\x23\x9a\x38\xf6\x72\x7d\x93\x73\x87\x28\x5a\xa2\x06\xb1\x9d\x33\xec\xae\x99\xf5\x50\x6e\x12\xa4\x9e\x56\xec\x85\x2a\xdc\x39\x0c\x35\x3f\xe0\xe4\x7c\x18\x79\x7a\x1b\x7e\x39\xed\x6f\x59\x6e\x7a\x2e\x46\x3c\xe9\x84\x90\x17\xea\x9d\x76\x9d\x6c\x2b\xfd\x63\xcb\x68\x7a\x66\x28\x4d\xf5\xce\xd6\x35\xa8\xbb\xbd\x44\x5d\x83\xba\x59\x83\x87\xd0\xcf\xf4\xce\x77\x0b\xba\x29\x03\x5d\x0d\x1a\x3c\x2f\xed\x49\xae\xd9\x07\xc4\x45\x41\xaf\x3e\x56\xf4\x88\x81\x1f\x75\xca\x28\x0b\xa3\x48\x8f\x6b\x5c\x83\x66\xf6\xcd\x7e\x79\x92\xe9\xdd\x91\x26\xc9\x9e\x7f\xb3\x5c\x94\x47\x7a\x83\x40\x49\xf8\xfc\x7b\xe5\x32\x2f\xd4\xbb\x33\x58\x12\xfe\xa7\xdb\x2a\x77\x44\x16\x4f\x5f\x7e\x14\x38\x1c\xd9\xc6\x9d\xe9\xdd\x5f\xd4\x83\x35\x1c\x2e\x20\x03\xd5\xbc\xd3\x85\x41\xa8\x39\x89\x34\x25\x5e\x5c\x05\x34\x1f\xed\x59\xa0\xb7\x1e\x31\x25\xfd\x87\x5c\x6f\x9d\xc4\xc9\xc9\x18\x98\x37\xfe\xcd\x92\xdc\x3f\x19\xe9\x74\xbb\x3c\x9c\xbd\x98\x45\xe9\x7d\x5f\x6f\xef\xce\x94\xfa\x79\x49\xcf\x43\xbd\x8b\x69\x7a\xb0\x46\x9d\x98\x18\x14\x4f\x40\xf5\x7e\x1b\x9a\xf5\x86\x89\x79\xa8\x77\x20\x7a\xc2\x28\xea\x56\x78\x86\x0d\x29\x51\x94\x79\xba\x7d\x62\x20\xb9\x03\x77\x97\x80\x10\xfc\xf9\x47\x1e\xd3\x4d\x82\x3c\xd5\x5a\x1e\x79\xc4\x10\x6c\x1a\xd4\x53\x34\x9f\x83\x08\xc3\xd8\xd3\x9a\x9a\x7a\xc4\x40\xb7\xe5\x04\xfc\xc8\x26\xc9\x3c\x4f\xdb\xe7\x8d\x1c\x09\x6e\xe0\x77\x77\x70\xfc\x18\x03\x90\x79\x99\xde\x58\x65\xc2\x29\x45\x5f\xa1\x5a\x1b\x78\xed\xb6\xbf\x57\x47\x9c\x27\x9d\x0a\x08\xa3\x40\x6f\x2a\xa0\xc7\x3d\xbe\x83\xe4\x3d\x2e\xbc\xf8\xde\xf5\x57\x2f\x8b\x48\x67\x35\x4a\x4f\x9c\xa9\xaf\xd7\x5b\x08\xbc\x83\xdf\x1f\xc7\xcc\x39\xd7\x95\xc7\x9e\x5e\xe0\xa5\x58\x7a\xd3\x89\x51\x3d\x4f\x9e\xc5\x7a\xb7\xa3\x12\x54\x6d\x1c\x86\x71\xc3\x50\x7f\xb9\xdc\x2e\x97\x6f\x3e\xa5\xfb\xc3\x14\x30\xf5\xb3\x58\xcb\x88\x3d\xe0\x7d\x7e\x35\xd4\x91\xe0\x91\x6d\xac\x9e\xde\xa2\xe3\x03\xa1\x48\x45\x9e\xf5\xe6\xd9\x2c\xd1\x3b\x48\x48\xe1\xba\x85\x1d\x83\xb5\xdc\x68\x31\xf3\xd0\x2d\x4a\x7c\xbd\xe9\x8a\xf1\xb4\xff\x0f\x58\xba\x48\x12\xbd\xcd\x21\x14\xd5\xd0\xe1\xa1\xdc\xac\x0b\x8d\x71\x10\xe9\x5d\xe7\x31\x92\xfd\x23\x3f\x34\x90\x7a\x91\xde\xf1\xc4\xc7\x5c\x88\x35\xb0\x3f\x74\x67\x81\x1e\x1f\x41\x94\x6b\x8d\xa1\x9f\xf0\x31\x6b\xff\xf5\xfd\xec\x44\xe4\x9f\x30\x34\x3c\xb5\xe3\x0c\xa2\x54\x6f\x53\xc1\xc8\x64\x83\x28\xbb\x5c\x82\xea\xd6\x99\xf5\xbb\x4c\x61\x1a\xe8\x6d\xe9\x78\xc8\xc0\xbc\x2a\x16\xc6\x81\xde\xdd\xea\x8f\x88\x9f\xf3\xdb\x63\x41\x9c\x7a\x5a\x93\x16\x0f\x69\x9f\x55\x69\xf2\x30\xce\x4e\xe3\x27\x04\xed\xf3\xce\x4c\x86\xb1\x66\x58\x37\x12\xdf\x63\xc2\x1e\x8c\xba\x66\x31\xab\x9e\xa7\x77\xe1\xc1\x63\xf2\x19\x20\x6b\xf8\xdd\xcf\x19\x0e\x5f\x77\x9e\xf1\x2a\xdf\x28\xd5\x5b\xb6\x1f\x19\x95\xa1\xf7\xdc\x77\x9b\x07\x79\xa2\xd9\x50\x0c\xf6\xbd\xf8\xdc\x1d\xec\x0f\xa7\x41\x67\xdd\x7d\x90\x86\xa1\x5e\x13\x28\x16\x18\xa0\xb7\x3f\x86\x85\x3c\x4e\xf4\x8e\xd4\x30\x1e\x2d\x68\x5e\x45\xf9\x5e\x97\x22\x85\xa1\xde\x28\x43\xf2\xc6\xbe\xbb\xf7\xf8\xa4\x0d\x92\x86\x7a\x9b\x19\x15\xd1\x9b\x3f\xc7\x3c\x57\x18\x66\xa9\x56\x2f\x1f\xd8\x71\x86\x0f\x77\x60\xf2\x5d\x63\xfc\x4e\x47\x1a\xb2\x54\x73\x7b\xef\x63\x5e\xd4\xdc\xc7\x9f\xe3\xa2\xb7\xc4\x4f\xf4\xce\xc3\x8e\xdc\xc9\x19\x7a\xf0\x8a\xf9\x3d\xbd\x6b\x2c\x34\x03\xfb\x44\x6f\x4a\xef\xc0\xae\x96\x46\x9e\xf4\x6a\xac\x3c\xd6\x3b\x65\xa8\x78\x9a\xf7\x3e\xaf\x34\xd2\xbb\xe1\x9c\x81\x25\x9d\x6f\x79\x44\x4f\xe9\x74\x3f\x88\x2b\x78\xed\x41\xa7\xce\x39\xff\x21\x8d\x3b\xf1\xa6\x57\xcd\x63\x5e\x82\x23\x06\x96\x7f\x12\x7e\x12\x5f\x73\x61\x96\x81\xf5\xfc\xf3\xa9\x51\x1e\xea\xcd\x25\x89\x9b\x5f\x66\xbf\xfc\x31\xf4\xf5\x26\x22\x05\xd5\x15\xae\x67\x5d\x36\xc8\x22\x5f\x6f\xdc\x22\xa8\xae\x11\xed\x87\xef\x48\xcc\x35\xe9\x9e\xa6\x9a\xc6\xe7\xd5\xd7\x03\x9d\x74\x9a\x37\x89\xf4\x76\xd7\x31\x0c\x66\x9f\x79\x4b\xd3\x2c\xd0\xeb\x90\x32\x34\x7c\xd3\x77\x20\x4e\xba\x6f\x2b\x4c\xf4\x26\x6e\x77\x8f\xee\x76\x9b\x67\x49\x2c\x7b\xe3\x7e\x40\x79\xf1\x95\xa0\x58\xcc\x2b\x3b\x0c\x3b\x2d\xae\xe1\x0b\x5f\xde\x96\xaf\x3f\x96\xf8\xb1\x13\x3a\x6f\x8c\xc7\x9e\xa3\xe7\xf7\x2d\x24\xcf\x7f\x70\x46\x91\xf3\x72\x23\xfa\xf1\x1b\x37\x19\xa0\x8e\x32\xd0\x55\xd0\x41\x1d\x62\x08\x34\xe8\x2b\xa7\xa6\xc1\xa0\x76\x68\x4f\x10\x13\x96\x56\x90\xe1\xac\x21\x73\x2a\xdc\xad\xd0\x11\x01\x44\x41\xf6\xc6\xd9\x85\x61\x2d\x5a\x8a\x00\x74\xd5\x06\x13\x58\x3b\x3d\xa6\xe8\xd1\x9e\x5e\xfd\xb3\xd1\x47\x76\x00\xe6\xbe\x0e\xd9\x55\x83\xfa\x25\x06\xa4\x9e\x87\xdc\x38\xf3\xfc\xb7\xa9\xfd\x43\x72\x09\x5c\x23\xca\x20\x71\xe0\x9d\xe8\x78\x3a\x34\x1f\xb9\xe9\xd9\x7f\xe3\x75\x39\x0f\x89\x9c\x8e\x95\xdf\x5d\xa2\x41\xec\x4d\x26\xf6\x40\x47\xc5\x6e\xc1\x23\x97\xd5\xfa\x93\x4b\x47\x96\x80\xc2\x24\x72\x7e\xa3\xc7\xb2\x84\xfe\xf4\xb4\xfc\x54\x61\x8e\x1c\x9f\x49\x27\xd6\x84\x87\x3d\x2d\x22\x04\x1f\xa5\x2c\xf2\xa7\x9f\x4b\x3d\xe4\xb9\x04\x75\x8d\xbb\x4b\x58\x23\x76\xd9\x02\x56\x6d\x96\x7c\x60\x04\xd9\x51\x9a\xd3\xdc\xf7\xfd\x97\x0b\x93\xc3\x7e\x84\xbb\x4b\x79\x04\xcf\x51\x07\xd9\x8e\xe8\x6d\x30\xf9\xe8\xf5\xa4\x3c\x6e\x81\x2f\x7f\x03\x77\x40\xee\xe5\x9f\xfc\x3c\x4a\x9e\x3f\x5d\x31\x7a\x5c\x1c\xd9\x2e\x77\xe2\xcf\xb1\x22\xfc\x34\x98\x6c\x56\xac\xb6\xe4\x0e\xd6\x8e\xd8\xbf\x7b\x54\x30\x49\x92\xf8\x87\xf5\x9e\x3a\x3c\xda\xf0\x41\x92\xc4\x93\x77\x79\xf1\xe0\x28\x51\x81\x9f\x79\xf9\x83\x1c\x5f\xd0\x77\xc8\xc9\x27\xf6\xa0\x0e\x9d\x15\x26\x2d\x38\x2a\xbb\x20\x88\xbd\x07\x59\x68\x05\x9a\xa3\x8d\x97\x44\xf9\xe4\x96\x41\x9e\x63\x68\xfe\xa3\x02\x0e\x93\xc9\xf0\x8a\xe7\xda\x80\xfe\x68\x3d\x61\x94\x4f\x02\x91\x3a\x74\x18\x6a\xe1\x2b\x38\x0a\x23\xff\x41\x9b\x38\x8c\x80\x6e\x74\x22\x47\x0e\x14\xc6\x93\x31\x49\x8d\xdb\x7e\x4b\xd0\xea\x68\xfb\x64\x49\x16\x1c\x94\xa6\xde\x12\xf9\x05\xf3\xef\xf4\xff\x34\x9a\x1c\x9f\x96\x1e\x15\x36\xb0\x85\x1d\x73\xa4\x5b\x1f\x63\x01\x95\xfc\x5c\x04\xf0\x4c\xdc\xf4\x42\x8c\x22\x21\xc1\xa8\x86\xe4\x72\xcb\x50\x73\x64\x80\xe3\x47\x93\x2d\xfb\x92\xb4\x15\xae\xb6\x94\x8b\xb0\x9f\x98\xe5\x43\xa2\xfb\xdb\x34\x5e\x1a\x6d\xf0\xcb\x55\xe4\xf9\x44\x0d\x64\x15\x07\xcb\xfd\x3e\xfe\xc7\x0f\xfd\xc7\x55\x52\x06\xc8\x1a\x30\x38\x8d\x5d\xe5\xaa\xdf\x4b\xc2\x7e\xdd\x0a\xe0\x0b\x53\x47\xcf\x7a\xa2\xe7\xf6\xea\x3d\x9e\xad\xba\x1c\xb7\x01\xd3\xcb\x0a\x54\x9b\x49\xf6\xc7\xad\xfd\xac\xc8\x5e\x5e\x68\x39\x12\xff\x47\x99\xf7\x6a\x71\x39\x93\x45\xd2\xb7\x49\xed\xf1\xe4\xcd\x13\x29\x3e\x1a\xd4\xbc\x61\x21\x38\x0b\x27\xb6\xfc\x11\x07\xaa\x1a\x7a\xe9\x3c\x69\xef\xef\x51\x70\x68\x56\x21\x45\x58\x3b\x2d\xe8\x79\xa8\x5a\x3b\x94\x3b\xd0\x23\xd1\xf8\x24\x16\x5e\x6d\x29\x74\x8f\x9b\x88\x34\xcc\x26\xb7\xce\x22\xea\x88\xe8\xe7\x65\x57\x1f\x46\x93\xb3\x9e\x0d\xae\x01\xdd\xb8\x62\xba\x8c\xbe\xc2\x2e\x07\x71\xf8\x34\x33\x85\xbf\x6f\x85\x6c\x5e\xe6\x29\x49\x26\x67\x65\x1a\xb2\xbd\x69\xc1\x51\x2a\x53\x6f\xb2\x89\xb8\x05\xe4\x16\x1e\x8d\x79\x92\x74\xe2\xfa\x5a\xac\xec\xe0\x91\xb9\x02\x7f\x22\x03\xf9\xbe\x70\x18\x5f\xf1\x77\x42\x91\x60\x72\xc0\xb7\xc3\x4e\x25\xb7\x15\xbe\x2c\xec\x38\x4b\x0f\xca\xd5\x13\xdc\x3b\x6c\xd7\xc3\xe3\xed\x99\x25\x93\x05\x7b\x31\xaa\x73\x28\x23\x62\x36\xfa\x48\x4d\x59\xec\x1d\xb4\x80\x41\xb6\x39\x1e\x8b\x06\x7e\x3a\xf9\xbc\xa0\xb8\xd2\x07\x76\x3c\x18\x22\x4e\x23\xc7\x6f\x47\x84\xe0\x4f\xab\x42\xac\x81\xdf\x15\x44\x96\x84\x93\x4d\xb4\x5f\x28\x03\xc7\xeb\x08\x93\xc9\x4d\x6d\x5f\x18\x24\xad\x23\xa2\x47\x67\x85\x8e\xb6\x6c\x9e\x44\x93\x13\x15\x37\x10\xa0\x9b\x7a\xd7\xdd\x88\x12\x5e\xca\xc7\x5c\x68\xa6\x59\x6a\xb9\x6c\x03\x3b\x93\xb9\xcc\x5d\xa2\xae\x36\x99\x9d\x66\xa9\xad\x4e\xcb\xee\x4d\x6b\x6f\xa7\x81\xe7\x45\xc5\x58\x00\xb4\x3b\xeb\xfe\x33\xea\x6a\xfc\xd9\x15\x35\x91\x92\xc0\xdf\xb7\x88\x40\x7b\x9a\x5a\x97\x35\x5c\xa1\x0e\xee\xf7\x36\x2d\xef\xf7\x67\x43\xfe\xf3\xca\x84\xd6\xfd\x1d\x20\xe7\x5d\x49\xaf\xe0\xf5\x19\x5a\x99\x77\x18\xd5\xe7\xde\x87\xb2\xec\x2c\x45\x5c\xe7\xc2\x2f\xdc\xf6\xd0\x33\xfe\x26\x13\x6f\x96\xf7\xa8\x2e\xa0\xcd\x87\xdb\xb0\x2e\x3e\xf8\xb6\x7a\xa5\xb8\xdf\xef\xcf\x54\x3e\x72\x05\xaf\xdd\x0a\x34\x8d\xc9\x86\x12\x6c\x66\x1f\x7e\x57\x96\xcd\x5c\x59\x42\xf9\xc1\x3b\x3c\xd8\x57\x6e\x5b\x12\x1b\x96\x57\xd7\x76\xe5\x7e\x2a\xcd\xce\x66\x36\xb6\x5b\xab\xfc\x78\x8f\x56\xe6\x07\x26\x49\x26\xa5\x7f\xe9\x9d\xad\x30\x31\x41\xe9\xfd\x04\xfe\x02\xdd\x06\x76\x6b\xb6\xf9\x09\x5c\x5c\x58\xf7\x3c\xfd\x0e\x90\x2b\x91\xf3\xba\x84\x57\xe0\xda\xa6\xbc\x9a\xbe\xf4\x7e\xea\xff\xc2\x86\x97\xfb\x8b\x0b\xcb\xfc\xe0\x2f\xda\x6f\xdf\xc8\xc7\xb2\xb5\x16\x8b\x4f\xc2\xce\xbb\xb7\x70\x47\xcd\xca\xfd\x64\xb9\xf0\x0e\x92\x9d\x69\xc2\xf2\x63\xe5\x7e\xba\x82\xd7\x26\xbb\xea\xaf\x2d\xcb\xfa\x99\xb9\x94\xbb\x30\x68\xf6\x8e\x63\xfb\x56\x61\xd2\xf2\x83\x6f\xb7\x7f\x21\x8b\x85\x49\xca\xd6\xb2\xb8\x3c\xa9\x75\x0f\x87\xf7\x80\x78\x4f\x88\x11\x95\xd8\xb4\xce\x46\x61\xa3\xc5\xc2\xec\x4a\x64\xed\xf7\x83\xd0\xf7\x6d\xd9\x7e\xfb\x26\x19\xe4\x19\x40\x79\x60\xf0\xa3\xb7\x58\xc0\x2b\xe0\xf8\xd7\x57\xc1\xf5\xc7\xf6\x27\xe0\x38\x16\xe7\xb0\x94\x89\x67\xe2\xb7\x62\x7d\x6f\x57\x6e\x57\xc2\xf2\xa3\x6a\x67\xb8\x58\x40\xf7\xe6\x06\xd2\x7f\xe0\x7a\xdb\xc0\x9f\x4d\xab\xfc\x08\xdd\x1a\xae\xc0\xb6\x61\x85\x40\x43\x03\x56\x6e\x6d\x76\xf6\x3d\x28\xba\xbd\x65\x77\x7b\x9b\x95\x4a\x36\x6b\xc8\xfe\x45\x30\xc3\xdc\x90\x7c\x5a\xfd\x0c\xcb\x8f\xcf\x3e\x30\xa1\x55\x40\x5e\xfa\xcd\x4d\xcf\x53\x6f\x6e\xec\xca\x65\xe5\x44\x7b\xb1\xc5\x5b\xd4\x5f\xe0\xc5\xc2\x84\x25\xdb\x20\x6a\x42\xcb\xb2\xb3\x05\x1e\x94\x0f\x72\x19\x1a\xca\xf7\x96\x25\x2f\x18\xaf\xce\x39\x13\x22\x6b\xc4\xb3\x4e\xf9\x79\x90\xcf\x4f\xf8\x63\x63\xa8\x70\x92\x5f\x74\xb4\xf1\xdd\x3d\x17\x4d\x3b\x70\x57\x11\x08\x18\x34\xbb\x6d\xd3\x58\x67\x95\x4b\xcc\x56\x36\x19\xe1\x5d\xa7\x2b\xbb\x6f\xdf\xae\xf8\x33\x9b\x99\xf7\x7b\xcb\x66\xe6\xd5\x35\xff\xcb\xac\xeb\xb1\xad\x68\x19\x08\xba\x7e\x7a\x42\x38\x5d\x2c\x3e\xfc\xbf\xce\x15\x93\x8d\x9f\xb8\x72\xfc\x44\x4b\x66\x52\xcb\x3a\x08\xf0\xd3\xe7\xee\x5f\x04\xf7\x90\xb0\xdd\x3f\x41\x0b\xa9\x49\x2d\x77\x85\xc9\x2f\xa0\xda\x98\x66\x57\x7e\x24\x57\xdd\x75\x29\xda\xe9\xaa\xbb\xb6\xac\xb1\xb7\x0d\x6d\x28\x9f\xd9\xbc\xf1\x5a\x9b\x58\x76\xcb\x35\xa0\x2e\x85\xad\x28\x3f\x0e\x1d\xe3\x9c\x9d\xa3\xee\xbc\xb3\x2a\x17\xf3\xfe\x65\x2d\x16\x1f\xf8\x4f\x28\x7e\x2a\x62\xa4\xd1\x18\x88\xe1\xcf\xec\x7b\xd8\x6d\x5b\x48\x78\x60\x58\x7c\xf0\xec\x35\x64\x45\x77\xc5\xae\xf7\x16\xaf\x64\x55\xde\xf3\x7f\x90\x6b\xdb\xbf\x08\x6e\x11\x85\x2e\xef\xfe\x0f\x7b\xd4\xca\x72\x09\xac\xb7\x15\x34\x4d\x51\x73\xf9\x91\x27\x5e\xb1\x6b\x41\xa1\xdd\x59\x96\x7d\x75\x6d\x59\x76\xe5\x6e\x79\x41\x46\xb5\xd9\x76\xb7\xae\x71\x01\x2f\x0c\xd7\xb8\xb8\x8f\xbd\xa8\x30\x7c\x0f\xc2\xd8\x0b\x96\x61\x1c\x66\x31\xa8\x82\x38\x5b\x85\x06\x37\x96\x85\x11\x84\x55\x9e\x7b\xb0\xaa\xd2\xb8\x0a\x56\x55\xb0\xf2\xea\xa5\xb1\xbf\x82\xd7\x17\x86\x88\x62\x2a\xb7\x45\x1d\xfa\x1b\xa5\xff\x29\x3a\x05\x27\x18\x0f\xc2\x51\x84\xf6\x83\x0a\xbb\x1b\x40\x27\xcd\x21\x8d\x99\xa0\x12\x73\x56\xdb\xd2\xb8\xb9\x11\xa1\xd6\x0d\xd8\x32\x7c\x83\x5a\x6e\xbf\x6e\x6e\x0a\x5e\x4b\x23\x0a\xb5\x99\x4d\x94\xdd\xc2\x57\xf0\xda\xe2\x7f\xdc\x7e\x4b\x37\x66\x67\x9d\xc1\x86\x42\xd1\x2b\xa9\xdd\x3f\x30\xbd\xcc\x1a\x5a\x09\x95\x35\xae\xb6\x3c\x38\xe0\xaa\xf1\x8b\x1c\x5f\xd1\xff\xbd\xfb\x15\xac\xb9\x72\x98\x86\x9a\x6c\xb0\x6c\x69\x04\xd1\x03\x23\xc8\x4b\x58\x96\xe8\x0a\x08\xcb\xbe\xe4\x45\xfc\x95\x31\x82\x96\x5b\xc6\xb3\x92\xca\xb0\xca\x12\x7e\xfb\xf6\xf8\x49\x0d\x18\x70\x3e\xc3\x65\x0f\xaa\x5b\xfe\x4a\x7b\xc1\xac\x7b\x5a\x2e\xcf\x96\x04\x82\xdb\xfd\x9e\x7e\xfb\x66\xf6\xdc\x98\x9a\xf4\x40\x9f\xec\x36\x8a\xc4\x03\x61\x96\x5b\x6d\x00\xa1\x90\x95\xc6\x96\xad\x9c\xcc\xb0\xa9\xcb\xe3\x1c\xbc\x65\xa5\x1f\x78\xdc\x3a\x55\x8b\x05\x75\xe9\x03\x0a\x3a\xdc\xf1\xc0\x96\x3f\xb4\xec\xc7\x0f\x1f\x90\x67\x73\xe2\xf8\x2b\xa4\x2a\xa1\x65\x73\x01\x97\x57\xdd\xb5\xe8\xb1\x4d\xa9\x34\xec\x9e\xba\xb8\x13\x9f\x9f\x29\xf9\x2f\xee\x74\x4a\xd1\x87\xab\x06\x02\xf2\xab\x24\xc7\xac\x65\x3f\x6f\x4b\xac\x7c\x61\x0d\x1b\xc8\xe0\x39\x87\x36\x75\x7b\x40\x60\xc7\xfe\x89\x6b\xc8\xe9\x3d\x20\x97\xc0\x16\xdf\xc1\xbf\x6d\x50\x53\x9b\xd4\xb2\xdb\xc5\xa2\x3d\xf4\x58\x6e\x00\x4d\x66\x59\x5c\xb3\x07\xdb\x6e\x32\x6b\x6f\xd7\x25\x85\x6c\xa8\xba\x91\x0e\x5f\xd0\x24\xd5\xc0\xbe\xe7\x1a\x58\x18\x4a\x56\x86\x2d\x07\x2e\x05\xdd\x5b\xb6\x1f\xc0\xc8\x3a\x3b\xf0\x34\xcd\x3d\xa6\x5a\xf6\xc8\xea\xe3\xe7\x3c\xd1\xb2\xfb\xc5\x62\x6c\xbc\x0d\x04\xb5\x0b\xfa\x1e\x76\xf5\xc0\xc7\x9e\x77\x0d\x22\x3a\x89\xb1\xed\xa4\x2d\xa8\x8d\x0f\x83\x25\xfb\xf7\xae\x5d\xe2\x66\xb1\x90\xff\x5d\x86\xff\x2d\x02\xc4\x5f\xc1\xfa\x65\xfb\xf1\xf4\x5d\xfb\xfe\x0e\x34\x5b\x58\x18\xd2\x7a\x1b\x7b\xcb\x7e\x29\xb3\x71\x30\xf2\xc6\x90\xed\x83\x27\x2d\x4f\xd7\xd6\x9c\x50\x13\xba\x3d\x60\x1b\xca\x23\x07\xe8\x56\x9c\x11\x02\xbb\x6f\xdf\xcc\x03\x28\xb9\xb5\x86\xdc\xba\xf4\xa5\x71\xb9\x45\x97\x80\xf2\xb1\xd0\xa5\x61\x9b\xdc\x6e\x8a\x2e\x03\xcb\xfb\x38\x88\x0a\x6f\x7f\x56\xb9\x2b\xf7\xb7\x51\x89\xf8\x33\x5c\x4a\x33\xd9\x59\x3f\x73\xfb\x5b\xc8\xc6\xe2\xca\xc2\x3b\x2e\xb6\x78\x47\xb7\x98\xec\xe2\xf8\x2a\xb8\x9e\xf4\xf2\xb6\xec\xe0\xe7\x73\x65\x18\x4d\xd3\x64\x22\xa4\xc1\x25\x2f\x87\x7b\xeb\x96\x5b\xf3\x49\xd6\x72\xf4\x3b\x95\xdb\x5f\x54\xee\xd6\xec\x2c\x9b\x8a\x42\x7e\xe1\x0d\x7c\x56\xb9\x8d\x49\x6c\x93\x49\xfb\x32\xd0\xb5\x58\x08\x52\x4c\x59\x30\x87\xa2\x02\x49\xa8\x65\x63\xcb\x52\xd4\xb0\xc5\x82\x0f\xa0\x40\x6d\x94\x65\xc9\x5c\xde\xae\x3f\x1b\x2d\xa2\x94\xc7\xf9\x85\x4c\xb0\x6c\xc2\xdf\x63\xae\xd4\xbe\xc3\x2f\xde\xdf\xce\xa8\xab\x3e\xe6\x54\x1a\xff\x85\x41\x8d\xba\xf5\xb9\xb0\xd6\xe7\xc6\x45\x77\x61\x9c\xaf\x00\x6a\x60\xed\xfe\xdf\xce\x34\x2e\xda\x0b\xa3\x38\x37\x2e\xc8\x85\x61\x71\x0b\xd0\x81\x16\x96\xc6\xdf\xf8\xcb\x3c\xe7\x2f\x72\x76\x98\x8a\x3a\xcb\xd6\xa6\x2e\x0f\x63\x21\x65\x25\xb1\xf1\x95\x7f\x2d\xd4\xd1\xb2\xa5\x2f\x70\x8c\x8b\xce\xee\xa4\x7e\x7e\x72\x7f\x2b\xbb\xf2\xa3\x57\x96\x82\xdb\x33\x19\xe3\x3c\x68\x30\xbb\xb5\xaf\x88\x4d\xed\xfe\xba\x64\x36\x2a\x45\x5b\x11\x97\xe2\x16\x0a\x77\xca\x65\x25\x3d\xa9\x0c\x1a\x31\xf7\x8b\x54\xf8\x45\x6a\x63\x2e\xbe\xca\x6d\xaf\xf0\x75\x49\xaf\xf0\xb5\x88\xe8\x7a\x4b\xc6\x63\xbd\x59\x59\x7b\x9e\xa5\x5b\x2c\x78\x97\xfe\x09\xfd\x85\x0c\xe6\x17\x5d\x5c\x58\x6d\x49\xae\x10\x0f\x61\x79\xbb\xf0\xc8\x12\x5e\xb5\xd7\xf2\xef\x95\x77\x6d\x5a\x36\xff\x55\x7a\x87\x68\xeb\x93\x09\x2c\x1e\x65\xad\x1b\xbc\x04\xcd\xaf\x1b\x44\x5d\x65\xe5\x84\xa0\x9e\x71\x35\x6f\x78\xf5\xdb\xb7\xab\xeb\x33\x36\xda\xa5\x6e\x62\x12\x3c\x8b\x47\xe2\x5c\xef\xca\x69\xb2\x4c\x52\x23\x11\x3e\x04\x31\x79\xb7\xf9\xa4\xdc\x94\x7d\x15\x05\xd1\xb5\xec\x35\x95\x29\xc6\x25\x96\x25\x15\xb6\x2f\x5f\x7a\xcd\xf7\xf2\x20\xe7\xaf\xc9\x57\x7a\xcb\x7e\xd6\x81\x96\x3d\xaf\xec\xec\xff\x07\x00\x00\xff\xff\x7f\xe4\x10\xf9\x3f\xbd\x00\x00") +var _distAssetsChunk524163f7c06e956c9535525Js = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xdc\x7d\x5b\x73\xe3\x38\xb2\xe6\xbb\x7f\x85\x8b\x0f\x3a\x64\x98\xa4\x79\xbf\xf5\xb0\x7a\x67\x67\xfa\x44\x6c\xc4\x99\xa9\x89\x98\x3e\x4f\x5e\x87\x03\x22\x21\x09\x6d\x92\x60\x03\x90\xab\x54\x2e\xed\x6f\xdf\xc0\x85\x14\x7d\x53\xd9\x0d\x99\xd5\x71\x5e\x6c\x7d\x20\x01\x64\x26\x12\x99\x89\x2b\xef\x00\x39\xbf\xb9\x81\xed\x12\x92\x1b\xb0\x65\xf8\x06\xb5\x3d\x26\xec\xe6\xe6\x27\xd3\xb4\xca\x8f\xf7\xfc\x39\xb4\x3b\x9b\xd9\xd8\x6e\x6d\x52\xde\x87\x71\x18\x67\x85\x29\xd2\x86\x17\x70\x79\x6f\xb8\x97\x60\x65\x14\x51\x1a\x66\xbe\x2d\x80\xfb\x1b\x9d\x62\x62\x14\x79\x98\x27\x0a\x38\xf5\x57\xa3\x88\xe3\xcc\x8b\x46\x2c\xde\x9f\x26\xdd\x7e\x36\x0a\xdf\xf3\xa3\x03\x16\xaf\x4c\x93\x9a\x9d\x51\x24\x51\x14\xc5\x23\x16\xaf\x4c\x93\x5a\x60\x14\xa9\x17\x04\xde\x88\xc5\x2b\xd3\xa4\x9e\x1a\x45\x98\xc4\x61\x3c\x62\xf1\xca\x34\x89\x02\xa3\x48\xbc\x28\xf4\x46\x2c\x2b\x9a\x24\xb1\x8e\x57\x7c\xa0\x8d\x75\x8a\x96\x31\x49\xe0\x83\x10\xbe\x1a\x85\x9f\x46\x81\xac\x42\xb2\x3f\xe2\x25\x34\x8a\x28\x0f\xa2\x50\x02\x29\xcb\x11\xaf\x8d\xc2\x0f\xfd\x28\x97\x40\xe6\x1c\x71\x6b\x14\x61\x16\xc4\x0a\x48\x4e\x46\xdc\x19\x45\x14\xa5\xb9\x27\x81\xb3\xac\x39\x0f\x5e\x12\x8f\x58\xb1\x35\x26\xc9\x9a\xc7\x2c\xd8\x28\xe2\x30\x55\x35\x61\xd9\x64\x23\x26\x46\x91\xc6\x7e\x98\x49\x20\xc5\x3c\x62\x5e\x4c\xe8\x29\xee\xa4\x80\x47\x5c\x01\xa3\x88\x3d\x4f\x8a\xb2\x92\xa2\x3d\x60\x6a\x14\x99\x17\x07\xf2\xb7\x78\x36\xc2\x3b\xa3\xc8\xc2\x2c\xf5\x25\x90\xcf\x46\xbc\x33\x8a\x34\xc9\x63\x59\x88\x54\x8c\x11\xd7\xc0\x28\xf2\x5c\x32\x59\xcb\x0a\x47\x08\x8d\x22\x88\xa3\x38\x95\xc0\x01\xcc\x28\x52\x3f\x8e\x0e\x58\x16\x35\x49\xaa\x36\x46\x11\x84\xb9\x14\x83\xc0\xe2\x95\x49\x92\xc4\x63\xa9\x82\x6e\x3f\x4d\x24\x50\x74\x2b\x0c\x1b\xa3\x08\x83\xd8\x0b\x25\x90\x0d\x38\xe2\xce\x01\x5b\xa3\x08\xbd\x4c\xbd\xcc\xb1\x7c\x65\x92\xc4\xe5\x19\x79\x81\x94\xbc\xc0\x52\xde\x93\xa4\xf5\xd2\x28\xe2\xc4\xcb\xe3\x11\x4b\xa9\x4f\x92\x10\xd7\x41\x3f\x8d\xb2\x11\xcb\x52\xa6\x49\x8d\x51\xa4\x59\xea\xa5\x23\x96\xb2\x99\x26\x75\x46\x91\x47\x7e\x7e\xc0\x52\xda\x93\xa4\xee\xab\x51\x84\x61\x2a\x5b\x46\x60\xc9\xd1\x24\x89\xae\x8d\x22\xc8\xd3\x30\x19\xb1\x94\xe8\x98\x84\x8d\x22\xf4\x3d\xf5\xbe\x54\xcc\x03\xe6\x54\x27\x71\x14\x48\xe0\xd4\xd8\x28\xf2\x20\xf5\x92\x11\x4b\x92\x26\x49\xed\x17\xa1\xbb\xb9\x37\xe2\x41\x9d\xc7\xa4\xad\x30\x57\x69\x12\x8e\x58\x59\xb0\x31\x49\x8a\x6b\xac\x98\x71\xa5\x0e\x02\xf9\x90\x29\x25\x1f\xf0\xd6\x28\xfc\x38\x4b\x22\x09\x64\x97\x1e\xf0\x8a\x37\x67\xe6\x49\x63\xb4\x52\x6d\x39\x62\x64\x14\x49\xec\xcb\x3a\x57\x48\xf6\xdf\x03\x6e\x8c\x22\xcb\x3c\xd9\x1a\x2b\xd5\x3c\x87\x04\x6c\x14\x59\x9e\xf8\x0a\xc8\x87\x23\x26\x46\x91\x05\x69\x26\x7f\x4b\x9d\xf2\x7d\xa9\x86\x02\x2b\x6d\x98\x24\x6d\x8c\xc2\x0f\xe2\xc4\x1b\xb1\xe4\xe3\x90\x24\x6b\x18\x0a\xdd\xf1\x67\x69\xe8\x4b\xa0\xde\x55\x78\x0d\x8c\x22\x4c\xd3\x28\x91\x40\x36\xe8\x88\x6b\xa1\x86\xd2\x78\xac\xeb\x41\x2d\x15\xe6\xfd\xc7\x4b\x23\x59\x8c\xea\x3f\x23\xc6\xad\x53\xc3\x3b\xde\xfb\xb3\xc4\x4f\xa6\x49\x52\x07\xa6\xa9\x0d\x10\x36\x3d\xf5\xb3\x74\x9a\x24\x45\x3c\xa6\x6e\x79\x63\xf8\x91\xfc\xad\xda\x46\xc2\x0d\x34\x8a\x24\x0c\xfc\x50\x02\x99\x6f\xc4\x88\x1b\xed\x40\xd2\xbc\x41\xca\x88\x0f\x98\x70\xf7\x13\x05\xb2\x18\xa2\xdc\xd1\x80\xb9\x01\x08\xf2\x2c\x97\x40\x19\x88\x01\xef\x1c\xd0\x1a\x05\x97\x94\x37\x62\xa9\xbb\x43\x12\xaa\x39\x9f\xb9\xb4\x92\xa8\x56\x7c\x0f\x98\x03\xcf\x97\x72\x46\x52\x85\x0f\x98\xf1\x5e\x19\xa7\xb9\x04\xa2\xc1\xb3\x24\x08\x0f\x58\x36\xf0\x21\x49\x75\x64\x95\xe5\x37\xa1\xc8\x81\xb4\x30\xbf\x0d\x8a\x3c\xe0\x3b\xae\xf2\x71\x26\x7f\xab\x1e\x20\xe1\x2d\x57\x06\x3f\x1f\x80\xea\xdd\x03\xbe\x35\x8a\x34\xf0\x65\xb3\xdd\xde\x4a\x5e\x47\xdc\x72\x8d\x8e\xe3\x48\x02\xa5\xe1\x03\xe6\xa6\x29\x09\x63\x5f\x02\xc9\xeb\x88\xb1\x51\x44\x81\xec\x80\xb7\xb2\x6b\x8c\x70\x6b\x14\x39\x6f\x2b\x09\x9c\xdb\x96\x18\x45\x92\xc5\x32\xe6\x90\x09\xb2\xb1\x0f\x69\xb2\xf0\x31\xd3\xce\x28\x02\x2f\x93\xfd\xe0\x56\xaa\xfe\x88\x9b\x25\x57\xd8\x48\x46\x0d\xcd\x52\x29\xf0\x80\xb9\xed\x8a\x64\x5b\x35\xca\x6e\x0d\x90\x71\x4f\x2d\x8d\x4d\xc3\x94\xe3\x56\xf0\xce\x28\x82\x28\xce\x15\x90\xf5\x0d\xb8\x85\x5c\xb9\x72\xe9\x3d\x5a\xa8\x94\x6d\xc0\x88\x4b\x33\x96\x16\xbf\x45\x4a\xba\x03\xbe\xe5\x8d\xad\xda\xa1\xbd\x55\x8d\x3f\xe0\x86\x6b\x4e\x22\x35\xa1\x6d\x94\x26\x0d\xb8\xe3\x7d\x3d\x91\xda\xde\x76\xaa\xef\x0f\x98\x70\xdf\x19\x4a\xdf\xa9\x44\x79\xc0\xfc\xcd\x28\x94\x66\xb8\xa5\x4e\xbb\x13\x2d\xea\xf9\x23\x1e\x1a\x79\x48\x92\x85\x8f\x59\xb8\x3b\x0f\x72\x5f\x16\xa6\x7c\xf9\x88\x77\x46\x11\x47\x03\x77\xb2\xa4\x11\x77\x4b\xa3\x08\xfc\x48\xea\x4e\x27\xdb\xe5\x80\xa1\x51\xc4\x79\xe8\xfb\x12\xc8\x9c\x23\x6e\x84\x51\x90\x12\xed\x1a\x87\x47\x77\x99\xaf\x02\x50\x81\x25\xcd\x87\xa4\xc1\x8e\xa8\x2c\xdc\x0c\x65\x89\x17\x48\xa0\x74\x4b\x61\x5c\x39\x4d\x57\x19\x45\xec\x07\x59\x72\x48\x90\x14\x0c\x69\x3d\x10\x8e\xd8\x8f\x42\x19\x81\x08\x3c\x08\x46\x25\x71\x5f\x9e\xc6\x89\x7c\x5f\x39\xf2\x11\x0b\xe7\x95\x04\xf2\xb7\xc3\x43\x3d\x3f\x08\xfd\x78\xc4\xaa\x05\xc7\x24\xe5\xde\x64\x0e\x82\xb9\x4f\x0a\xe2\x50\x02\xe5\xa3\x06\xcc\x0d\x68\x22\x9d\x19\x51\x06\x54\x41\xca\xed\x7c\x1e\xa6\xa9\x04\x2a\x0a\x1e\x30\x8f\xd3\xf2\x44\xba\x78\xaa\x22\xac\x11\x23\x5e\x4a\x1e\x46\x12\xa8\x52\x07\x7c\xcb\x25\x13\x87\x81\x04\x4a\x52\x03\xe6\xee\x23\xf4\x65\xbf\xa5\xca\x7d\x8c\xf8\x77\x6e\x21\x52\x3f\x93\x40\x59\x8c\x01\x73\xa3\x9d\x49\x45\xa2\xc4\xa9\x76\xa4\x31\x8a\x38\xf0\xa4\x82\xa8\x14\x59\xd9\x21\x51\xc5\xe7\x2a\x97\xb0\xc4\xbe\x54\x37\xaa\x8c\xef\x88\xef\x8c\x22\x8d\x54\xbc\x40\x65\x1f\x3e\xe0\xcf\xdc\x46\x04\x79\x22\x81\xb2\x19\x0a\x33\xee\xee\x82\x20\x8b\x25\x50\xc1\xce\x80\x21\xb7\x4b\x89\x1c\xa5\x31\xa8\xec\xd4\x88\x45\x6f\xc9\x64\xa8\xc6\xe0\xd0\x5d\x86\x84\x35\x0f\x89\xa4\xbd\x64\x6b\x15\x21\x29\x28\x43\xe2\x40\x12\x30\xc6\xc3\x0a\xdf\x72\xab\xe5\xe5\xb9\x04\xca\x8a\x0d\xb8\x71\xfa\x0d\x1f\x27\xf9\x32\x48\x11\x58\x0d\x9d\xc6\xa4\x0d\x0f\x55\xd3\x20\x53\x48\xc5\xae\x43\x82\x1c\x88\x44\x9e\x04\x43\xe4\xa6\xf0\x57\x6e\x97\xf2\x58\xf6\x0b\xf6\x55\x19\xa6\x43\x42\xcb\x9d\x7b\x94\x86\x0a\x0d\x51\x40\x90\x4b\x1f\x36\x24\x49\x25\x9e\xa4\xaa\xb0\x40\xe5\xdc\xae\x9d\x8a\xbb\x17\x4f\x95\x2b\xb0\xb2\x81\x43\xd2\xad\x18\x1f\x27\x0a\x0c\xe3\x65\x85\x79\x0f\x4b\x3c\x39\x54\xdc\xaa\xee\x35\x62\x3e\x78\xf6\x64\x37\xd8\x7e\x55\x14\x46\x71\x22\x83\x3e\x95\x22\xcb\x3b\x24\xaa\x1e\x29\x73\xdd\x21\x6e\xa9\x7d\x69\x8c\xef\x90\xb2\xdc\x0a\x7f\x71\x7a\x0a\xb7\x3c\x4a\x0e\x82\x34\x7f\x90\x24\xdb\x71\x48\xdd\x89\x40\x3a\x90\xe3\xb4\xdd\x10\x45\x2b\xfc\x75\x23\x24\x90\xe5\x9e\x34\x62\x02\x2b\xdb\x7c\x48\xda\x70\x21\x78\x69\xe4\x8d\x58\x0d\x55\x0e\x49\xad\xf0\xc4\x52\x21\x05\x54\xce\x78\x4c\x61\x9f\x79\xb5\x5e\x92\x8d\x58\x51\xe2\x25\xd9\xfe\x6c\xb5\xed\x2a\x86\x70\x77\xde\x9a\xd0\x12\xd3\x15\x5d\x49\x4c\x68\x9d\x11\xc8\xb6\xa4\x3b\x67\x66\x67\xed\xc7\x97\xf8\x93\x7b\xb4\x32\x3f\x30\x17\x9b\xd8\x86\xd6\x90\xa5\x83\x9f\xcf\x7f\x21\x04\x13\xd3\xf8\x1b\xe8\x3a\xcc\xce\x57\xa8\xab\xcf\x5b\x5c\x6f\x1b\x78\xfe\x1f\xc6\x05\xbc\x30\xfe\xc3\xb0\xce\xd8\x86\xe0\xcf\xe7\x9d\x5b\xe1\x1a\x96\xc6\x3f\x3e\xfd\xfd\xbf\xff\xeb\x97\x9b\x7f\x7e\xfa\xf5\xe6\x3f\x3f\xfd\xf7\x3f\xff\x6e\xd8\xdd\x5e\xd5\x8b\xaf\xe0\xf5\xbe\x75\x6f\xe1\x8e\x96\x43\xf5\xa6\x75\xaf\x9e\x7e\x5a\xfe\x06\x2b\x26\x9e\x9a\xd8\xda\xdb\xad\x4b\x20\xc5\xcd\x1d\x2c\x89\x0d\x5d\xf8\xa5\xc7\x84\xd1\xb2\xb5\x5b\x17\xd5\xa5\x98\x93\xd9\xdb\x61\x10\xe4\x51\x01\xcb\x8f\xf7\xc6\x96\xc2\x73\xca\x08\xaa\x98\x71\x76\x78\x9d\xc0\xdf\xb7\x88\x40\xd3\xf8\x5f\x62\xc2\xe7\x12\xf4\x7d\x83\x2a\xc0\x6b\x36\xac\xbd\x9d\x04\x49\x12\xbe\x25\x7f\x85\xdb\x1e\x77\xb0\x63\x3c\xb7\xef\x85\x61\xf2\x87\x72\x5f\x6e\x60\xd3\x43\x22\x0a\x49\x82\x30\xfe\x63\x85\x30\xd8\xf6\x0d\x60\xd0\xc1\x5d\xb3\x13\xec\xf8\x89\xf7\x26\x76\x6a\xb8\xdc\xae\x79\xce\xd0\xf7\x43\xef\x6d\x39\x29\x23\x78\x07\x96\x0d\x14\x35\xa7\x7e\xf0\x96\xec\x07\xfe\x83\x30\x4d\xdf\x92\xb3\xc5\x35\x5a\x21\x99\x37\x8a\x52\xff\x2d\x79\xb1\x50\x31\x51\x6b\x94\x24\x6f\x6a\x3a\x99\xf5\x12\x75\x0c\x92\x0e\x34\x94\x17\x92\xfa\x41\xf0\x26\x71\x93\x6d\xd7\x60\xdc\xf3\xbc\x59\x90\xbe\xad\xd9\x29\x24\x77\xa8\x12\xc2\x0e\xd2\x3c\x7d\x53\x63\x0d\x8a\x22\xf4\xcd\x8f\x92\x37\x55\x3c\x6a\xd9\x0a\x54\x0c\x13\xa1\x68\x61\xe0\x67\x6f\x12\x1f\x83\x94\x39\x9f\x01\x62\x90\x48\xd1\x85\xc9\x1b\xf4\x8d\x60\x54\x43\x72\xb9\x65\xa8\x11\xcd\x9e\x65\xf1\x2b\x59\x58\x37\xa8\x6d\x1f\xf7\xdb\xdc\x8b\xd2\x57\xb6\xdb\x90\x9f\x11\x50\xdd\xa2\x6e\x2d\xb5\x2e\xf0\x5f\xa9\xb2\x8f\xb3\x5f\xf6\x04\xb5\x88\xa1\x3b\x48\x2f\x2b\x50\x6d\x64\x8b\x44\x7e\xfe\x3a\x35\x16\xb2\x74\xd6\x90\x39\x15\xee\x56\x48\x50\x93\xc6\x71\xfe\xba\xa6\x10\x44\xc0\xda\x69\x41\x4f\x1d\xd0\xd5\x0e\x85\x4c\x34\x46\xe6\x87\x79\x3c\x99\xe0\x3e\xe4\x9d\x58\x69\x31\x2d\x5e\xde\x40\x80\x6e\x6a\xbb\x93\x3f\xc8\xc1\xd5\x60\xee\x45\x94\x25\x87\x8b\x05\x74\x6f\x6e\x20\xfd\x87\x70\x15\x3f\xc3\x42\xd9\x76\x40\x29\x5a\x77\xe6\x7d\x0d\x57\x60\xdb\xb0\x02\xee\x6d\x68\xed\x3f\xa3\xae\xc6\x9f\x5d\xc1\xdc\x5f\xb7\x0c\xff\x1f\x31\x1f\xff\xf7\x5d\x07\x5a\x54\x1d\x48\x38\x94\xef\x97\x65\x09\xc8\x7a\xdb\xc2\x8e\x51\xb7\x81\xdd\x9a\x6d\x7e\xee\x4c\x43\x12\xb7\xeb\x6e\x8c\x0b\x68\x15\x93\x04\x26\x52\xcc\xbf\x12\x02\x76\x6e\x4f\x30\xc3\x6c\xd7\x43\x97\x36\xa8\x82\x6e\x05\x9a\xc6\x1c\x8b\xb3\x7d\xcb\xda\xdb\xcf\x93\xf4\xef\x5d\xf7\x2c\x3d\x43\x4d\x74\xd7\x55\x6f\xad\x89\x6b\xc9\x06\xd0\x0d\xaa\x30\xe9\xb9\x55\x45\xeb\xce\xa1\x3b\xca\x60\xeb\x8c\x4a\x4b\x2f\x27\x3f\x37\x35\xbd\x04\x55\x85\x49\x8d\x70\x77\x89\xba\x1a\x7e\x31\xec\xab\xe7\x54\xdd\x7e\x68\xe6\xed\x17\x6d\x99\xfd\xd4\xbd\xd9\x2f\x76\xff\x6b\xdb\x7c\xea\xbc\xb1\xc9\xcc\xc4\x4f\xb3\xdc\xb2\xf6\x96\xa5\xcf\x15\x83\xed\xe5\x72\xcb\x18\xee\xbe\xc7\x9b\xb2\xe9\xa7\x61\x21\x08\xd3\x2c\x3e\x21\x0b\x7f\xa2\xd6\xc9\xbd\xc0\xd3\x63\xad\x81\x84\xf1\xb7\x2b\x82\x7a\x11\x40\x71\xbe\x8e\xc7\x24\xa7\x21\xdd\xf7\x62\x5f\x4f\xb1\x04\xe9\xaf\x6a\x8c\xc7\xea\xf4\x8a\xc6\x79\xe2\x23\x4e\xc4\x75\xec\x7b\xbe\x3e\xd7\x0c\xb1\x06\x7e\x8f\x6b\xbd\x7e\x9f\xa6\xb1\x1e\xa1\x7d\xef\xac\x30\x66\x82\x90\x7e\x47\xd0\x7a\xc3\xde\x95\x62\x3f\x89\x23\x3d\x85\x3a\x50\xfc\x2a\xad\xd2\xa2\x36\x8d\xd2\xcc\x3b\x15\xb5\x0c\xb6\xb3\xf5\xdb\x28\x38\x95\x90\x1b\xb8\x06\x8d\xd3\xa0\xee\x96\xbe\xab\xa8\x23\xdf\xf3\xc3\x53\xd1\x8c\xba\xdb\xd9\x44\x1d\x27\x7e\x90\x9c\x88\x70\xca\x00\xdb\x52\x67\xa4\xff\x88\xb0\xc7\x81\xc5\x4b\xf6\x52\xcf\x65\xf9\x61\x12\x69\x33\x45\x40\x0b\x67\xe8\xa5\xb1\x17\xfa\xfa\x2d\x20\x88\xed\x01\x61\xf4\x52\xb6\xc6\x7c\x4e\x36\x8e\xc3\x13\x09\x5b\xd2\xbf\x81\xa0\x9e\x91\xfe\x38\x0e\xe3\xe0\x94\xf4\xb7\x00\xcd\x18\xe2\xe4\x61\x7e\x5a\xea\x71\x2d\xc2\x93\xb9\x4c\x7d\x1a\x78\xe9\x29\xe9\xa7\xa8\x86\x4b\x30\x9f\xfa\xa4\x99\xe7\x6b\x33\x20\x55\xfe\x72\x83\x5b\xf8\x2a\xf3\x79\x52\x63\x99\x7b\xa9\xb6\x06\x29\x06\xfe\x50\xa4\xfc\xb6\xd0\x78\x3a\x7f\x78\xa2\x2e\xe4\x07\xb9\x76\x98\xa4\x04\xd0\xc2\x6e\xeb\xfc\x80\xf1\x67\x9e\x78\x5e\xa6\xc9\xc3\x30\xbf\xed\x70\x3f\x0e\x2f\x97\xb8\xde\xcd\xd7\x8b\xa2\x40\x3b\xb0\x7e\x44\xff\xcc\x6e\x30\x4f\xfd\x54\xd7\x0d\x3e\xe2\x60\xe2\x08\xdf\x6d\x08\xe6\x67\xa7\xd6\x9b\x3f\x32\x75\xa1\x39\xca\x0f\x42\xdd\xd8\xfb\x11\x0f\x2d\xac\x11\x98\xcf\x07\xc6\x69\xa4\x35\x0e\x5e\x82\x7a\x0d\x9d\x0a\x6f\xbb\x57\x4e\x56\x9c\x54\xfc\x71\xa4\x35\x3d\x24\x88\x9f\x9f\xec\x34\xf2\x13\x2d\xbf\xbd\x24\x10\xd4\x15\xd9\xb6\xcb\x19\x06\x09\x7e\x9c\x06\x5a\x3e\x6a\x4a\xed\x30\x94\xff\x61\xe3\xb3\x2c\x8f\x03\x3d\x85\x3f\x70\xc3\xc8\xb6\x53\xeb\xb2\xef\x3a\xc0\x0f\x22\xbd\x30\x4f\x06\x05\x0e\x85\xd3\x2e\x3a\x87\x75\x09\xc2\x44\x2f\xbe\x93\x94\xcf\xdf\x43\x93\x28\xd2\x1b\x18\x57\x80\xd4\x97\x15\xee\x18\x40\xdd\xf7\xfd\xe8\x29\x49\x8f\xd3\x28\xd4\x72\xab\x15\xae\xa1\xb3\x6c\x70\x75\x2b\x66\x36\xa7\x21\xe5\x1c\x3a\x93\x05\x41\x74\x2a\xfa\x7f\xc4\xc4\x7f\x92\xc5\xe9\xa9\xe8\x7f\xe3\x98\xe6\xd8\xc8\xe5\x81\x82\x0d\x6b\xfa\x47\x6c\xee\x7b\xad\xb7\x85\x79\xa6\x15\xaa\x4e\xa4\xf3\xfe\xab\x04\x69\x98\x25\x7a\x66\x00\xf7\xbb\x3f\x66\xc4\x5e\x6e\xcb\xd3\x0e\xde\x3c\x6d\x6d\xed\x77\x97\xb4\x43\x7d\x0f\xdf\x1a\x00\xce\xc4\x62\x96\xe4\x89\x56\x8c\x5e\x23\xd0\xe0\xb5\x33\x6e\x83\x98\x77\x78\x9a\x44\x49\xac\xe5\xfd\x9f\x90\xff\x23\xac\x62\x18\x06\xc1\x69\xb9\x98\x8c\xb1\xdf\xad\xfb\x67\x51\xae\x65\xac\x9e\x10\x3d\xc3\xb0\x3a\xf4\x63\xbd\x1d\x0d\x4f\x88\xc6\x77\x90\x34\x60\x3e\x8d\x8f\xe2\x38\xd3\x0a\xd1\x9f\x70\xf0\x99\x80\xbe\x9f\x71\x42\x26\x0d\x62\xbd\x09\x99\x1a\xd1\xaa\xc1\x74\x4b\xe0\x84\x8b\xef\x58\xd7\xd7\x9b\xd3\x27\xee\x5f\x73\x78\xe2\x85\x5a\xa3\xf0\x1a\xd1\x16\x51\xea\xbc\xc5\x4f\xea\x39\xbd\x2c\xd6\x1a\xd0\xd6\x04\xf7\x35\xfe\xdc\xcd\x3d\xcf\x17\x64\x7e\xa2\xd7\x31\x06\xc2\x67\x5e\xe7\x0a\xb3\x44\x6f\xb7\xc5\x48\xf8\x29\xf6\xc3\x68\xce\x86\xf8\x9a\x8e\x6c\x60\xa5\x41\x94\x39\x62\xc7\x55\xb5\x81\xd5\xed\x12\xbf\x92\xaf\xd3\xc7\xe4\x69\x1c\x9e\xa6\x3f\x3c\x62\xa9\x05\xe4\xbb\xcb\x49\x7a\x63\xdd\xcc\xf7\xb4\xe2\xf3\xe7\x28\xe7\x63\xde\xd7\xcc\x53\x9d\x52\xab\x82\x20\xce\xb4\xc2\xf0\x67\x18\x79\x1c\xe6\xcd\x35\xff\x10\x05\xb1\x5e\xb8\xfd\x94\x95\x35\xec\x20\x41\xd5\x8c\x0b\xab\x89\xde\xa8\xe8\x19\x1e\x44\xaf\x05\x15\xf7\xe4\xb3\xce\x64\x9d\x98\x0d\x02\x6a\x84\x7f\x90\xa1\xf2\xf3\x34\x39\xb5\xa1\xa2\xb0\x07\x04\x30\x3c\x9f\x33\x4c\x32\x4f\x6f\x0a\xe4\x19\x2e\x5e\x35\x15\x72\x4a\xb5\x8a\xb2\x44\x6f\x4e\x7a\x64\x82\xe1\xf5\xba\x81\xaf\xdc\x38\x3d\xcf\xb6\xe3\x38\x08\xd3\xd3\x98\x30\xc5\x5c\xb5\x81\x77\x64\xc6\xd1\x76\x1a\x84\x7a\xdb\x0a\x1e\x33\x80\xaa\xb7\x6f\x2a\x78\xc5\x3c\x8f\x5e\x2b\x25\x99\x9e\x35\x58\x35\x3b\xbc\x65\x87\xd9\x9c\xb9\x2c\x72\xac\xe9\xeb\x15\xdd\x3f\xc8\xbf\xe7\x59\x14\x68\x99\x2f\x45\xfe\xeb\xe6\x6f\x4e\xba\xf4\x97\xa4\xbe\xd6\x40\x55\x51\xfe\xba\x49\x9c\x93\x86\x87\x49\x14\x9c\x82\xf2\x93\xcd\x20\xbc\xda\x0e\x3f\x38\x43\xf7\x54\x18\xef\xb3\x82\x94\x69\x2e\xf1\xae\x30\xe1\x23\x18\xc0\xc3\x35\x48\xde\xb2\xb9\x41\x33\x30\x48\xf5\xb6\x33\x28\xba\xe5\x60\xf2\x72\x09\x28\x9c\xf1\xb8\x4b\x12\x6a\xad\xf4\x3e\xa4\x7d\x85\x60\x53\xcf\xb8\x11\x54\xf3\xd4\xca\x43\xe2\xd7\x04\x6f\xfb\xf9\x26\x85\x12\xcd\xd9\x2c\x41\x3c\x24\x04\xcf\x71\x2e\x24\xf3\x34\xb7\xaa\x4d\xa8\x6d\x21\xa5\x60\x3d\x9f\x8e\x27\x69\xae\x15\x15\x0a\xd2\x85\x66\x6b\x9c\xb1\x3b\x6e\x74\x5f\xb6\xe0\xa7\x9d\xf3\x8d\xc3\xec\x54\xb2\xa0\xaf\x5d\x37\xfc\x33\xf1\x9f\x26\x99\xde\x39\x21\xc5\x7f\x03\x1d\xd4\xf5\x3c\x08\x9d\xd3\x58\x47\x81\xe6\xa2\xef\x63\xea\xe7\x35\xd7\x7e\xe8\xc5\xfa\x7e\x52\xde\xe6\xe0\x30\xf8\x65\x0e\xdf\xee\xc7\x69\xa4\x6f\xa5\x51\x57\xa3\x0a\xb0\x99\x2c\x75\xaa\x35\xc0\x17\x04\x37\x60\x09\x9b\x39\x42\xa7\x20\xf5\xf5\xc5\xdb\xc0\x35\xec\x5e\x69\x9c\xf5\xc6\x50\x71\xa6\x77\x64\x5b\x90\xdb\x02\x7a\x0b\xeb\xc7\x06\x44\x33\xb2\x7f\xaf\x35\x86\x28\x0e\xf5\x43\xac\x07\x1c\xcf\x6b\x74\xe2\x58\x73\xe3\x92\x60\x40\xcc\x9e\x3a\x62\x73\xe0\x8f\xd8\x85\x11\x87\x81\x7f\x52\x26\xe6\x0d\x75\xa3\xc4\x8f\xf5\xbd\xee\x84\xfc\xf9\xf7\x95\x86\xe1\x09\xe2\x86\x09\x07\xc2\xc0\xce\x78\xde\xd2\xd3\xdb\x0f\x77\x20\x7f\xe6\xe1\x69\x14\x47\xfa\xc3\x53\x49\xf8\xbc\x76\x27\x4d\xe2\xf0\x44\x1a\x33\x73\x6f\xcd\xd3\x28\xd7\x57\x16\x0a\x1b\xee\x8f\x8e\xbb\xb7\x13\x50\x1b\x26\x61\xae\xef\x92\x15\xb5\xf3\xaa\x48\x96\xe8\xce\xc8\x0a\xd2\xb7\x3c\x1c\x56\x0c\x80\x15\x83\xc4\xc1\xc2\x3b\xcd\x77\x20\x37\xcf\x92\xf4\x04\x6d\x30\x65\xa4\xdd\x36\x0c\xf5\x0d\x7c\x95\x02\x4d\x2f\xda\x1b\x13\xc7\xbb\xdb\x26\x0e\xe1\x99\x63\xa0\x2f\x0e\xd6\xdf\x69\xf5\x23\x8b\x3d\xbd\x4d\x1b\x47\x64\x75\x50\xdf\x77\x1b\x5c\x44\x61\xa0\x3f\x7f\xf0\x80\x7a\xa9\xac\xce\xc1\xc6\xcd\xbf\x3e\x9d\xfa\xb9\xde\xde\xa0\xa7\x5c\xf5\x0d\xa8\xe0\x06\x37\xb3\xee\xd6\x8a\xd3\x53\x77\x43\x8a\xba\xf5\xff\xc0\x4e\x18\xc6\x71\xa0\x1f\x56\x3c\x27\xa9\xf7\xef\x82\x27\x89\xa5\x19\xfc\xc2\x5e\x35\x00\x7d\x87\x75\xc8\x24\x3a\xc1\xa4\xfd\x84\x81\xef\x88\x7c\xa6\xd3\x0a\x7e\x9a\x9f\x60\x82\x9c\xb3\x05\x08\x04\xb3\xc4\x4d\x27\x18\xd1\x8c\xf4\xce\x1b\x39\x05\x51\xa8\x77\x7f\x8c\x24\x5e\xed\x60\x99\x73\x40\x13\x24\x59\x7a\x02\xb1\x4b\xca\xe7\x15\x7a\x18\xea\x9d\x09\x9d\x52\x3e\xef\x88\x26\x8e\xbd\x5c\xdf\xe4\xdc\x21\x8a\x96\xa8\x41\x6c\xe7\x0c\xbb\x6b\x66\x3d\x94\x9b\x04\xa9\xa7\x15\x7b\xa1\x0a\x77\x0e\x43\xcd\x0f\x38\x39\x1f\x46\x9e\xde\x86\x5f\x4e\xfb\x5b\x96\x9b\x9e\x8b\x11\x4f\x3a\x21\xe4\x85\x7a\xa7\x5d\x27\xdb\x4a\xff\xd8\x32\x9a\x9e\x19\x4a\x53\xbd\xb3\x75\x0d\xea\x6e\x2f\x51\xd7\xa0\x6e\xd6\xe0\x21\xf4\x33\xbd\xf3\xdd\x82\x6e\xca\x40\x57\x83\x06\xcf\x4b\x7b\x92\x6b\xf6\x01\x71\x51\xd0\xab\x8f\x15\x3d\x62\xe0\x47\x9d\x32\xca\xc2\x28\xd2\xe3\x1a\xd7\xa0\x99\x7d\xb3\x5f\x9e\x64\x7a\x77\xa4\x49\xb2\xe7\xdf\x2c\x17\xe5\x91\xde\x20\x50\x12\x3e\xff\x5e\xb9\xcc\x0b\xf5\xee\x0c\x96\x84\xff\xe9\xb6\xca\x1d\x91\xc5\xd3\x97\x1f\x05\x0e\x47\xb6\x71\x67\x7a\xf7\x17\xf5\x60\x0d\x87\x0b\xc8\x40\x35\xef\x74\x61\x10\x6a\x4e\x22\x4d\x89\x17\x57\x01\xcd\x47\x7b\x16\xe8\xad\x47\x4c\x49\xff\x21\xd7\x5b\x27\x71\x72\x32\x06\xe6\x8d\x7f\xb3\x24\xf7\x4f\x46\x3a\xdd\x2e\x0f\x67\x2f\x66\x51\x7a\xdf\xd7\xdb\xbb\x33\xa5\x7e\x5e\xd2\xf3\x50\xef\x62\x9a\x1e\xac\x51\x27\x26\x06\xc5\x13\x50\xbd\xdf\x86\x66\xbd\x61\x62\x1e\xea\x1d\x88\x9e\x30\x8a\xba\x15\x9e\x61\x43\x4a\x14\x65\x9e\x6e\x9f\x18\x48\xee\xc0\xdd\x25\x20\x04\x7f\xfe\x91\xc7\x74\x93\x20\x4f\xb5\x96\x47\x1e\x31\x04\x9b\x06\xf5\x14\xcd\xe7\x20\xc2\x30\xf6\xb4\xa6\xa6\x1e\x31\xd0\x6d\x39\x01\x3f\xb2\x49\x32\xcf\xd3\xf6\x79\x23\x47\x82\x1b\xf8\xdd\x1d\x1c\x3f\xc6\x00\x64\x5e\xa6\x37\x56\x99\x70\x4a\xd1\x57\xa8\xd6\x06\x5e\xbb\xed\xef\xd5\x11\xe7\x49\xa7\x02\xc2\x28\xd0\x9b\x0a\xe8\x71\x8f\xef\x20\x79\x8f\x0b\x2f\xbe\x77\xfd\xd5\xcb\x22\xd2\x59\x8d\xd2\x13\x67\xea\xeb\xf5\x16\x02\xef\xe0\xf7\xc7\x31\x73\xce\x75\xe5\xb1\xa7\x17\x78\x29\x96\xde\x74\x62\x54\xcf\x93\x67\xb1\xde\xed\xa8\x04\x55\x1b\x87\x61\xdc\x30\xd4\x5f\x2e\xb7\xcb\xe5\x9b\x4f\xe9\xfe\x30\x05\x4c\xfd\x2c\xd6\x32\x62\x0f\x78\x9f\x5f\x0d\x75\x24\x78\x64\x1b\xab\xa7\xb7\xe8\xf8\x40\x28\x52\x91\x67\xbd\x79\x36\x4b\xf4\x0e\x12\x52\xb8\x6e\x61\xc7\x60\x2d\x37\x5a\xcc\x3c\x74\x8b\x12\x5f\x6f\xba\x62\x3c\xed\xff\x03\x96\x2e\x92\x44\x6f\x73\x08\x45\x35\x74\x78\x28\x37\xeb\x42\x63\x1c\x44\x7a\xd7\x79\x8c\x64\xff\xc8\x0f\x0d\xa4\x5e\xa4\x77\x3c\xf1\x31\x17\x62\x0d\xec\x0f\xdd\x59\xa0\xc7\x47\x10\xe5\x5a\x63\xe8\x27\x7c\xcc\xda\x7f\x7d\x3f\x3b\x11\xf9\x27\x0c\x0d\x4f\xed\x38\x83\x28\xd5\xdb\x54\x30\x32\xd9\x20\xca\x2e\x97\xa0\xba\x75\x66\xfd\x2e\x53\x98\x06\x7a\x5b\x3a\x1e\x32\x30\xaf\x8a\x85\x71\xa0\x77\xb7\xfa\x23\xe2\xe7\xfc\xf6\x58\x10\xa7\x9e\xd6\xa4\xc5\x43\xda\x67\x55\x9a\x3c\x8c\xb3\xd3\xf8\x09\x41\xfb\xbc\x33\x93\x61\xac\x19\xd6\x8d\xc4\xf7\x98\xb0\x07\xa3\xae\x59\xcc\xaa\xe7\xe9\x5d\x78\xf0\x98\x7c\x06\xc8\x1a\x7e\xf7\x73\x86\xc3\xd7\x9d\x67\xbc\xca\x37\x4a\xf5\x96\xed\x47\x46\x65\xe8\x3d\xf7\xdd\xe6\x41\x9e\x68\x36\x14\x83\x7d\x2f\x3e\x77\x07\xfb\xc3\x69\xd0\x59\x77\x1f\xa4\x61\xa8\xd7\x04\x8a\x05\x06\xe8\xed\x8f\x61\x21\x8f\x13\xbd\x23\x35\x8c\x47\x0b\x9a\x57\x51\xbe\xd7\xa5\x48\x61\xa8\x37\xca\x90\xbc\xb1\xef\xee\x3d\x3e\x69\x83\xa4\xa1\xde\x66\x46\x45\xf4\xe6\xcf\x31\xcf\x15\x86\x59\xaa\xd5\xcb\x07\x76\x9c\xe1\xc3\x1d\x98\x7c\xd7\x18\xbf\xd3\x91\x86\x2c\xd5\xdc\xde\xfb\x98\x17\x35\xf7\xf1\xe7\xb8\xe8\x2d\xf1\x13\xbd\xf3\xb0\x23\x77\x72\x86\x1e\xbc\x62\x7e\x4f\xef\x1a\x0b\xcd\xc0\x3e\xd1\x9b\xd2\x3b\xb0\xab\xa5\x91\x27\xbd\x1a\x2b\x8f\xf5\x4e\x19\x2a\x9e\xe6\xbd\xcf\x2b\x8d\xf4\x6e\x38\x67\x60\x49\xe7\x5b\x1e\xd1\x53\x3a\xdd\x0f\xe2\x0a\x5e\x7b\xd0\xa9\x73\xce\x7f\x48\xe3\x4e\xbc\xe9\x55\xf3\x98\x97\xe0\x88\x81\xe5\x9f\x84\x9f\xc4\xd7\x5c\x98\x65\x60\x3d\xff\x7c\x6a\x94\x87\x7a\x73\x49\xe2\xe6\x97\xd9\x2f\x7f\x0c\x7d\xbd\x89\x48\x41\x75\x85\xeb\x59\x97\x0d\xb2\xc8\xd7\x1b\xb7\x08\xaa\x6b\x44\xfb\xe1\x3b\x12\x73\x4d\xba\xa7\xa9\xa6\xf1\x79\xf5\xf5\x40\x27\x9d\xe6\x4d\x22\xbd\xdd\x75\x0c\x83\xd9\x67\xde\xd2\x34\x0b\xf4\x3a\xa4\x0c\x0d\xdf\xf4\x1d\x88\x93\xee\xdb\x0a\x13\xbd\x89\xdb\xdd\xa3\xbb\xdd\xe6\x59\x12\xcb\xde\xb8\x1f\x50\x5e\x7c\x25\x28\x16\xf3\xca\x0e\xc3\x4e\x8b\x6b\xf8\xc2\x97\xb7\xe5\xeb\x8f\x25\x7e\xec\x84\xce\x1b\xe3\xb1\xe7\xe8\xf9\x7d\x0b\xc9\xf3\x1f\x9c\x51\xe4\xbc\xdc\x88\x7e\xfc\xc6\x4d\x06\xa8\xa3\x0c\x74\x15\x74\x50\x87\x18\x02\x0d\xfa\xca\xa9\x69\x30\xa8\x1d\xda\x13\xc4\x84\xa5\x15\x64\x38\x6b\xc8\x9c\x0a\x77\x2b\x74\x44\x00\x51\x90\xbd\x71\x76\x61\x58\x8b\x96\x22\x00\x5d\xb5\xc1\x04\xd6\x4e\x8f\x29\x7a\xb4\xa7\x57\xff\x6c\xf4\x91\x1d\x80\xb9\xaf\x43\x76\xd5\xa0\x7e\x89\x01\xa9\xe7\x21\x37\xce\x3c\xff\x6d\x6a\xff\x90\x5c\x02\xd7\x88\x32\x48\x1c\x78\x27\x3a\x9e\x0e\xcd\x47\x6e\x7a\xf6\xdf\x78\x5d\xce\x43\x22\xa7\x63\xe5\x77\x97\x68\x10\x7b\x93\x89\x3d\xd0\x51\xb1\x5b\xf0\xc8\x65\xb5\xfe\xe4\xd2\x91\x25\xa0\x30\x89\x9c\xdf\xe8\xb1\x2c\xa1\x3f\x3d\x2d\x3f\x55\x98\x23\xc7\x67\xd2\x89\x35\xe1\x61\x4f\x8b\x08\xc1\x47\x29\x8b\xfc\xe9\xe7\x52\x0f\x79\x2e\x41\x5d\xe3\xee\x12\xd6\x88\x5d\xb6\x80\x55\x9b\x25\x1f\x18\x41\x76\x94\xe6\x34\xf7\x7d\xff\xe5\xc2\xe4\xb0\x1f\xe1\xee\x52\x1e\xc1\x73\xd4\x41\xb6\x23\x7a\x1b\x4c\x3e\x7a\x3d\x29\x8f\x5b\xe0\xcb\xdf\xc0\x1d\x90\x7b\xf9\x27\x3f\x8f\x92\xe7\x4f\x57\x8c\x1e\x17\x47\xb6\xcb\x9d\xf8\x73\xac\x08\x3f\x0d\x26\x9b\x15\xab\x2d\xb9\x83\xb5\x23\xf6\xef\x1e\x15\x4c\x92\x24\xfe\x61\xbd\xa7\x0e\x8f\x36\x7c\x90\x24\xf1\xe4\x5d\x5e\x3c\x38\x4a\x54\xe0\x67\x5e\xfe\x20\xc7\x17\xf4\x1d\x72\xf2\x89\x3d\xa8\x43\x67\x85\x49\x0b\x8e\xca\x2e\x08\x62\xef\x41\x16\x5a\x81\xe6\x68\xe3\x25\x51\x3e\xb9\x65\x90\xe7\x18\x9a\xff\xa8\x80\xc3\x64\x32\xbc\xe2\xb9\x36\xa0\x3f\x5a\x4f\x18\xe5\x93\x40\xa4\x0e\x1d\x86\x5a\xf8\x0a\x8e\xc2\xc8\x7f\xd0\x26\x0e\x23\xa0\x1b\x9d\xc8\x91\x03\x85\xf1\x64\x4c\x52\xe3\xb6\xdf\x12\xb4\x3a\xda\x3e\x59\x92\x05\x07\xa5\xa9\xb7\x44\x7e\xc1\xfc\x3b\xfd\x3f\x8d\x26\xc7\xa7\xa5\x47\x85\x0d\x6c\x61\xc7\x1c\xe9\xd6\xc7\x58\x40\x25\x3f\x17\x01\x3c\x13\x37\xbd\x10\xa3\x48\x48\x30\xaa\x21\xb9\xdc\x32\xd4\x1c\x19\xe0\xf8\xd1\x64\xcb\xbe\x24\x6d\x85\xab\x2d\xe5\x22\xec\x27\x66\xf9\x90\xe8\xfe\x36\x8d\x97\x46\x1b\xfc\x72\x15\x79\x3e\x51\x03\x59\xc5\xc1\x72\xbf\x8f\xff\xf1\x43\xff\x71\x95\x94\x01\xb2\x06\x0c\x4e\x63\x57\xb9\xea\xf7\x92\xb0\x5f\xb7\x02\xf8\xc2\xd4\xd1\xb3\x9e\xe8\xb9\xbd\x7a\x8f\x67\xab\x2e\xc7\x6d\xc0\xf4\xb2\x02\xd5\x66\x92\xfd\x71\x6b\x3f\x2b\xb2\x97\x17\x5a\x8e\xc4\xff\x51\xe6\xbd\x5a\x5c\xce\x64\x91\xf4\x6d\x52\x7b\x3c\x79\xf3\x44\x8a\x8f\x06\x35\x6f\x58\x08\xce\xc2\x89\x2d\x7f\xc4\x81\xaa\x86\x5e\x3a\x4f\xda\xfb\x7b\x14\x1c\x9a\x55\x48\x11\xd6\x4e\x0b\x7a\x1e\xaa\xd6\x0e\xe5\x0e\xf4\x48\x34\x3e\x89\x85\x57\x5b\x0a\xdd\xe3\x26\x22\x0d\xb3\xc9\xad\xb3\x88\x3a\x22\xfa\x79\xd9\xd5\x87\xd1\xe4\xac\x67\x83\x6b\x40\x37\xae\x98\x2e\xa3\xaf\xb0\xcb\x41\x1c\x3e\xcd\x4c\xe1\xef\x5b\x21\x9b\x97\x79\x4a\x92\xc9\x59\x99\x86\x6c\x6f\x5a\x70\x94\xca\xd4\x9b\x6c\x22\x6e\x01\xb9\x85\x47\x63\x9e\x24\x9d\xb8\xbe\x16\x2b\x3b\x78\x64\xae\xc0\x9f\xc8\x40\xbe\x2f\x1c\xc6\x57\xfc\x9d\x50\x24\x98\x1c\xf0\xed\xb0\x53\xc9\x6d\x85\x2f\x0b\x3b\xce\xd2\x83\x72\xf5\x04\xf7\x0e\xdb\xf5\xf0\x78\x7b\x66\xc9\x64\xc1\x5e\x8c\xea\x1c\xca\x88\x98\x8d\x3e\x52\x53\x16\x7b\x07\x2d\x60\x90\x6d\x8e\xc7\xa2\x81\x9f\x4e\x3e\x2f\x28\xae\xf4\x81\x1d\x0f\x86\x88\xd3\xc8\xf1\xdb\x11\x21\xf8\xd3\xaa\x10\x6b\xe0\x77\x05\x91\x25\xe1\x64\x13\xed\x17\xca\xc0\xf1\x3a\xc2\x64\x72\x53\xdb\x17\x06\x49\xeb\x88\xe8\xd1\x59\xa1\xa3\x2d\x9b\x27\xd1\xe4\x44\xc5\x0d\x04\xe8\xa6\xde\x75\x37\xa2\x84\x97\xf2\x31\x17\x9a\x69\x96\x5a\x2e\xdb\xc0\xce\x64\x2e\x73\x97\xa8\xab\x4d\x66\xa7\x59\x6a\xab\xd3\xb2\x7b\xd3\xda\xdb\x7e\x9e\xfa\x5e\x31\x16\x00\xed\xce\xba\xff\x8c\xba\x1a\x7f\x76\x45\x4d\xa4\x24\xf0\xf7\x2d\x22\xd0\x9e\xa6\xd6\x65\x0d\x57\xa8\x83\xfb\xbd\x4d\xcb\xfb\xfd\xd9\x90\xff\xbc\x32\xa1\x75\x7f\x07\xc8\x79\x57\xd2\x2b\x78\x7d\x86\x56\xe6\x1d\x46\xf5\xb9\xf7\xa1\x2c\x3b\x4b\x11\xd7\xb9\xf0\x0b\xb7\x3d\xf4\x8c\xbf\xc9\xc4\x9b\xe5\x3d\xaa\x0b\x68\xf3\xe1\x36\xac\x8b\x0f\xbe\xad\x5e\x29\xee\xf7\xfb\x33\x95\x8f\x5c\xc1\x6b\xb7\x02\x4d\x63\xb2\xa1\x04\x9b\xd9\x87\xdf\x95\x65\x33\x57\x96\x50\x7e\xf0\x0e\x0f\xf6\x95\xdb\x96\xc4\x86\xe5\xd5\xb5\x5d\xb9\x9f\x4a\xb3\xb3\x99\x8d\xed\xd6\x2a\x3f\xde\xa3\x95\xf9\x81\x49\x92\x49\xe9\x5f\x7a\x67\x2b\x4c\x4c\x50\x7a\x3f\x81\xbf\x40\xb7\x81\xdd\x9a\x6d\x7e\x02\x17\x17\xd6\x3d\x4f\xbf\x03\xe4\x4a\xe4\xbc\x2e\xe1\x15\xb8\xb6\x29\xaf\xa6\x2f\xbd\x9f\xfa\xbf\xb0\xe1\xe5\xfe\xe2\xc2\x32\x3f\xf8\x8b\xf6\xdb\x37\xf2\xb1\x6c\xad\xc5\xe2\x93\xb0\xf3\xee\x2d\xdc\x51\xb3\x72\x3f\x59\x2e\xbc\x83\x64\x67\x9a\xb0\xfc\x58\xb9\x9f\xae\xe0\xb5\xc9\xae\xfa\x6b\xcb\xb2\x7e\x66\x2e\xe5\x2e\x0c\x9a\xbd\xe3\xd8\xbe\x55\x98\xb4\xfc\xe0\xdb\xed\x5f\xc8\x62\x61\x92\xb2\xb5\x2c\x2e\x4f\x6a\xdd\xc3\xe1\x3d\x20\xde\x13\x62\x44\x25\x36\xad\xb3\x51\xd8\x68\xb1\x30\xbb\x12\x59\xfb\xfd\x20\xf4\x7d\x5b\xb6\xdf\xbe\x49\x06\x79\x06\x50\x1e\x18\xfc\xe8\x2d\x16\xf0\x0a\x38\xfe\xf5\x55\x70\xfd\xb1\xfd\x09\x38\x8e\xc5\x39\x2c\x65\xe2\x99\xf8\xad\x58\xdf\xdb\x95\xdb\x95\xb0\xfc\xa8\xda\x19\x2e\x16\xd0\xbd\xb9\x81\xf4\x1f\xb8\xde\x36\xf0\x67\xd3\x2a\x3f\x42\xb7\x86\x2b\xb0\x6d\x58\x21\xd0\xd0\x80\x95\x5b\x9b\x9d\x7d\x0f\x8a\x6e\x6f\xd9\xdd\xde\x66\xa5\x92\xcd\x1a\xb2\x7f\x11\xcc\x30\x37\x24\x9f\x56\x3f\xc3\xf2\xe3\xb3\x0f\x4c\x68\x15\x90\x97\x7e\x73\xd3\xf3\xd4\x9b\x1b\xbb\x72\x59\x39\xd1\x5e\x6c\xf1\x16\xf5\x17\x78\xb1\x30\x61\xc9\x36\x88\x9a\xd0\xb2\xec\x6c\x81\x07\xe5\x83\x5c\x86\x86\xf2\xbd\x65\xc9\x0b\xc6\xab\x73\xce\x84\xc8\x1a\xf1\xac\x53\x7e\x1e\xe4\xf3\x13\xfe\xd8\x18\x2a\x9c\xe4\x17\x1d\x6d\x7c\x77\xcf\x45\xd3\x0e\xdc\x55\x04\x02\x06\xcd\x6e\xdb\x34\xd6\x59\xe5\x12\xb3\x95\x4d\x46\x78\xd7\xe9\xca\xee\xdb\xb7\x2b\xfe\xcc\x66\xe6\xfd\xde\xb2\x99\x79\x75\xcd\xff\x32\xeb\x7a\x6c\x2b\x5a\x06\x82\xae\x9f\x9e\x10\x4e\x17\x8b\x0f\xff\xaf\x73\xc5\x64\xe3\x27\xae\x1c\x3f\xd1\x92\x99\xd4\xb2\x0e\x02\xfc\xf4\xb9\xfb\x17\xc1\x3d\x24\x6c\xf7\x4f\xd0\x42\x6a\x52\xcb\x5d\x61\xf2\x0b\xa8\x36\xa6\xd9\x95\x1f\xc9\x55\x77\x5d\x8a\x76\xba\xea\xae\x2d\x6b\xec\x6d\x43\x1b\xca\x67\x36\x6f\xbc\xd6\x26\x96\xdd\x72\x0d\xa8\x4b\x61\x2b\xca\x8f\x43\xc7\x38\x67\xe7\xa8\x3b\xef\xac\xca\xc5\xbc\x7f\x59\x8b\xc5\x07\xfe\x13\x8a\x9f\x8a\x18\x69\x34\x06\x62\xf8\x33\xfb\x1e\x76\xdb\x16\x12\x1e\x18\x16\x1f\x3c\x7b\x0d\x59\xd1\x5d\xb1\xeb\xbd\xc5\x2b\x59\x95\xf7\xfc\x1f\xe4\xda\xf6\x2f\x82\x5b\x44\xa1\xcb\xbb\xff\xc3\x1e\xb5\xb2\x5c\x02\xeb\x6d\x05\x4d\x53\xd4\x5c\x7e\xe4\x89\x57\xec\x5a\x50\x68\x77\x96\x65\x5f\x5d\x5b\x96\x5d\xb9\x5b\x5e\x90\x51\x6d\xb6\xdd\xad\x6b\x5c\xc0\x0b\xc3\x35\x2e\xee\x63\x2f\x2a\x0c\xdf\x83\x30\xf6\x82\x65\x18\x87\x59\x0c\xaa\x20\xce\x56\xa1\xc1\x8d\x65\x61\x04\x61\x95\xe7\x1e\xac\xaa\x34\xae\x82\x55\x15\xac\xbc\x7a\x69\xec\xaf\xe0\xf5\x85\x21\xa2\x98\xca\x6d\x51\x87\xfe\x46\xe9\x7f\x8a\x4e\xc1\x09\xc6\x83\x70\x14\xa1\xfd\xa0\xc2\xee\x06\xd0\x49\x73\x48\x63\x26\xa8\xc4\x9c\xd5\xb6\x34\x6e\x6e\x44\xa8\x75\x03\xb6\x0c\xdf\xa0\x96\xdb\xaf\x9b\x9b\x82\xd7\xd2\x88\x42\x6d\x66\x13\x65\xb7\xf0\x15\xbc\xb6\xf8\x1f\xb7\xdf\xd2\x8d\xd9\x59\x67\xb0\xa1\x50\xf4\x4a\x6a\xf7\x0f\x4c\x2f\xb3\x86\x56\x42\x65\x8d\xab\x2d\x0f\x0e\xb8\x6a\xfc\x22\xc7\x57\xf4\x7f\xef\x7e\x05\x6b\xae\x1c\xa6\xa1\x26\x1b\x2c\x5b\x1a\x41\xf4\xc0\x08\xf2\x12\x96\x25\xba\x02\xc2\xb2\x2f\x79\x11\x7f\x65\x8c\xa0\xe5\x96\xf1\xac\xa4\x32\xac\xb2\x84\xdf\xbe\x3d\x7e\x52\x03\x06\x9c\xcf\x70\xd9\x83\xea\x96\xbf\xd2\x5e\x30\xeb\x9e\x96\xcb\xb3\x25\x81\xe0\x76\xbf\xa7\xdf\xbe\x99\x3d\x37\xa6\x26\x3d\xd0\x27\xbb\x8d\x22\xf1\x40\x98\xe5\x56\x1b\x40\x28\x64\xa5\xb1\x65\x2b\x27\x33\x6c\xea\xf2\x38\x07\x6f\x59\xe9\x07\x1e\xb7\x4e\xd5\x62\x41\x5d\xfa\x80\x82\x0e\x77\x3c\xb0\xe5\x0f\x2d\xfb\xf1\xc3\x07\xe4\xd9\x9c\x38\xfe\x0a\xa9\x4a\x68\xd9\x5c\xc0\xe5\x55\x77\x2d\x7a\x6c\x53\x2a\x0d\xbb\xa7\x2e\xee\xc4\xe7\x67\x4a\xfe\x8b\x3b\x9d\x52\xf4\xe1\xaa\x81\x80\xfc\x2a\xc9\x31\x6b\xd9\xcf\xdb\x12\x2b\x5f\x58\xc3\x06\x32\x78\xce\xa1\x4d\xdd\x1e\x10\xd8\xb1\x7f\xe2\x1a\x72\x7a\x0f\xc8\x25\xb0\xc5\x77\xf0\x6f\x1b\xd4\xd4\x26\xb5\xec\x76\xb1\x68\x0f\x3d\x96\x1b\x40\x93\x59\x16\xd7\xec\xc1\xb6\x9b\xcc\xda\xdb\x75\x49\x21\x1b\xaa\x6e\xa4\xc3\x17\x34\x49\x35\xb0\xef\xb9\x06\x16\x86\x92\x95\x61\xcb\x81\x4b\x41\xf7\x96\xed\x07\x30\xb2\xce\x0e\x3c\x4d\x73\x8f\xa9\x96\x3d\xb2\xfa\xf8\x39\x4f\xb4\xec\x7e\xb1\x18\x1b\x6f\x03\x41\xed\x82\xbe\x87\x5d\x3d\xf0\xb1\xe7\x5d\x83\x88\x4e\x62\x6c\x3b\x69\x0b\x6a\xe3\xc3\x60\xc9\xfe\xbd\x6b\x97\xb8\x59\x2c\xe4\x7f\x97\xe1\x7f\x8b\x00\xf1\x57\xb0\x7e\xd9\x7e\x3c\x7d\xd7\xbe\xbf\x03\xcd\x16\x16\x86\xb4\xde\xc6\xde\xb2\x5f\xca\x6c\x1c\x8c\xbc\x31\x64\xfb\xe0\x49\xcb\xd3\xb5\x35\x27\xd4\x84\x6e\x0f\xd8\x86\xf2\xc8\x01\xba\x15\x67\x84\xc0\xee\xdb\x37\xf3\x00\x4a\x6e\xad\x21\xb7\x2e\x7d\x69\x5c\x6e\xd1\x25\xa0\x7c\x2c\x74\x69\xd8\x26\xb7\x9b\xa2\xcb\xc0\xf2\x3e\x0e\xa2\xc2\xdb\x9f\x55\xee\xca\xfd\x6d\x54\x22\xfe\x0c\x97\xd2\x4c\x76\xd6\xcf\xdc\xfe\x16\xb2\xb1\xb8\xb2\xf0\x8e\x8b\x2d\xde\xd1\x2d\x26\xbb\x38\xbe\x0a\xae\x27\xbd\xbc\x2d\x3b\xf8\xf9\x5c\x19\x46\xd3\x34\x99\x08\x69\x70\xc9\xcb\xe1\xde\xba\xe5\xd6\x7c\x92\xb5\x1c\xfd\x4e\xe5\xf6\x17\x95\xbb\x35\x3b\xcb\xa6\xa2\x90\x5f\x78\x03\x9f\x55\x6e\x63\x12\xdb\x64\xd2\xbe\x0c\x74\x2d\x16\x82\x14\x53\x16\xcc\xa1\xa8\x40\x12\x6a\xd9\xd8\xb2\x14\x35\x6c\xb1\xe0\x03\x28\x50\x1b\x65\x59\x32\x97\xb7\xeb\xcf\x46\x8b\x28\xe5\x71\x7e\x21\x13\x2c\x9b\xf0\xf7\x98\x2b\xb5\xef\xf0\x8b\xf7\xb7\x33\xea\xaa\x8f\x39\x95\xc6\x7f\x61\x50\xa3\x6e\x7d\x2e\xac\xf5\xb9\x71\xd1\x5d\x18\xe7\x2b\x80\x1a\x58\xbb\xff\xb7\x33\x8d\x8b\xf6\xc2\x28\xce\x8d\x0b\x72\x61\x58\xdc\x02\x74\xa0\x85\xa5\xf1\x37\xfe\x32\xcf\xf9\x8b\x9c\x1d\xa6\xa2\xce\xb2\xb5\xa9\xcb\xc3\x58\x48\x59\x49\x6c\x7c\xe5\x5f\x0b\x75\xb4\x6c\xe9\x0b\x1c\xe3\xa2\xb3\x3b\xa9\x9f\x9f\xdc\xdf\xca\xae\xfc\xe8\x95\xa5\xe0\xf6\x4c\xc6\x38\x0f\x1a\xcc\x6e\xed\x2b\x62\x53\xbb\xbf\x2e\x99\x8d\x4a\xd1\x56\xc4\xa5\xb8\x85\xc2\x9d\x72\x59\x49\x4f\x2a\x83\x46\xcc\xfd\x22\x15\x7e\x91\xda\x98\x8b\xaf\x72\xdb\x2b\x7c\x5d\xd2\x2b\x7c\x2d\x22\xba\xde\x92\xf1\x58\x6f\x56\xd6\x9e\x67\xe9\x16\x0b\xde\xa5\x7f\x42\x7f\x21\x83\xf9\x45\x17\x17\x56\x5b\x92\x2b\xc4\x43\x58\xde\x2e\x3c\xb2\x84\x57\xed\xb5\xfc\x7b\xe5\x5d\x9b\x96\xcd\x7f\x95\xde\x21\xda\xfa\x64\x02\x8b\x47\x59\xeb\x06\x2f\x41\xf3\xeb\x06\x51\x57\x59\x39\x21\xa8\x67\x5c\xcd\x1b\x5e\xfd\xf6\xed\xea\xfa\x8c\x8d\x76\xa9\x9b\x98\x04\xcf\xe2\x91\x38\xd7\xbb\x72\x9a\x2c\x93\xd4\x48\x84\x0f\x41\x4c\xde\x6d\x3e\x29\x37\x65\x5f\x45\x41\x74\x2d\x7b\x4d\x65\x8a\x71\x89\x65\x49\x85\xed\xcb\x97\x5e\xcb\x7c\x71\x5d\xbb\x75\x26\x5f\xe9\x2d\xfb\x59\x07\x5a\xf6\xbc\xb2\xb3\xff\x1f\x00\x00\xff\xff\x0f\xff\x7c\x9e\x3f\xbd\x00\x00") -func distAssetsChunk52400f229e009bf7cc191c1JsBytes() ([]byte, error) { +func distAssetsChunk524163f7c06e956c9535525JsBytes() ([]byte, error) { return bindataRead( - _distAssetsChunk52400f229e009bf7cc191c1Js, - "dist/assets/chunk.524.00f229e009bf7cc191c1.js", + _distAssetsChunk524163f7c06e956c9535525Js, + "dist/assets/chunk.524.163f7c06e956c9535525.js", ) } -func distAssetsChunk52400f229e009bf7cc191c1Js() (*asset, error) { - bytes, err := distAssetsChunk52400f229e009bf7cc191c1JsBytes() +func distAssetsChunk524163f7c06e956c9535525Js() (*asset, error) { + bytes, err := distAssetsChunk524163f7c06e956c9535525JsBytes() if err != nil { return nil, err } - info := bindataFileInfo{name: "dist/assets/chunk.524.00f229e009bf7cc191c1.js", size: 48447, mode: os.FileMode(420), modTime: time.Unix(1480000000, 0)} + info := bindataFileInfo{name: "dist/assets/chunk.524.163f7c06e956c9535525.js", size: 48447, mode: os.FileMode(420), modTime: time.Unix(1480000000, 0)} a := &asset{bytes: bytes, info: info} return a, nil } -var _distAssetsChunk5823e7befb7e31cbd93bb56Css = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x94\x92\xe1\x6a\x83\x30\x14\x85\xff\xef\x29\x0a\x63\xd0\x42\x33\x14\xd9\xd8\x22\xeb\x8b\x8c\x0d\xae\x1a\xf5\x42\xf4\x86\xe4\xae\x75\x94\xbe\xfb\x88\x29\x6c\xac\x31\xa5\xff\x04\xfd\x4e\xce\x77\xcc\x23\xa3\x31\xdf\xa2\xa2\xe9\xbd\x01\x06\x61\x34\xd4\x6a\x50\x23\x7f\xbe\x31\x99\x8f\xdd\xf9\xbd\xdb\x77\x02\xac\xa5\xc3\xb1\x22\x66\x1a\x64\x76\xba\x95\x94\xd0\xb2\xb2\xdb\x5b\xb1\x9d\xdb\x77\x47\x26\x23\xf3\x67\x33\x95\x6c\x61\x74\x2d\xd9\x41\x5a\x62\x60\xb5\xce\x5f\xb2\x46\x75\x9b\x54\x9b\xd0\x38\xa2\xe2\x53\x93\x1e\x4b\xe4\xdc\xe9\x3c\x84\xaf\x95\xca\xd0\xaa\xe5\xc8\xd9\x16\xbb\x9e\xd3\xa7\xc7\xc9\xeb\x33\xc6\xb9\xb0\xe3\xff\xf9\x5e\xe7\xf5\x4a\xbf\x44\x0d\xba\x5e\x3f\x65\x0f\x2b\xb1\x2a\xcc\xb4\x29\x7d\x8c\xcc\xf3\xb4\xdd\xac\x11\xd1\x9b\xe1\xa4\xdd\x02\x79\x5d\x6f\x01\x8c\xfb\x89\x84\x60\xf8\x05\x7f\x0d\x7f\xfb\x1f\xb0\xe1\x3e\x5c\xb9\x5e\x85\xef\xfc\x73\x8b\x5a\xcb\xfb\xa2\x28\x4a\x56\x13\x0b\xd0\xd8\x8d\x12\x47\x64\x04\x7d\x11\xb2\x8d\x56\x34\xe4\x90\x91\x46\x09\x95\x23\xfd\xc5\xea\x74\xf7\x13\x00\x00\xff\xff\xa9\x4d\x27\x63\x84\x03\x00\x00") +var _distAssetsChunk5822a316edfa0fb871040a5Css = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x94\x92\xe1\x6a\x83\x30\x14\x85\xff\xef\x29\x0a\x63\xd0\x42\x33\x14\xd9\xd8\x22\xeb\x8b\x8c\x0d\xae\x1a\xf5\x42\xf4\x86\xe4\xae\x75\x94\xbe\xfb\x88\x29\x6c\xac\x31\xa5\xff\x04\xfd\x4e\xce\x77\xcc\x23\xa3\x31\xdf\xa2\xa2\xe9\xbd\x01\x06\x61\x34\xd4\x6a\x50\x23\x7f\xbe\x31\x99\x8f\xdd\xf9\xbd\xdb\x77\x02\xac\xa5\xc3\xb1\x22\x66\x1a\x64\x76\xba\x95\x94\xd0\xb2\xb2\xdb\x5b\xb1\x9d\xdb\x77\x47\x26\x23\xf3\x67\x33\x95\x6c\x61\x74\x2d\xd9\x41\x5a\x62\x60\xb5\xce\x5f\xb2\x46\x75\x9b\x54\x9b\xd0\x38\xa2\xe2\x53\x93\x1e\x4b\xe4\xdc\xe9\x3c\x84\xaf\x95\xca\xd0\xaa\xe5\xc8\xd9\x16\xbb\x9e\xd3\xa7\xc7\xc9\xeb\x33\xc6\xb9\xb0\xe3\xff\xf9\x5e\xe7\xf5\x4a\xbf\x44\x0d\xba\x5e\x3f\x65\x0f\x2b\xb1\x2a\xcc\xb4\x29\x7d\x8c\xcc\xf3\xb4\xdd\xac\x11\xd1\x9b\xe1\xa4\xdd\x02\x79\x5d\x6f\x01\x8c\xfb\x89\x84\x60\xf8\x05\x7f\x0d\x7f\xfb\x1f\xb0\xe1\x3e\x5c\xb9\x5e\x85\xef\xfc\x73\x8b\x5a\xcb\xfb\xa2\x28\x4a\x56\x13\x0b\xd0\xd8\x8d\x12\x47\x64\x04\x7d\x11\xb2\x8d\x56\x34\xe4\x90\x91\x46\x09\x95\x23\xfd\xc5\xea\x74\xf7\x13\x00\x00\xff\xff\xa9\x4d\x27\x63\x84\x03\x00\x00") -func distAssetsChunk5823e7befb7e31cbd93bb56CssBytes() ([]byte, error) { +func distAssetsChunk5822a316edfa0fb871040a5CssBytes() ([]byte, error) { return bindataRead( - _distAssetsChunk5823e7befb7e31cbd93bb56Css, - "dist/assets/chunk.582.3e7befb7e31cbd93bb56.css", + _distAssetsChunk5822a316edfa0fb871040a5Css, + "dist/assets/chunk.582.2a316edfa0fb871040a5.css", ) } -func distAssetsChunk5823e7befb7e31cbd93bb56Css() (*asset, error) { - bytes, err := distAssetsChunk5823e7befb7e31cbd93bb56CssBytes() +func distAssetsChunk5822a316edfa0fb871040a5Css() (*asset, error) { + bytes, err := distAssetsChunk5822a316edfa0fb871040a5CssBytes() if err != nil { return nil, err } - info := bindataFileInfo{name: "dist/assets/chunk.582.3e7befb7e31cbd93bb56.css", size: 900, mode: os.FileMode(420), modTime: time.Unix(1480000000, 0)} + info := bindataFileInfo{name: "dist/assets/chunk.582.2a316edfa0fb871040a5.css", size: 900, mode: os.FileMode(420), modTime: time.Unix(1480000000, 0)} a := &asset{bytes: bytes, info: info} return a, nil } -var _distAssetsChunk5823e7befb7e31cbd93bb56Js = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xdc\x7d\x59\x73\xe3\x38\xb6\xe6\xbb\x7f\x85\x93\x0f\xbe\x64\x98\xa4\xb9\x6f\xd5\xcc\x9a\x9a\xee\xba\x11\x37\xe2\x76\x67\x47\x54\xdd\x27\x8f\xc3\x01\x91\x90\xc4\x34\x09\xb0\x00\xc8\x99\x4a\xa7\xe6\xb7\x4f\x60\x21\x45\x6f\xb2\x5d\x90\x99\x15\xf3\x62\xeb\x83\x08\xe2\x9c\x83\x83\xb3\x60\xd3\x2d\x20\xa7\xd7\xd7\xb0\x5b\x40\x72\x0d\x36\x0c\x5f\x37\x5d\x8f\x09\xbb\xbe\xfe\xc9\x34\xad\xf2\xe3\x1d\xff\x1e\xda\xc8\x66\x36\xb6\x3b\x9b\x94\x77\x61\x1c\xc6\x59\x61\x8a\xb2\xe1\x01\x5c\xde\x19\xee\x05\x58\x1a\x45\x94\x86\x99\x6f\x0b\xe0\x7e\xa6\x53\x4c\x8c\x22\x0f\xf3\x44\x01\xa7\xfe\x66\x14\x71\x9c\x79\xd1\x88\xc5\xf3\xd3\xa2\x9b\x2f\x46\xe1\x7b\x7e\xb4\xc7\xe2\x91\x69\x51\xbb\x35\x8a\x24\x8a\xa2\x78\xc4\xe2\x91\x69\x51\x07\x8c\x22\xf5\x82\xc0\x1b\xb1\x78\x64\x5a\xd4\x53\xa3\x08\x93\x38\x8c\x47\x2c\x1e\x99\x16\x51\x60\x14\x89\x17\x85\xde\x88\x65\x43\x93\x22\x86\x78\xc3\x7b\xda\x18\x52\xb4\x8c\x45\x02\xef\x85\xf0\xcd\x28\xfc\x34\x0a\x64\x13\x92\xfd\x11\x2f\xa0\x51\x44\x79\x10\x85\x12\x48\x59\x8e\x78\x65\x14\x7e\xe8\x47\xb9\x04\xb2\xe6\x88\x3b\xa3\x08\xb3\x20\x56\x40\x72\x32\x62\x64\x14\x51\x94\xe6\x9e\x04\xce\xa2\xe6\x3c\x78\x49\x3c\x62\xc5\xd6\x58\x24\x5b\x1e\xab\x60\xa3\x88\xc3\x54\xb5\x84\x65\x97\x8d\x98\x18\x45\x1a\xfb\x61\x26\x81\x14\xf3\x88\xf9\x6b\x42\x4f\x71\x27\x05\x3c\xe2\x0a\x18\x45\xec\x79\x52\x94\x95\x14\xed\x1e\x53\xa3\xc8\xbc\x38\x90\x9f\xc5\x77\x23\xbc\x35\x8a\x2c\xcc\x52\x5f\x02\xf9\xdd\x88\xb7\x46\x91\x26\x79\x2c\x5f\x22\x15\x63\xc4\x35\x30\x8a\x3c\x97\x4c\xd6\xb2\xc1\x11\x42\xa3\x08\xe2\x28\x4e\x25\x70\x00\x33\x8a\xd4\x8f\xa3\x3d\x96\xaf\x9a\x14\x55\x6b\xa3\x08\xc2\x5c\x8a\x41\x60\xf1\xc8\xa4\x48\xe2\xf1\xad\x82\x6e\x3f\x4d\x24\x50\x74\x2b\x0c\x5b\xa3\x08\x83\xd8\x0b\x25\x90\x1d\x38\x62\xe4\x80\x8d\x51\x84\x5e\xa6\x1e\xe6\x58\x3e\x32\x29\xe2\xf2\x8c\xbc\x40\x4a\x5e\x60\x29\xef\x49\xd1\x6a\x61\x14\x71\xe2\xe5\xf1\x88\xa5\xd4\x27\x45\x0d\xd7\x41\x3f\x8d\xb2\x11\xcb\xb7\x4c\x8b\x5a\xa3\x48\xb3\xd4\x4b\x47\x2c\x65\x33\x2d\x42\x46\x91\x47\x7e\xbe\xc7\x52\xda\x93\x22\xf4\xcd\x28\xc2\x30\x95\x3d\x23\xb0\xe4\x68\x52\x44\x57\x46\x11\xe4\x69\x98\x8c\x58\x4a\x74\x2c\xc2\x46\x11\xfa\x9e\x7a\x5e\x2a\xe6\x1e\x73\xaa\x93\x38\x0a\x24\x70\x6a\x6c\x14\x79\x90\x7a\xc9\x88\x25\x49\x93\xa2\xee\xab\xd0\xdd\xdc\x1b\xf1\xa0\xce\x63\xd1\x46\x98\xab\x34\x09\x47\xac\x2c\xd8\x58\x24\xc5\x35\x36\xcc\xb8\x52\x07\x81\xfc\x92\x29\x25\x1f\xf0\xc6\x28\xfc\x38\x4b\x22\x09\xe4\x90\x1e\xf0\x92\x77\x67\xe6\x49\x63\xb4\x54\x7d\x39\xe2\xc6\x28\x92\xd8\x97\x6d\x2e\x1b\x39\x7e\xf7\xb8\x35\x8a\x2c\xf3\x64\x6f\x2c\x55\xf7\xec\x0b\xb0\x51\x64\x79\xe2\x2b\x20\xbf\x1c\x31\x31\x8a\x2c\x48\x33\xf9\x59\xea\x94\xef\x4b\x35\x14\x58\x69\xc3\xa4\x68\x6d\x14\x7e\x10\x27\xde\x88\x25\x1f\xfb\x22\xd9\xc2\xf0\xd2\x2d\xff\x2e\x0d\x7d\x09\xd4\xb3\x0a\xaf\x80\x51\x84\x69\x1a\x25\x12\xc8\x0e\x1d\x71\x2d\xd4\x50\x1a\x8f\x55\x3d\xa8\xa5\xc2\x7c\xfc\x78\x69\x24\x5f\xa3\xc6\xcf\x88\x71\xe7\xd4\xf0\x96\x8f\xfe\x2c\xf1\x93\x69\x91\xd4\x81\x69\x69\x0b\x84\x4d\x4f\xfd\x2c\x9d\x16\x49\x11\x8f\xa5\x1b\xde\x19\x7e\x24\x3f\xab\xbe\x91\x70\x0d\x8d\x22\x09\x03\x3f\x94\x40\xd6\x1b\x71\xc3\x8d\x76\x20\x69\x5e\x37\xca\x88\x0f\x98\x70\xf7\x13\x05\xf2\x35\x44\xb9\xa3\x01\x73\x03\x10\xe4\x59\x2e\x81\x32\x10\x03\xde\x3a\xa0\x33\x0a\x2e\x29\x6f\xc4\x52\x77\x87\xa2\xa6\xe6\x7c\xe6\xd2\x4a\x36\xb5\xe2\x7b\xc0\x1c\x78\xbe\x94\x73\x23\x55\x78\x8f\x19\x1f\x95\x71\x9a\x4b\x20\x3a\x3c\x4b\x82\x70\x8f\x65\x07\xef\x8b\xd4\x40\x56\x55\x3e\x0b\x45\x0e\xa4\x85\xf9\x3c\x28\xf2\x80\x6f\xb9\xca\xc7\x99\xfc\xac\x46\x80\x84\x37\x5c\x19\xfc\x7c\x00\x6a\x74\x0f\xf8\xc6\x28\xd2\xc0\x97\xdd\x76\x73\x23\x79\x1d\x71\xc7\x35\x3a\x8e\x23\x09\x94\x86\x0f\x98\x9b\xa6\x24\x8c\x7d\x09\x24\xaf\x23\xc6\x46\x11\x05\x72\x00\xde\xc8\xa1\x31\xc2\x8d\x51\xe4\xbc\xaf\x24\x70\x6e\x3a\x62\x14\x49\x16\xcb\x98\x43\x16\xc8\xce\xde\x97\xc9\x97\x8f\x95\xb6\x46\x11\x78\x99\x1c\x07\x37\x52\xf5\x47\xdc\x2e\xb8\xc2\x46\x32\x6a\x68\x17\x4a\x81\x07\xcc\x6d\x57\x24\xfb\xaa\x55\x76\x6b\x80\x8c\x7b\x6a\x69\x6c\x5a\xa6\x1c\xb7\x82\xb7\x46\x11\x44\x71\xae\x80\x6c\x6f\xc0\x1d\xe4\xca\x95\x4b\xef\xd1\x41\xa5\x6c\x03\x6e\xb8\x34\x63\x69\xf1\xbb\x46\x49\x77\xc0\x37\xbc\xb3\x55\x3f\x74\x37\xaa\xf3\x07\xdc\x72\xcd\x49\xa4\x26\x74\xad\xd2\xa4\x01\x23\x3e\xd6\x13\xa9\xed\x1d\x52\x63\x7f\xc0\x84\xfb\xce\x50\xfa\x4e\x25\xca\x3d\xe6\x4f\x46\xa1\x34\xc3\x1d\x75\xba\xad\xe8\x51\xcf\x1f\xf1\xd0\xc9\x43\x91\x7c\xf9\x58\x85\xbb\xf3\x20\xf7\xe5\xcb\x94\x2f\x1f\xf1\xd6\x28\xe2\x68\xe0\x4e\xbe\x69\xc4\x68\x61\x14\x81\x1f\x49\xdd\x41\xb2\x5f\xf6\x18\x1a\x45\x9c\x87\xbe\x2f\x81\xac\x39\xe2\x56\x18\x05\x29\x51\xd4\x3a\x3c\xba\xcb\x7c\x15\x80\x0a\x2c\x69\xde\x17\x0d\x76\x44\x55\xe1\x66\x28\x4b\xbc\x40\x02\xa5\x5b\x0a\xe3\xca\x69\x51\x65\x14\xb1\x1f\x64\xc9\xbe\x40\x52\x30\x94\xf5\x40\x38\x62\x3f\x0a\x65\x04\x22\xf0\x20\x18\x55\xc4\x7d\x79\x1a\x27\xf2\x79\xe5\xc8\x47\x2c\x9c\x57\x12\xc8\xcf\x0e\x0f\xf5\xfc\x20\xf4\xe3\x11\xab\x1e\x1c\x8b\x94\x7b\x93\x35\x08\xe6\x3e\x29\x88\x43\x09\x94\x8f\x1a\x30\x37\xa0\x89\x74\x66\x44\x19\x50\x05\x29\xb7\xf3\x79\x98\xa6\x12\xa8\x28\x78\xc0\x3c\x4e\xcb\x13\xe9\xe2\xa9\x8a\xb0\x46\xdc\xf0\xb7\xe4\x61\x24\x81\x7a\xeb\x80\x6f\xb8\x64\xe2\x30\x90\x40\x49\x6a\xc0\xdc\x7d\x84\xbe\x1c\xb7\x54\xb9\x8f\x11\xff\xc1\x2d\x44\xea\x67\x12\x28\x8b\x31\x60\x6e\xb4\x33\xa9\x48\x94\x38\xd5\x96\xb4\x46\x11\x07\x9e\x54\x10\x55\x22\x1b\xdb\x17\xaa\xf8\x5c\xd5\x12\x96\xd8\x97\xea\x46\x95\xf1\x1d\xf1\xad\x51\xa4\x91\x8a\x17\xa8\x1c\xc3\x7b\xfc\x85\xdb\x88\x20\x4f\x24\x50\x36\x43\x61\xc6\xdd\x5d\x10\x64\xb1\x04\x2a\xd8\x19\x30\xe4\x76\x29\x91\x59\x1a\x83\xca\x4e\x8d\x58\x8c\x96\x4c\x86\x6a\x0c\x0e\xc3\x65\x28\x58\xf1\x90\x48\xda\x4b\xb6\x52\x11\x92\x82\x32\x24\x0e\x24\x01\x63\x3c\xac\xf0\x0d\xb7\x5a\x5e\x9e\x4b\xa0\xac\xd8\x80\x5b\xa7\x5f\xf3\x3c\xc9\x97\x41\x8a\xc0\x2a\x75\x1a\x8b\xd6\x3c\x54\x4d\x83\x4c\x21\x15\xbb\x0e\x05\x32\x11\x89\x3c\x09\x86\xc8\x4d\xe1\x6f\xdc\x2e\xe5\xb1\x1c\x17\xec\x9b\x32\x4c\xfb\x82\x8e\x3b\xf7\x28\x0d\x15\x1a\xa2\x80\x20\x97\x3e\x6c\x28\x92\x4a\x3c\x29\x55\x61\x81\xaa\xb9\x59\x39\x15\x77\x2f\x9e\x7a\xaf\xc0\xca\x06\x0e\x45\x37\x22\x3f\x4e\x14\x18\xf2\x65\x85\xf9\x08\x4b\x3c\x99\x2a\x6e\xd4\xf0\x1a\x31\x4f\x9e\x3d\x39\x0c\x36\xdf\x14\x85\x51\x9c\xc8\xa0\x4f\x95\xc8\xf7\xed\x0b\xd5\x88\x94\xb5\x6e\x1b\x6e\xa9\x7d\x69\x8c\x6f\x1b\x65\xb9\x15\xfe\xea\xf4\x14\x6e\x78\x94\x1c\x04\x69\x7e\xaf\x48\xf6\xe3\x50\xba\x15\x81\x74\x20\xf3\xb4\xed\x10\x45\x2b\xfc\x6d\x2d\x24\x90\xe5\x9e\x34\x62\x02\x2b\xdb\xbc\x2f\x5a\x73\x21\x78\x69\xe4\x8d\x58\xa5\x2a\xfb\xa2\x4e\x78\x62\xa9\x90\x02\x2a\x67\x3c\x96\xb0\x2f\xbc\x59\x2f\xc9\x46\xac\x28\xf1\x92\x6c\x77\xb2\xdc\xa0\x8a\x35\x18\x9d\x76\x26\xb4\xc4\x74\x05\x2a\x89\x09\xad\x13\x02\xd9\x86\xa0\x53\x66\x22\x6b\x37\x3e\xc4\xbf\xb9\x6b\x96\xe6\x07\xe6\x62\x13\xdb\xd0\x1a\xaa\x20\xf8\xe5\xf4\x57\x42\x30\x31\x8d\xbf\x03\x84\x30\x3b\x5d\x36\xa8\x3e\xed\x70\xbd\x69\xe1\xe9\x7f\x18\xe7\xf0\xdc\xf8\x0f\xc3\x3a\x61\x6b\x82\xbf\x9c\x22\xb7\xc2\x35\x2c\x8d\x7f\x7e\xfa\xc7\xff\xfc\xf7\xaf\xd7\xff\xfa\xf4\xfb\xf5\x7f\x7e\xfa\x9f\x7f\xfd\xc3\xb0\xd1\x4e\xb5\x8b\x2f\xe1\xd5\xae\x73\x6f\xe0\x96\x96\x43\xf3\xa6\x75\xa7\xbe\xfd\xb4\xf8\x0c\x2b\x26\xbe\x35\xb1\xb5\xb3\x3b\x97\x40\x8a\xdb\x5b\x58\x12\x1b\xba\xf0\x6b\x8f\x09\xa3\x65\x67\x77\x6e\x53\x97\x62\x4e\x66\x67\x87\x41\x90\x47\x05\x2c\x3f\xde\x19\x1b\x0a\x4f\x29\x23\x4d\xc5\x8c\x93\xfd\xe3\x04\xfe\xb1\x69\x08\x34\x8d\xff\x25\x26\x7c\x2e\x40\xdf\xb7\x4d\x05\x78\xcb\x86\xb5\xb3\x93\x20\x49\xc2\xb7\xd4\xaf\x70\xd7\x63\x04\x11\xe3\xb5\x7d\x2f\x0c\x93\x3f\x55\xfb\x62\x0d\xdb\x1e\x12\xf1\x92\x24\x08\xe3\x3f\xf7\x12\x06\xbb\xbe\x05\x0c\x3a\x18\xb5\x5b\xc1\x8e\x9f\x78\x6f\x62\xa7\x86\x8b\xcd\x8a\xd7\x0c\x7d\x3f\xf4\xde\x56\x93\x32\x82\xb7\x60\xd1\x42\xd1\x72\xea\x07\x6f\xa9\xbe\xe7\x3f\x08\xd3\xf4\x2d\x35\x3b\x5c\x37\xcb\x46\xd6\x8d\xa2\xd4\x7f\x4b\x5d\x2c\x54\x4c\xb4\x1a\x25\xc9\x9b\xba\x4e\x56\xbd\x68\x10\x83\x04\x81\x96\xf2\x97\xa4\x7e\x10\xbc\x49\xdc\x64\x83\x5a\x8c\x7b\x5e\x37\x0b\xd2\xb7\x75\x3b\x85\xe4\xb6\xa9\x84\xb0\x83\x34\x4f\xdf\xd4\x59\x83\xa2\x08\x7d\xf3\xa3\xe4\x4d\x0d\x8f\x5a\xb6\x04\x15\xc3\x44\x28\x5a\x18\xf8\xd9\x9b\xc4\xc7\x20\x65\xce\x17\xd0\x30\x48\xa4\xe8\xc2\xe4\x0d\xfa\x46\x70\x53\x43\x72\xb1\x61\x4d\x2b\xba\x3d\xcb\xe2\x57\xb2\xb0\x6a\x9b\xae\x7b\x38\x6e\x73\x2f\x4a\x5f\xd9\x6f\x43\x7d\x46\x40\x75\xd3\xa0\x95\xd4\xba\xc0\x7f\xa5\xca\x3e\xac\x7e\xd1\x93\xa6\x6b\x58\x73\x0b\xe9\x45\x05\xaa\xb5\xec\x91\xc8\xcf\x5f\xa7\xc6\x42\x96\xce\x0a\x32\xa7\xc2\x68\xd9\x08\x6a\xd2\x38\xce\x5f\xd7\x15\x82\x08\x58\x3b\x1d\xe8\xa9\x03\x50\xed\x50\xc8\xa8\xb4\x63\x79\x90\x4f\x26\xb8\xf7\x75\x27\x56\x5a\x4c\x8b\x97\xd7\x10\x34\xd7\xb5\x8d\xe4\x07\xb2\x77\x35\x98\x7b\x11\x65\xc9\xe1\xd9\x19\x74\xaf\xaf\x21\xfd\xa7\x70\x15\x3f\xc3\x42\xd9\x76\x40\x69\xb3\x42\xe6\x5d\x0d\x97\x60\xd3\xb2\x02\xee\x6c\x68\xed\xbe\x34\xa8\xc6\x5f\x5c\xc1\xdc\x2f\x1b\x86\xff\x4b\xcc\xc7\xff\x63\x8b\x40\xd7\x54\x7b\x12\xf6\xef\xf7\xcb\xb2\x04\x64\xb5\xe9\x20\x62\xd4\x6d\x21\x5a\xb1\xf5\xcf\xc8\x34\x24\x71\x5b\x74\x6d\x9c\x43\xab\x98\x14\x30\x51\x62\xfe\x42\x08\xd8\xba\x3d\xc1\x0c\xb3\x6d\x0f\x5d\xda\x36\x15\x74\x2b\xd0\xb6\xe6\xf8\x3a\xdb\xb7\xac\x9d\xfd\x34\x49\xbf\x6d\xd1\x93\xf4\x0c\x2d\xd1\x2d\xaa\xde\xda\x12\xd7\x92\x35\xa0\xeb\xa6\xc2\xa4\xe7\x56\xb5\x59\x21\x87\x6e\x29\x83\x9d\x33\x2a\x2d\xbd\x98\x7c\x5c\xd7\xf4\x02\x54\x15\x26\x75\x83\xd1\x45\x83\x6a\xf8\xd5\xb0\x2f\x9f\x52\x75\xfb\xbe\x99\xb7\x9f\xb5\x65\xf6\x63\xf7\x66\x3f\x3b\xfc\xaf\x6c\xf3\xb1\xf3\xc6\x26\x33\x13\x3f\xcd\x72\xcb\xda\x59\x96\x3e\x57\x0c\x76\x17\x8b\x0d\x63\x18\xbd\xc4\x9b\xb2\xe9\xc7\x61\x21\x08\xd3\x2c\x3e\x22\x0b\x7f\xa1\xde\xc9\xbd\xc0\xd3\x63\xad\x85\x84\xf1\xa7\x2b\xd2\xf4\x22\x80\xe2\x7c\x1d\x8e\x49\x8e\x43\xba\xef\xc5\xbe\x9e\x62\x09\xd2\x5f\xd5\x19\x0f\xd5\xe9\x15\x9d\xf3\xc8\x47\x1c\x89\xeb\xd8\xf7\x7c\x7d\xae\x59\xc3\x5a\xf8\x12\xd7\x7a\xe3\x3e\x4d\x63\x3d\x42\xfb\xde\x59\x62\xcc\x04\x21\xfd\x96\x34\xab\x35\x7b\x57\x8a\xfd\x24\x8e\xf4\x14\x6a\x4f\xf1\xab\xb4\x4a\x8b\xda\x34\x4a\x33\xef\x58\xd4\x32\xd8\xcd\x36\x6e\xa3\xe0\x58\x42\x6e\xe1\x0a\xb4\x4e\xdb\xa0\x1b\xfa\xae\xa2\x8e\x7c\xcf\x0f\x8f\x45\x73\x83\x6e\x66\x13\x75\x9c\xf8\x41\x72\x24\xc2\x29\x03\x6c\x43\x9d\x91\xfe\x03\xc2\x1e\x13\x8b\xe7\xec\xa5\x9e\xcb\xf2\xc3\x24\xd2\x66\x8a\x80\x0e\xce\x30\x4a\x63\x2f\xf4\xf5\x7b\x40\x10\xdb\x03\xc2\xe8\x85\xec\x8d\xf9\x9c\x6c\x1c\x87\x47\x12\xb6\xa4\x7f\x0d\x41\x3d\x23\xfd\x71\x1c\xc6\xc1\x31\xe9\xef\x40\x33\x63\x88\x93\x87\xf9\x71\xa9\xc7\xb5\x08\x4f\xe6\x32\xf5\x69\xe0\xa5\xc7\xa4\x9f\x36\x35\x5c\x80\xf9\xd4\x27\xcd\x3c\x5f\x9b\x01\xa9\xf2\x17\x6b\xdc\xc1\x57\x99\xcf\xa3\x1a\xcb\xdc\x4b\xb5\x35\x48\x31\xf0\xa7\x22\xe5\xb7\x85\xc6\xd3\xf9\xc3\x23\x0d\x21\x3f\xc8\xb5\xc3\x24\x25\x80\x0e\xa2\x8d\xf3\x03\xf2\xcf\x3c\xf1\xbc\x4c\x93\x87\x61\x7e\xdb\xe1\x7e\x1c\x5e\x2c\x70\xbd\x9d\x6f\x14\x45\x81\x76\x60\xfd\x80\xfe\x99\xdd\x60\x9e\xfa\xa9\xae\x1b\x7c\xc0\xc1\xc4\x11\xbe\x5b\x0a\xe6\x67\xc7\xd6\x9b\x3f\x33\x75\xa1\x99\xe5\x07\xa1\x6e\xec\xfd\x80\x87\x0e\xd6\x0d\x98\xcf\x07\xc6\x69\xa4\x95\x07\x2f\x40\xbd\x82\x4e\x85\x37\xe8\x95\x93\x15\x47\x15\x7f\x1c\x69\x4d\x0f\x09\xe2\xe7\x27\x3b\x8d\xfc\x44\xcb\x6f\x2f\x08\x04\x75\x45\x36\xdd\x62\x86\x24\xc1\x8f\xd3\x40\xcb\x47\x4d\xa9\x1d\x52\xf9\x1f\x96\x9f\x65\x79\x1c\xe8\x29\xfc\x9e\x1b\x46\x36\x48\xad\xcb\xbe\x6b\x82\x1f\x44\x7a\x61\x9e\x0c\x0a\x1c\x0a\xa7\x43\x74\x0e\xeb\x12\x84\x89\x5e\x7c\x27\x29\x9f\x7f\x84\x26\x51\xa4\x97\x18\x57\x80\xd4\x17\x15\x46\x0c\x34\xe8\x65\x3f\x7a\x4c\xd2\xe3\x34\x0a\xb5\xdc\x6a\x85\x6b\xe8\x2c\x5a\x5c\xdd\x88\x99\xcd\x69\x48\x39\x87\xce\x64\x41\x10\x1d\x8b\xfe\x1f\x31\xf1\x9f\x64\x71\x7a\x2c\xfa\xdf\x98\xd3\x1c\xca\x5c\xee\x29\xd8\xb0\xa6\x7f\xc0\xe6\xbe\xd7\x7a\x5b\x98\x67\x5a\xa1\xea\x44\x3a\xef\xbf\x4a\x90\x86\x59\xa2\x67\x06\x70\xbf\xfd\x73\x46\xec\xf9\xbe\x3c\x6e\xf2\xe6\x69\x6b\x6b\xbf\xbd\xa0\xa8\xe9\x7b\xf8\xd6\x00\x70\x26\x16\xb3\x24\x4f\xb4\x62\xf4\xba\x01\x2d\x5e\x39\xe3\x36\x88\x79\xd3\xd3\x24\x4a\x62\x2d\xef\xff\x88\xfc\x1f\x61\x15\xc3\x30\x08\x8e\xcb\xc5\x24\xc7\x7e\xb7\xe1\x9f\x45\xb9\x96\xb1\x7a\x44\xf4\x0c\x69\x75\xe8\xc7\x7a\x3b\x1a\x1e\x11\x8d\x6f\x21\x69\xc1\x7c\x1a\x1f\xc5\x71\xa6\x15\xa2\x3f\xe2\xe0\x0b\x01\x7d\x3f\xe3\x84\x4c\x1a\xc4\x7a\x13\x32\x75\x43\xab\x16\xd3\x0d\x81\x13\x2e\x5e\xb0\xae\xaf\x37\xa7\x8f\xdc\xbf\x66\x7a\xe2\x85\x5a\x59\x78\xdd\xd0\xae\xa1\xd4\x79\x8b\x9f\xd4\x73\x7a\x59\xac\x95\xd0\xd6\x04\xf7\x35\xfe\x82\xe6\x9e\xe7\x0b\x32\x3f\xd1\x1b\x18\x03\xe1\x33\xaf\x73\x85\x59\xa2\xb7\xdb\x62\x24\xfc\x18\xfb\x61\x34\x67\x43\x7c\x4d\x47\x36\xb0\xd2\x36\x94\x39\x62\xc7\x55\xb5\x86\xd5\xcd\x02\xbf\x92\xaf\xe3\xc7\xe4\x69\x1c\x1e\x67\x3c\x3c\x60\xa9\x03\xe4\xc5\xe5\x24\xbd\x5c\x37\xf3\x3d\xad\xf8\xfc\x29\xca\x79\xce\xfb\x9a\x79\xaa\x63\x6a\x55\x10\xc4\x99\x56\x18\xfe\x04\x23\x0f\xc3\xbc\xb9\xe6\x1f\xa2\x20\xd6\x0b\xb7\x1f\xb3\xb2\x82\x08\x92\xa6\x9a\x71\x61\x35\xd1\xcb\x8a\x9e\xe0\x41\x8c\x5a\x50\x71\x4f\x3e\xeb\x4c\xd6\x91\xd9\x20\xa0\x6e\xf0\x0f\x32\x54\x7e\x9e\x26\xc7\x36\x54\x14\xf6\x80\x00\x86\xe7\x73\x86\x49\xe6\xe9\x4d\x81\x3c\xc1\xc5\xab\xa6\x42\x8e\xa9\x56\x51\x96\xe8\xcd\x49\x8f\x4c\x30\xbc\x5a\xb5\xf0\x95\x1b\xa7\xe7\xd9\x76\x1c\x07\x61\x7a\x1c\x13\xa6\x98\xab\xd6\xf0\x96\xcc\x98\x6d\xa7\x41\xa8\xb7\xad\xe0\x21\x03\x4d\xf5\xf6\x4d\x05\xaf\x98\xe7\xd1\xeb\xa5\x24\xd3\xb3\x06\xcb\x76\x8b\x37\x6c\x3f\x9b\x33\x97\x45\x8e\x35\x7d\xbd\xa2\xfb\x07\xf9\xf7\x3c\x8b\x02\x2d\xf3\xa5\xc8\x7f\xdd\xfc\xcd\x51\x97\xfe\x92\xd4\xd7\x4a\x54\x15\xe5\xaf\x9b\xc4\x39\x6a\x78\x98\x44\xc1\x31\x28\x3f\xda\x0c\xc2\xab\xed\xf0\xbd\x33\x74\x8f\x85\xf1\x3e\x2b\x48\x99\xe6\x12\xef\x12\x13\x9e\xc1\x00\x1e\xae\x41\xf2\x96\xcd\x0d\x9a\x81\x41\xaa\xb7\x9d\x41\xd1\x2d\x93\xc9\x8b\x05\xa0\x70\xc6\xe3\x2e\x49\xa8\xb5\xd2\x7b\x9f\xf6\x65\x03\xdb\x7a\xc6\x8d\xa0\x9a\xa7\x56\xee\x13\xbf\x22\x78\xd3\xcf\x37\x29\x94\x68\xce\x66\x09\xe2\x21\x21\x78\x8e\x73\x21\x99\xa7\xb9\x55\x6d\x42\x6d\x07\x29\x05\xab\xf9\x74\x3c\x49\x73\xad\xa8\x50\x90\x2e\x34\x5b\xe3\x8c\xdd\x61\xa3\xfb\xbc\x05\x3f\xee\x9c\x6f\x1c\x66\xc7\x92\x05\x7d\xed\xba\xe1\x5f\x89\xff\x34\xc9\xf4\xce\x09\x29\xfe\x5b\xe8\x34\xa8\xe7\x41\xe8\x9c\xc6\x3a\x0a\x34\x17\x7d\x1f\x52\x3f\xaf\xb9\xf6\x43\x2f\xd6\xf7\x93\xf2\x36\x07\x87\xc1\xaf\x73\xf8\x76\x3f\x4e\x23\x7d\x2b\xdd\xa0\xba\xa9\x00\x9b\xc9\x52\xa7\x5a\x09\xbe\x20\xb8\x05\x0b\xd8\xce\x11\x3a\x05\xa9\xaf\x2f\xde\x16\xae\x20\x7a\xa5\x71\xd6\xcb\xa1\xe2\x4c\xef\xc8\xb6\x20\xb7\x03\xf4\x06\xd6\x0f\x0d\x88\x66\x64\xff\x5e\x6b\x0c\x51\x1c\xea\x87\x58\xf7\x38\x9e\xd7\xe8\xc4\xb1\xe6\xc6\x25\xc1\x80\x98\x3d\x75\xc4\xe6\xc0\x1f\xb1\x0b\x23\x0e\x03\xff\xa8\x4c\xcc\x1b\xea\x46\x89\x1f\xeb\x7b\xdd\x09\xf9\xf3\xef\x2b\x0d\xc3\x23\xc4\x0d\x13\x0e\x84\x81\x9d\xf1\xbc\xa5\xa7\xb7\x1f\x6e\x4f\xfe\xcc\xe9\x69\x14\x47\xfa\xe9\xa9\x24\x7c\x5e\xbb\x93\x26\x71\x78\x24\x8d\x99\x79\xb4\xe6\x69\x94\xeb\x2b\x0b\x85\x2d\xf7\x47\x87\xdd\xdb\x11\xa8\x0d\x93\x30\xd7\x77\xc9\x8a\xda\x79\x55\x24\x4b\x74\x67\x64\x05\xe9\x1b\x1e\x0e\x2b\x06\xc0\x92\x41\xe2\x60\xe1\x9d\xe6\x3b\x90\x9b\x67\x49\x7a\x84\x3e\x98\x32\xd2\x6d\x5a\xd6\xf4\x2d\x7c\x95\x02\x4d\x2f\xda\x1b\x0b\xc7\xbb\xdb\x26\x0e\xe1\x89\x63\xa0\xcf\x26\xeb\xef\xb4\xfa\x91\xc5\x9e\xde\xa6\x8d\x03\xb2\xda\xab\xef\xbb\x25\x17\x51\x18\xe8\xcf\x1f\xdc\xa3\x5e\x2a\xab\xb3\xb7\x71\xf3\xaf\x4f\xa7\x7e\xae\xb7\x37\xe8\x31\x57\x7d\x0b\x2a\xb8\xc6\xed\xac\xbb\xb5\xe2\xf4\xd8\xc3\x90\x36\x68\xf5\xff\xe1\x20\x0c\xe3\x38\xd0\x0f\x2b\x9e\x92\xd4\xfb\x0f\xc1\xa3\xc4\xd2\x0c\x7e\x65\xaf\x4a\x40\xdf\x61\x1d\x32\x89\x8e\x30\x69\x3f\x61\xe0\x05\x91\xcf\x74\x5a\xc1\x4f\xf3\x23\x4c\x90\x73\xb6\x00\x81\x60\x96\xb8\xe9\x08\x19\xcd\x48\xef\xbc\x91\x53\x10\x85\x7a\xf7\xc7\x48\xe2\xd5\x0e\x96\x39\x13\x9a\x20\xc9\xd2\x23\x88\x5d\x52\x3e\xaf\xd0\xc3\x50\xef\x4c\xe8\x94\xf2\x79\x33\x9a\x38\xf6\x72\x7d\x93\x73\xdb\xd0\x66\xd1\xb4\x0d\xdb\x3a\xc3\xee\x9a\x59\x0f\xe5\x26\x41\xea\x69\xc5\x5e\x4d\x85\x91\xc3\x9a\xf6\x07\x9c\x9c\x0f\x23\x4f\x6f\xc3\x2f\xa7\xfd\x2d\xcb\x4d\x4f\xc5\x88\x47\x9d\x10\xf2\x42\xbd\xd3\xae\x93\x6d\xa5\x7f\x6e\x19\x4d\xcf\x0c\xa5\xa9\xde\xd9\xba\xb6\x41\x37\x17\x0d\x6a\x1b\x34\x6b\xf0\x10\xfa\x99\xde\xf9\x6e\x41\x37\x65\x00\xd5\xa0\xc5\xf3\xd2\x9e\xe4\x9a\x63\x40\x5c\x14\xf4\xea\x63\x45\x0f\x18\xf8\x51\xa7\x8c\xb2\x30\x8a\xf4\xb8\xc6\x35\x68\x67\xdf\xec\x97\x27\x99\xde\x1d\x69\x92\xec\xf9\x37\xcb\x45\x79\xa4\x97\x04\x4a\xc2\xe7\xdf\x2b\x97\x79\xa1\xde\x9d\xc1\x92\xf0\xbf\xdc\x56\xb9\x03\xb2\x78\xfc\xf0\x83\xc0\xe1\xc0\x36\xee\x4c\xef\xfe\xa2\x1e\xac\xe0\x70\x01\x19\xa8\xe6\x9d\x2e\x0c\x42\xcd\x49\xa4\x29\xf1\xe2\x2a\xa0\xf9\x68\xcf\x02\xbd\xf5\x88\x29\xe9\x3f\xe4\x7a\xeb\x24\x4e\x8e\xc6\xc0\xbc\xf1\x6f\x96\xe4\xfe\xd1\x48\xa7\x9b\xc5\xfe\xec\xc5\x2c\x4a\xef\xfb\x7a\x7b\x77\xa6\xd4\xcf\x4b\x7a\x1e\xea\x5d\x4c\xd3\x83\x55\x83\xc4\xc4\xa0\xf8\x06\x54\xef\xb7\xa1\x59\x2f\x4d\xcc\x43\xbd\x03\xd1\x13\x46\x1b\xb4\xc4\x33\x6c\x48\x89\xa2\xcc\xd3\x1d\x13\x03\xc9\x08\xdc\x5e\x00\x42\xf0\x97\x1f\x79\x4c\x37\x09\xf2\x54\x6b\x79\xe4\x01\x43\xb0\x6d\x9b\x9e\x36\xf3\x39\x88\x30\x8c\x3d\xad\xa9\xa9\x07\x0c\xa0\x0d\x27\xe0\x47\x76\x49\xe6\x79\xda\x3e\x6f\xe4\x48\x70\x03\x5f\xdc\xc1\xf1\x63\x0c\x40\xe6\x65\x7a\xb9\xca\x84\x53\xda\x7c\x83\x6a\x6d\xe0\xb5\xdb\xfe\x5e\x1d\x71\x1e\x75\x2a\x20\x8c\x02\xbd\xa9\x80\x1e\xf7\xf8\x16\x92\xf7\xb8\xf0\xe2\xa5\xeb\xaf\x9e\x17\x91\xce\x6a\x94\x9e\x38\x53\x5f\x6f\xb4\x10\x78\x0b\x5f\xce\x63\xe6\x9c\xeb\xca\x63\x4f\x2f\xf0\x52\x2c\xbd\xe9\xc4\xa8\x9e\x27\xcf\x62\xbd\xdb\x51\x49\x53\xad\x1d\x86\x71\xcb\x9a\xfe\x62\xb1\x59\x2c\xde\x7c\x4a\xf7\x87\x29\x60\xea\x67\xb1\x96\x11\xbb\xc7\xfb\xfc\x6a\xa8\x23\xc1\x03\xdb\x58\x3d\xbd\x45\xc7\x7b\x42\x91\x8a\x3c\xeb\xcd\xb3\x59\xa2\x77\x90\x90\xc2\x55\x07\x11\x83\xb5\xdc\x68\x31\x73\xea\x16\x25\xbe\xde\x74\xc5\x78\xda\xff\x07\x2c\x5d\x24\x89\xde\xe6\x10\xda\xd4\xd0\xe1\xa1\xdc\xac\x0b\x8d\x71\x10\xe9\x5d\xe7\x31\x92\xfd\x23\x7f\x68\x20\xf5\x22\xbd\xe3\x89\x0f\xb9\x10\x6b\x60\x7f\xea\xce\x02\x3d\x3e\x82\x28\xd7\xca\xa1\x1f\xf1\x31\xeb\xf8\xf5\xfd\xec\x48\xe4\x1f\x31\x34\x3c\xb6\xe3\x0c\xa2\x54\x6f\x53\xc1\xc8\x64\xdb\x50\x76\xb1\x00\xd5\x8d\x33\xeb\xef\x32\x85\x69\xa0\xb7\xa5\xe3\x3e\x03\xf3\xaa\x58\x18\x07\x7a\x77\xab\x3f\x20\x7e\xce\xdf\x1e\x0b\xe2\xd4\xd3\x9a\xb4\xb8\x4f\xfb\xac\x4a\x93\x87\x71\x76\x1c\x3f\x21\x68\x9f\x77\x66\x32\x8c\x35\xc3\xba\x91\xf8\x1e\x13\x76\x2f\xeb\x9a\xc5\xac\x7a\x9e\xde\x85\x07\x0f\xc9\x67\x80\xac\xe0\x8b\x3f\x67\x38\xfc\xba\xf3\x8c\x57\xf9\x46\xa9\xde\xb2\xfd\xc8\xa8\x0c\xbd\xe7\xbe\xdb\x3c\xc8\x13\xcd\x8e\x62\xb0\xef\xc5\xcf\xdd\xc1\x7e\x7f\x1a\x74\xd6\xdd\x07\x69\x18\xea\x75\x81\x62\x81\x01\x7a\xf3\x63\x58\xc8\xe3\x44\xef\x48\x0d\xe3\xd1\x82\xe6\x55\x94\xef\x75\x29\x52\x18\xea\x65\x19\x92\x37\xf6\xe2\xde\xe3\xa3\x76\x48\x1a\xea\x6d\x66\x54\x44\xaf\xff\x1a\xf3\x5c\x61\x98\xa5\x5a\xa3\x7c\x60\xc7\x19\x7e\xb8\x03\x93\x17\x8d\xf1\x3b\x1d\x69\xc8\x52\xcd\xed\xbd\x0f\x79\x51\x73\x1f\x7f\x8d\x8b\xde\x12\x3f\xd1\x3b\x0f\x3b\x72\x27\x67\xe8\xc1\x2b\xe6\xf7\xf4\xae\xb1\xd0\x0c\xec\x13\xbd\x29\xbd\x3d\xbb\x5a\x1a\x79\xd4\xab\xb1\xf2\x58\xef\x94\xa1\xe2\x69\xde\xfb\xbc\xd2\x48\xef\x86\x73\x06\x16\x74\xbe\xe5\x11\x3d\xa5\xd3\xfd\x41\x5c\xc1\x6b\x0f\x90\x3a\xe7\xfc\xa7\x34\xee\xc8\x9b\x5e\x35\x8f\x79\x09\x8e\x18\x58\xfc\x45\xf8\x49\x7c\xcd\x85\x59\x06\x56\xf3\xcf\xa7\x46\x79\xa8\x37\x97\x24\x6e\x7e\x99\xfd\xf2\xc7\xd0\xd7\x9b\x88\x14\x54\x57\xb8\x9e\x75\xd9\x20\x8b\x7c\xbd\xbc\x45\x50\x5d\x37\xb4\x1f\x7e\x47\x62\xae\x49\xf7\x34\xd5\x34\x3e\xaf\xbe\x1e\xe8\xa8\xd3\xbc\x49\xa4\xb7\xbb\x8e\x61\x30\xfb\xcc\x5b\x9a\x66\x81\xde\x80\x94\xa1\xe1\x9b\x7e\x07\xe2\xa8\xfb\xb6\xc2\x44\x6f\xe2\x76\xfb\xe0\x6e\xb7\x79\x96\xc4\xb2\x37\xee\x07\x94\x17\x5f\x09\x8a\xc5\xbc\xb2\xc3\xb0\xd3\xe1\x1a\x3e\xf3\xcb\xdb\xf2\xf1\x87\x12\x3f\x74\x42\xe7\x8d\xf1\xd8\x53\xf4\xfc\xb1\x81\xe4\xe9\x1f\x9c\x51\xe4\x3c\xdf\x89\x7e\xfc\xc6\x4d\x06\x0d\xa2\x0c\xa0\x0a\x3a\x0d\x6a\x58\x03\xda\xe6\x1b\xa7\xa6\xc5\xa0\x76\x68\x4f\x1a\x26\x2c\xad\x20\xc3\x59\x41\xe6\x54\x18\x2d\x9b\x03\x02\x88\x82\xec\x8d\xb3\x0b\xc3\x5a\xb4\x14\x01\x40\xd5\x1a\x13\x58\x3b\x3d\xa6\xcd\x83\x3d\xbd\xfa\x67\xa3\x0f\xec\x00\xcc\x7d\x1d\xb2\xab\xb6\xe9\x17\x18\x90\x7a\x1e\x72\xe3\xcc\xf3\xdf\xa6\xf6\xf7\xc9\x25\x70\xd5\x50\x06\x89\x03\x6f\xc5\xc0\xd3\xa1\xf9\xc0\x4d\xcf\xfe\x1b\xaf\xcb\xb9\x4f\xe4\x34\x57\x7e\x77\x89\x06\xb1\x37\x99\xd8\x03\x88\x8a\xdd\x82\x07\x2e\xab\xf5\x27\x97\x8e\x2c\x00\x85\x49\xe4\x7c\xa6\x87\xaa\x84\xfe\xf4\xb4\xfc\x54\x61\x0e\x1c\x9f\x49\x27\xd6\x84\x87\x3d\x5d\x43\x08\x3e\x48\x59\xe4\x4f\x7f\x2e\x75\x5f\xe7\x02\xd4\x35\x46\x17\xb0\x6e\xd8\x45\x07\x58\xb5\x5e\xf0\xc4\x08\xb2\x83\x34\xa7\xb9\xef\xfb\xcf\xbf\x4c\xa6\xfd\x0d\x46\x17\xf2\x08\x9e\xa3\x0e\xb2\x1d\xd0\xdb\x60\xf2\xa3\xd7\x93\xf7\x71\x0b\x7c\xf1\x19\xdc\x02\xb9\x97\x7f\xf2\xf1\x20\x79\xfe\x74\xc5\xe8\xe1\xeb\xc8\x66\xb1\x15\x7f\x0e\xbd\xc2\x4f\x83\xc9\x66\xc5\x6a\x43\x6e\x61\xed\x88\xfd\xbb\x07\x05\x93\x24\x89\xbf\x5f\xef\xa9\xc3\x83\x1d\x1f\x24\x49\x3c\x79\x96\xbf\x1e\x1c\x24\x2a\xf0\x33\x2f\xbf\x57\xe3\x6b\xf3\x02\x39\xf9\xc4\x1e\xd4\xa1\xb3\xc4\xa4\x03\x07\x65\x17\x04\xb1\x77\xaf\x0a\xad\x40\x7b\xb0\xf3\x92\x28\x9f\xdc\x32\xc8\x6b\x0c\xdd\x7f\x50\xc0\x61\x32\x49\xaf\x78\xad\x35\xe8\x0f\xb6\x13\x46\xf9\x24\x10\xa9\x43\x87\x35\x1d\x7c\x05\x47\x61\xe4\xdf\xeb\x13\x87\x11\x80\x46\x27\x72\xe0\x40\x61\x3c\xc9\x49\x6a\xdc\xf5\x1b\xd2\x2c\x0f\xf6\x4f\x96\x64\xc1\x5e\x69\xea\x0d\x91\xbf\x60\xfe\xc2\xf8\x4f\xa3\xc9\xf1\x69\xe9\x51\x61\x0b\x3b\x88\x98\x23\xdd\xfa\x18\x0b\xa8\xe2\xa7\x22\x80\x27\xe2\xa6\x67\x62\x14\x09\x09\x6e\x6a\x48\x2e\x36\xac\x69\x0f\x24\x38\x7e\x34\xd9\xb2\x2f\x49\x5b\xe2\x6a\x43\xb9\x08\xfb\x89\x59\xde\x17\xba\x9f\xa7\xf1\xd2\x68\x83\x9f\x6f\x22\xcf\x27\x6a\x20\x9b\xd8\x5b\xee\xf7\xf1\x3f\x7e\xe8\x3f\x6c\x92\x32\x40\x56\x80\xc1\x69\xec\x2a\x57\xfd\x9e\x13\xf6\xeb\x56\x00\x9f\x99\x3a\x7a\xd2\x13\x3d\xb5\x57\xef\xe1\x6c\xd5\xc5\xb8\x0d\x98\x5e\x54\xa0\x5a\x4f\xaa\x3f\xec\xed\x27\x45\xf6\xfc\x42\xcb\x81\xf8\x3f\xca\xbc\x57\x8b\xcb\x99\x2c\x92\xbe\x4d\x6a\x0f\x27\x6f\x1e\x49\xf1\x41\x52\xf3\x86\x85\xe0\x2c\x9c\xd8\xf2\x07\x1c\xa8\x66\xe8\x85\xf3\xa8\xbf\x5f\xa2\x60\xdf\xad\x42\x8a\xb0\x76\x3a\xd0\xf3\x50\xb5\x76\x28\x77\xa0\x07\xa2\xf1\x49\x2c\xbc\xdc\x50\xe8\x1e\x36\x11\x69\x98\x4d\x6e\x9d\x6d\xa8\x23\xa2\x9f\xe7\x5d\x7d\x18\x4d\xce\x7a\xb6\xb8\x06\x74\xed\x8a\xe9\x32\xfa\x0a\xbb\x1c\xc4\xe1\xe3\xca\x14\xfe\xb1\x11\xb2\x79\x9e\xa7\x24\x99\x9c\x95\x69\xc9\xe6\xba\x03\x07\xa9\x4c\xbd\xc9\x26\xe2\x0e\x90\x1b\x78\x30\xe6\x49\xd2\x89\xeb\xeb\xb0\xb2\x83\x07\xe6\x0a\xfc\x89\x0c\xe4\xf3\xc2\x61\x7c\xc3\x2f\x84\x22\xc1\xe4\x80\x2f\xc2\x4e\x25\xb7\x15\x3e\x2f\xec\x38\x4b\xf7\xca\xd5\x13\xdc\x3b\x6c\xdb\xc3\xc3\xfd\x99\x25\x93\x05\x7b\x91\xd5\x39\x94\x11\x31\x1b\x7d\xa0\xa5\x2c\xf6\xf6\x5a\xc0\x20\x5b\x1f\x8e\x45\x03\x3f\x9d\xfc\xbc\xa0\xb8\xd2\x07\x22\x1e\x0c\x11\xa7\x95\xf9\xdb\x01\x21\xf8\xd3\xa6\x1a\xd6\xc2\x17\x05\x91\x25\xe1\x64\x13\xed\x57\xca\xc0\xe1\x36\xc2\x64\x72\x53\xdb\x57\x06\x49\xe7\x88\xe8\xd1\x59\x36\x07\x7b\x36\x4f\xa2\xc9\x89\x8a\x6b\x08\x9a\xeb\x7a\x8b\xae\xc5\x1b\x9e\xab\xc7\x5c\x68\xa6\x59\x6a\xb9\x6c\x0d\x91\xc9\x5c\xe6\x2e\x1a\x54\x9b\xcc\x4e\xb3\xd4\x56\xa7\x65\x77\xa6\xb5\xb3\xd3\xc0\xf3\xa2\x62\x7c\x01\xb4\x91\x75\xf7\xa5\x41\x35\xfe\xe2\x8a\x96\x48\x49\xe0\x1f\x9b\x86\x40\x7b\x5a\x5a\x97\x35\x5c\x36\x08\xee\xec\x38\x8e\xfd\x82\x57\xb3\x99\x55\x7e\xbc\x83\x2e\xfc\xca\xcd\x0a\x2d\x27\x34\xdd\x02\x72\x0a\x4b\x59\xd1\x46\xf2\x03\x39\x19\x1e\x38\xc5\x26\x1c\xe9\x86\x67\x67\xd0\xbd\xbe\x86\xf4\x9f\xb8\xde\xb4\xf0\x67\x58\x7c\x12\x56\xd2\x05\x94\xa7\x4a\xe6\x5d\x0d\x97\x60\xd3\xb2\x02\xee\x6c\x68\xed\x14\x4d\xc2\x3a\xfd\xb2\x61\xf8\xbf\x3a\xde\xf8\x3f\xb6\x08\x74\x4d\xb5\x27\x61\xff\x7e\xbf\x2c\x4b\x40\x56\x1b\x3e\x3a\xa8\xdb\x42\xb4\x62\xeb\x9f\xd1\x44\xaa\xc6\x39\xb4\x8a\x49\x01\x13\x25\xe6\x2f\x3c\x52\x75\x7b\x82\x19\xe6\xca\xee\xd2\xb6\xa9\xa0\x5b\x81\xb6\x35\xc7\xd7\xd9\x5c\xf7\xec\xa7\x49\xfa\x6d\x8b\x9e\xa4\x67\x68\x89\x6e\x51\xf5\xd6\x96\x78\x7a\xf6\x15\x3a\x15\x26\x87\xd5\x34\xcb\x92\x7c\x1a\xd6\x8d\xc1\xd6\x70\x60\x18\x93\x17\x72\x9f\x20\x8e\x1e\x78\x93\x3f\x36\xa8\x61\xf2\xa8\x7a\x8b\xd5\xd1\xfe\xe7\x15\x3f\x9f\x1e\xc5\x17\x55\x0f\x8e\x45\x6f\xdc\xdd\xcd\x4c\xdf\xcb\x83\x5c\xa8\xea\xce\xa6\xe5\xdd\x6e\xaf\x36\x15\x17\x23\x57\x2d\x54\xd2\x4b\x78\x75\xd2\x2c\xcd\x5b\xdc\xd4\xa7\xde\x87\xb2\x44\xd6\x20\xdf\x41\x1f\x4f\xf8\x93\x4c\x3c\x59\xde\x35\x75\x01\x6d\x41\x77\x5d\x7c\xf0\x6d\xf5\x48\x71\xb7\xdb\x9d\xa8\x7a\xe4\x12\x5e\x49\xa1\xb3\xe1\x0d\x36\xb3\xf7\x9f\x2b\xcb\x66\xae\x7c\x43\xf9\xc1\xdb\x7f\xb1\xab\xdc\xae\x24\x36\x2c\x2f\xaf\xec\xca\xfd\x54\x9a\xc8\x66\x36\xb6\x3b\x3e\x36\x9a\xa5\xf9\x81\x49\x92\x49\xe9\x5f\x78\x27\x4b\x4c\x4c\x50\x7a\x3f\x81\xbf\x41\xa5\x8a\x3f\x81\xf3\x73\xeb\x8e\x97\xdf\x02\x72\x29\x6a\x5e\x95\xf0\x12\x5c\xd9\x94\x37\xd3\x97\xde\x4f\xfd\xdf\xd8\xf0\x70\x7f\x7e\x6e\x99\x1f\xfc\xb3\xee\xfb\x77\xf2\xb1\xec\xac\xb3\x33\x35\x58\x6e\xe0\x96\x9a\x95\xfb\xc9\x72\xe1\x2d\x24\x5b\xd3\x84\xe5\xc7\xca\xfd\x74\x09\xaf\x4c\x76\xd9\x5f\x59\x96\xf5\x33\x73\x29\x8f\x96\xa0\xd9\x3b\x8e\xed\x5b\x85\x49\xcb\x0f\xbe\xdd\xfd\x8d\x9c\x9d\x99\xa4\xec\x2c\x8b\xcb\x93\x5a\x77\x70\x78\x0e\x88\xe7\x84\x18\x9b\x12\x9b\xd6\xc9\x28\xec\xe6\xec\xcc\x44\x65\x63\xed\x76\x83\xd0\x77\x5d\xd9\x7d\xff\x2e\x19\xe4\x15\x40\xb9\x67\xf0\xa3\x77\x76\x06\x2f\x81\xe3\x5f\x5d\x06\x57\x1f\xbb\x9f\x80\xe3\x58\x9c\xc3\x52\x16\x9e\x88\xcf\x8a\xf5\x9d\x5d\xb9\xa8\x84\xe5\x47\xd5\xcf\x0f\xad\x83\x69\x95\x1f\xa1\x3b\x98\x04\x81\x86\x0e\xac\xdc\xda\x44\xf6\x1d\x28\xd0\xce\xb2\xd1\xce\x66\xa5\x92\xcd\x0a\xb2\x7f\x0f\x83\xeb\xd3\xf2\x67\x58\x7e\x7c\xf2\x0b\x13\x5a\x05\xe4\x6f\xbf\xbe\x16\x63\xf1\xfa\xda\xae\x5c\x36\x19\xc2\x36\xb6\x78\x8f\xfa\x67\xf8\xec\xcc\x84\x25\x5b\x37\xd4\x84\x96\x65\x67\x67\x78\x50\x3e\xc8\x65\x68\xa8\x30\xaf\x2c\xf9\x8b\xf1\x52\x98\x38\x51\x35\xe2\x55\xa7\xfc\xdc\xab\xe7\x27\xfc\x6b\x63\x68\x70\x52\x5f\xd8\xf4\xf1\xd9\x1d\x17\x4d\x37\x70\x57\x11\x08\x18\x34\xd1\xa6\x6d\xad\x93\xca\x25\x66\x27\xbb\x8c\xf0\xa1\x83\x4a\xf4\xfd\xfb\x25\xff\xce\x66\xe6\xdd\x8e\x0f\xaf\xcb\x2b\xfe\x97\x59\x57\x63\x5f\xd1\x32\x10\x74\xfd\xf4\x88\x70\x7a\x76\xf6\xe1\xff\x22\x57\xcc\x6b\x7f\xe2\xca\xf1\x13\x2d\x99\x49\x2d\x6b\x2f\xc0\x4f\x5f\xd0\xbf\x09\xee\x21\x61\xdb\x7f\x81\x0e\x52\x93\x5a\xee\x12\x93\x5f\x41\xb5\x36\x4d\x54\x7e\x24\x97\xe8\xaa\x14\xfd\x74\x89\xae\x2c\x6b\x1c\x6d\x43\x1f\xca\xef\x6c\xde\x79\x9d\x4d\x2c\xbb\xe3\x1a\x50\x97\xc2\x2d\x95\x1f\x87\x81\x71\xca\x4e\x1b\x74\x8a\xac\xca\xc5\x7c\x7c\x59\x67\x67\x1f\xf8\x47\x28\x3e\x2a\x62\xa4\x7f\x1a\x88\xe1\xdf\xd9\x77\x10\x6d\x3a\x48\x78\x0e\x52\x7c\xf0\xec\x15\x64\x05\xba\x64\x57\x3b\x8b\x37\xb2\x2c\xef\xf8\x3f\xc8\xb5\xed\xdf\x04\x77\x0d\x85\x2e\x1f\xfe\xf7\x47\xd4\xd2\x72\x09\xac\x37\x15\x34\x4d\x53\x7a\x3c\x5e\x78\xc9\xae\x04\x85\x36\xb2\x2c\xfb\xf2\xca\xb2\xec\xca\xdd\xf0\x17\x19\xd5\x7a\x83\x6e\x5c\xe3\x1c\x9e\x1b\xae\x71\x7e\x17\x7b\x51\x61\xf8\x1e\x84\xb1\x17\x2c\xc2\x38\xcc\x62\x50\x05\x71\xb6\x0c\x0d\xee\x97\x0b\x23\x08\xab\x3c\xf7\x60\x55\xa5\x71\x15\x2c\xab\x60\xe9\xd5\x0b\x63\x77\x09\xaf\xce\x0d\x11\x30\x57\x6e\xd7\xa0\xe6\xef\x94\xfe\xa7\x18\x14\x9c\x60\x3c\x08\x47\x11\xba\x77\x1c\x6b\x40\x27\xdd\x21\x8d\x99\xa0\x12\x73\x56\xbb\xd2\xb8\xbe\x16\xb6\xfc\x1a\x6c\x18\xbe\x6e\x84\x9b\xba\xbe\x2e\x78\x2b\x6d\x29\x3d\xba\x4d\x94\xdd\xc2\x97\xf0\xca\xe2\x7f\xdc\x7e\x43\xd7\x26\xb2\x4e\x60\x4b\xa1\x18\x95\xd4\xee\xef\x99\x5e\x66\x0d\xbd\xd4\x94\x35\xae\x84\xc3\xe2\xaa\xf1\xab\x74\x3a\xf4\x7f\x6f\x7f\x07\x2b\xae\x1c\xa6\xa1\xe6\xb5\x2c\x5b\x1a\xc1\xe6\x9e\x11\xe4\x6f\x58\x94\xcd\x25\x10\x96\x7d\xc1\x5f\xf1\x0b\x63\xa4\x59\x6c\x18\xaf\x4a\x2a\xc3\x2a\x4b\xf8\xfd\xfb\xc3\x6f\x6a\xc0\x80\xf3\x05\x2e\x7a\x50\xdd\xf0\x47\xba\x73\x66\xdd\xd1\x72\x71\xb2\x20\x10\xdc\xec\x76\xf4\xfb\x77\xb3\xe7\xc6\xd4\xa4\x7b\xfa\xe4\xb0\x51\x24\xee\x09\xb3\xdc\x6a\x0d\x08\x85\xac\x34\x36\x6c\xe9\x64\x86\x4d\x5d\x1e\x52\xe3\x0d\x2b\xfd\xc0\xe3\xd6\xa9\x3a\x3b\xa3\x2e\xbd\x47\x01\xc2\x88\xe7\x50\xfc\x4b\xcb\x7e\xf8\xe5\x3d\xf2\x6c\x4e\x1c\x7f\x84\x54\x25\xb4\x6c\x2e\xe0\xf2\x12\x5d\x89\x11\xdb\x96\x4a\xc3\xee\xa8\x8b\x91\xf8\xa5\xa3\x92\x7f\xe2\x4e\xa7\x14\x63\xb8\x6a\x21\x20\xbf\x4b\x72\xcc\x5a\x8e\xf3\xae\xc4\xca\x17\xd6\xb0\x85\x0c\x9e\x72\x68\x53\xb7\x07\x04\x22\xf6\x2f\x5c\x43\x4e\xef\x1e\xb9\x04\x76\xf8\x16\xfe\x7d\xdd\xb4\xb5\x49\x2d\xbb\x3b\x3b\xeb\xf6\x23\x96\x1b\x40\x93\x59\x16\xd7\xec\x31\x60\x61\xd6\xce\xae\x4b\x0a\xd9\xd0\x74\x2b\x63\x4b\x41\x93\x54\x03\xfb\x8e\x6b\x60\x61\x28\x59\x19\xb6\xcc\x91\x0b\xba\xb3\x6c\x3f\x80\x91\x75\xb2\xe7\x69\x5a\x7b\x2c\xb5\xec\x91\xd5\x87\xdf\xf3\x42\xcb\xee\xcf\xce\xc6\xce\x5b\x43\x50\xbb\xa0\xef\x21\xaa\x07\x3e\x76\x7c\x68\x10\x31\x48\x8c\x0d\x92\xb6\xa0\x36\x3e\x0c\x96\xec\xb7\x6d\xb7\xc0\xed\xd9\x99\xfc\xef\x32\xfc\x9b\xc8\x45\x7e\x07\xab\xe7\xed\xc7\xe3\x67\xed\xbb\x5b\xd0\x6e\x60\x61\x48\xeb\x6d\xec\x2c\xfb\xb9\xca\xc6\xde\xc8\x1b\x43\xb5\x0f\x9e\xb4\x3c\xa8\xab\x39\xa1\x26\x74\x7b\xc0\xd6\x94\x47\x0e\xd0\xad\x38\x23\x04\xa2\xef\xdf\xcd\x3d\x28\xb9\xb5\x86\xdc\xba\xf4\xa5\x71\xb1\x69\x2e\x00\xe5\x69\xf7\x85\x61\x9b\xdc\x6e\xaa\x38\xfb\x2e\xce\x82\xc2\xb3\xe3\x20\x2a\xbc\xdd\x49\xe5\x2e\xdd\xcf\xa3\x2a\xf1\x27\x70\x29\x8d\x25\xb2\x7e\xe6\x56\xb8\x90\x5d\xc6\x55\x86\x0f\x5f\x6c\xf1\xe1\x6e\x31\x39\xd0\xf1\x65\x70\x35\x19\xeb\x5d\x89\xe0\x97\x53\x65\x1e\x4d\xd3\x64\x22\xb0\xc1\x25\x7f\x0f\xf7\xd9\x1d\xb7\xe9\x93\xaa\xe5\xe8\x7d\x2a\xb7\x3f\xaf\xdc\x8d\x89\x2c\x9b\x8a\x97\xfc\xca\xbb\xf9\xa4\x72\x5b\x93\xd8\x26\x93\x56\x66\xa0\xeb\xec\x4c\x90\x62\xca\x17\x73\x28\x1a\x90\x84\x5a\x36\xb6\x2c\x45\x0d\x3b\x3b\xe3\x19\x3b\xa8\x8d\xb2\x2c\x99\xcb\x7b\xf7\x67\xa3\x6b\x28\xe5\x89\x65\x21\x0b\x2c\x9b\xf0\xe7\x98\x2b\x75\x70\xff\x89\x8f\xba\x13\xea\xaa\x5f\x0f\x2b\x8d\xff\xc6\xa0\x6e\xd0\xea\x54\xd8\xec\x53\xe3\x1c\x9d\x1b\xa7\x4b\xd0\xb4\xb0\x76\xff\x0f\x32\x8d\xf3\xee\xdc\x28\x4e\x8d\x73\x72\x6e\x58\xdc\x0e\x20\xd0\xc1\xd2\xf8\x3b\x7f\x98\xd7\xfc\x55\x2e\x47\x50\xd1\x66\xd9\xd9\xd4\xe5\x79\x13\xa4\xac\x24\x36\xbe\xf4\xaf\x84\x52\x5a\xb6\xf4\x08\x8e\x71\x8e\x6c\x24\xb5\xf4\x93\xfb\xb9\x44\xe5\x47\xaf\x2c\x05\xb7\x27\x32\xd2\xb9\xd7\x61\x76\x67\x5f\x12\x9b\xda\xfd\x55\xc9\xec\xa6\x14\x7d\x45\x5c\x8a\x3b\x28\x9c\x2a\x97\x95\xf4\xa7\x32\x74\xc4\xdc\x3b\x52\xe1\x1d\xa9\x8d\xb9\xf8\x2a\xb7\xbb\xc4\x57\x25\xbd\xc4\x57\x22\xae\xeb\x2d\x19\x95\xf5\x66\x65\xed\x78\x15\x74\x76\xc6\x07\xf6\x4f\xcd\xdf\xc8\x60\x84\x9b\xf3\x73\xab\x2b\xc9\x65\xc3\x03\x59\xde\x2f\x3c\xbe\x84\x97\xdd\x95\xfc\x7b\xe9\x5d\x99\x96\xcd\x3f\x95\xde\x3e\xe6\xfa\x64\x02\x8b\xc7\x5a\xab\x16\x2f\x40\xfb\xfb\xba\xa1\xae\xb2\x75\x42\x50\x4f\x38\x9c\x37\x3c\xfa\xfd\xfb\xe5\xd5\x09\x1b\xad\x13\x9a\x18\x06\x8f\xe7\x0a\x42\xef\xca\x69\xb1\x2c\x52\xa9\x2f\xcf\x28\x4c\x3e\x78\x3e\x29\x67\x65\x5f\x46\x41\x64\xe7\x7e\x74\x25\xc7\x4f\x65\x8a\x64\xd8\xb2\xa4\xd2\xf6\xe5\xa1\x47\x79\xde\xcb\x9f\x94\x4f\xf5\x96\xfd\xa4\x37\x2d\x7b\xde\xe6\xc9\xff\x0b\x00\x00\xff\xff\x3f\x58\x71\x2d\xb7\xbf\x00\x00") +var _distAssetsChunk5822a316edfa0fb871040a5Js = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xdc\x7d\x59\x73\xe3\x38\xb6\xe6\xbb\x7f\x85\x93\x0f\xbe\x64\x98\xa4\xb9\x6f\xd5\xcc\x9a\x9a\xee\xba\x11\x37\xe2\x76\x67\x47\x54\xdd\x27\x8f\xc3\x01\x91\x90\xc4\x34\x09\xb0\x00\xc8\x99\x4a\xa7\xe6\xb7\x4f\x60\x21\x45\x6f\xb2\x5d\x90\x99\x15\xf3\x62\xeb\x83\x08\xe2\x9c\x83\x83\xb3\x60\xd3\x2d\x20\xa7\xd7\xd7\xb0\x5b\x40\x72\x0d\x36\x0c\x5f\x37\x5d\x8f\x09\xbb\xbe\xfe\xc9\x34\xad\xf2\xe3\x1d\xff\x1e\xda\xc8\x66\x36\xb6\x3b\x9b\x94\x77\x61\x1c\xc6\x59\x61\x8a\xb2\xe1\x01\x5c\xde\x19\xee\x05\x58\x1a\x45\x94\x86\x99\x6f\x0b\xe0\x7e\xa6\x53\x4c\x8c\x22\x0f\xf3\x44\x01\xa7\xfe\x66\x14\x71\x9c\x79\xd1\x88\xc5\xf3\xd3\xa2\x9b\x2f\x46\xe1\x7b\x7e\xb4\xc7\xe2\x91\x69\x51\xbb\x35\x8a\x24\x8a\xa2\x78\xc4\xe2\x91\x69\x51\x07\x8c\x22\xf5\x82\xc0\x1b\xb1\x78\x64\x5a\xd4\x53\xa3\x08\x93\x38\x8c\x47\x2c\x1e\x99\x16\x51\x60\x14\x89\x17\x85\xde\x88\x65\x43\x93\x22\x86\x78\xc3\x7b\xda\x18\x52\xb4\x8c\x45\x02\xef\x85\xf0\xcd\x28\xfc\x34\x0a\x64\x13\x92\xfd\x11\x2f\xa0\x51\x44\x79\x10\x85\x12\x48\x59\x8e\x78\x65\x14\x7e\xe8\x47\xb9\x04\xb2\xe6\x88\x3b\xa3\x08\xb3\x20\x56\x40\x72\x32\x62\x64\x14\x51\x94\xe6\x9e\x04\xce\xa2\xe6\x3c\x78\x49\x3c\x62\xc5\xd6\x58\x24\x5b\x1e\xab\x60\xa3\x88\xc3\x54\xb5\x84\x65\x97\x8d\x98\x18\x45\x1a\xfb\x61\x26\x81\x14\xf3\x88\xf9\x6b\x42\x4f\x71\x27\x05\x3c\xe2\x0a\x18\x45\xec\x79\x52\x94\x95\x14\xed\x1e\x53\xa3\xc8\xbc\x38\x90\x9f\xc5\x77\x23\xbc\x35\x8a\x2c\xcc\x52\x5f\x02\xf9\xdd\x88\xb7\x46\x91\x26\x79\x2c\x5f\x22\x15\x63\xc4\x35\x30\x8a\x3c\x97\x4c\xd6\xb2\xc1\x11\x42\xa3\x08\xe2\x28\x4e\x25\x70\x00\x33\x8a\xd4\x8f\xa3\x3d\x96\xaf\x9a\x14\x55\x6b\xa3\x08\xc2\x5c\x8a\x41\x60\xf1\xc8\xa4\x48\xe2\xf1\xad\x82\x6e\x3f\x4d\x24\x50\x74\x2b\x0c\x5b\xa3\x08\x83\xd8\x0b\x25\x90\x1d\x38\x62\xe4\x80\x8d\x51\x84\x5e\xa6\x1e\xe6\x58\x3e\x32\x29\xe2\xf2\x8c\xbc\x40\x4a\x5e\x60\x29\xef\x49\xd1\x6a\x61\x14\x71\xe2\xe5\xf1\x88\xa5\xd4\x27\x45\x0d\xd7\x41\x3f\x8d\xb2\x11\xcb\xb7\x4c\x8b\x5a\xa3\x48\xb3\xd4\x4b\x47\x2c\x65\x33\x2d\x42\x46\x91\x47\x7e\xbe\xc7\x52\xda\x93\x22\xf4\xcd\x28\xc2\x30\x95\x3d\x23\xb0\xe4\x68\x52\x44\x57\x46\x11\xe4\x69\x98\x8c\x58\x4a\x74\x2c\xc2\x46\x11\xfa\x9e\x7a\x5e\x2a\xe6\x1e\x73\xaa\x93\x38\x0a\x24\x70\x6a\x6c\x14\x79\x90\x7a\xc9\x88\x25\x49\x93\xa2\xee\xab\xd0\xdd\xdc\x1b\xf1\xa0\xce\x63\xd1\x46\x98\xab\x34\x09\x47\xac\x2c\xd8\x58\x24\xc5\x35\x36\xcc\xb8\x52\x07\x81\xfc\x92\x29\x25\x1f\xf0\xc6\x28\xfc\x38\x4b\x22\x09\xe4\x90\x1e\xf0\x92\x77\x67\xe6\x49\x63\xb4\x54\x7d\x39\xe2\xc6\x28\x92\xd8\x97\x6d\x2e\x1b\x39\x7e\xf7\xb8\x35\x8a\x2c\xf3\x64\x6f\x2c\x55\xf7\xec\x0b\xb0\x51\x64\x79\xe2\x2b\x20\xbf\x1c\x31\x31\x8a\x2c\x48\x33\xf9\x59\xea\x94\xef\x4b\x35\x14\x58\x69\xc3\xa4\x68\x6d\x14\x7e\x10\x27\xde\x88\x25\x1f\xfb\x22\xd9\xc2\xf0\xd2\x2d\xff\x2e\x0d\x7d\x09\xd4\xb3\x0a\xaf\x80\x51\x84\x69\x1a\x25\x12\xc8\x0e\x1d\x71\x2d\xd4\x50\x1a\x8f\x55\x3d\xa8\xa5\xc2\x7c\xfc\x78\x69\x24\x5f\xa3\xc6\xcf\x88\x71\xe7\xd4\xf0\x96\x8f\xfe\x2c\xf1\x93\x69\x91\xd4\x81\x69\x69\x0b\x84\x4d\x4f\xfd\x2c\x9d\x16\x49\x11\x8f\xa5\x1b\xde\x19\x7e\x24\x3f\xab\xbe\x91\x70\x0d\x8d\x22\x09\x03\x3f\x94\x40\xd6\x1b\x71\xc3\x8d\x76\x20\x69\x5e\x37\xca\x88\x0f\x98\x70\xf7\x13\x05\xf2\x35\x44\xb9\xa3\x01\x73\x03\x10\xe4\x59\x2e\x81\x32\x10\x03\xde\x3a\xa0\x33\x0a\x2e\x29\x6f\xc4\x52\x77\x87\xa2\xa6\xe6\x7c\xe6\xd2\x4a\x36\xb5\xe2\x7b\xc0\x1c\x78\xbe\x94\x73\x23\x55\x78\x8f\x19\x1f\x95\x71\x9a\x4b\x20\x3a\x3c\x4b\x82\x70\x8f\x65\x07\xef\x8b\xd4\x40\x56\x55\x3e\x0b\x45\x0e\xa4\x85\xf9\x3c\x28\xf2\x80\x6f\xb9\xca\xc7\x99\xfc\xac\x46\x80\x84\x37\x5c\x19\xfc\x7c\x00\x6a\x74\x0f\xf8\xc6\x28\xd2\xc0\x97\xdd\x76\x73\x23\x79\x1d\x71\xc7\x35\x3a\x8e\x23\x09\x94\x86\x0f\x98\x9b\xa6\x24\x8c\x7d\x09\x24\xaf\x23\xc6\x46\x11\x05\x72\x00\xde\xc8\xa1\x31\xc2\x8d\x51\xe4\xbc\xaf\x24\x70\x6e\x3a\x62\x14\x49\x16\xcb\x98\x43\x16\xc8\xce\xde\x97\xc9\x97\x8f\x95\xb6\x46\x11\x78\x99\x1c\x07\x37\x52\xf5\x47\xdc\x2e\xb8\xc2\x46\x32\x6a\x68\x17\x4a\x81\x07\xcc\x6d\x57\x24\xfb\xaa\x55\x76\x6b\x80\x8c\x7b\x6a\x69\x6c\x5a\xa6\x1c\xb7\x82\xb7\x46\x11\x44\x71\xae\x80\x6c\x6f\xc0\x1d\xe4\xca\x95\x4b\xef\xd1\x41\xa5\x6c\x03\x6e\xb8\x34\x63\x69\xf1\xbb\x46\x49\x77\xc0\x37\xbc\xb3\x55\x3f\x74\x37\xaa\xf3\x07\xdc\x72\xcd\x49\xa4\x26\x74\xad\xd2\xa4\x01\x23\x3e\xd6\x13\xa9\xed\x1d\x52\x63\x7f\xc0\x84\xfb\xce\x50\xfa\x4e\x25\xca\x3d\xe6\x4f\x46\xa1\x34\xc3\x1d\x75\xba\xad\xe8\x51\xcf\x1f\xf1\xd0\xc9\x43\x91\x7c\xf9\x58\x85\xbb\xf3\x20\xf7\xe5\xcb\x94\x2f\x1f\xf1\xd6\x28\xe2\x68\xe0\x4e\xbe\x69\xc4\x68\x61\x14\x81\x1f\x49\xdd\x41\xb2\x5f\xf6\x18\x1a\x45\x9c\x87\xbe\x2f\x81\xac\x39\xe2\x56\x18\x05\x29\x51\xd4\x3a\x3c\xba\xcb\x7c\x15\x80\x0a\x2c\x69\xde\x17\x0d\x76\x44\x55\xe1\x66\x28\x4b\xbc\x40\x02\xa5\x5b\x0a\xe3\xca\x69\x51\x65\x14\xb1\x1f\x64\xc9\xbe\x40\x52\x30\x94\xf5\x40\x38\x62\x3f\x0a\x65\x04\x22\xf0\x20\x18\x55\xc4\x7d\x79\x1a\x27\xf2\x79\xe5\xc8\x47\x2c\x9c\x57\x12\xc8\xcf\x0e\x0f\xf5\xfc\x20\xf4\xe3\x11\xab\x1e\x1c\x8b\x94\x7b\x93\x35\x08\xe6\x3e\x29\x88\x43\x09\x94\x8f\x1a\x30\x37\xa0\x89\x74\x66\x44\x19\x50\x05\x29\xb7\xf3\x79\x98\xa6\x12\xa8\x28\x78\xc0\x3c\x4e\xcb\x13\xe9\xe2\xa9\x8a\xb0\x46\xdc\xf0\xb7\xe4\x61\x24\x81\x7a\xeb\x80\x6f\xb8\x64\xe2\x30\x90\x40\x49\x6a\xc0\xdc\x7d\x84\xbe\x1c\xb7\x54\xb9\x8f\x11\xff\xc1\x2d\x44\xea\x67\x12\x28\x8b\x31\x60\x6e\xb4\x33\xa9\x48\x94\x38\xd5\x96\xb4\x46\x11\x07\x9e\x54\x10\x55\x22\x1b\xdb\x17\xaa\xf8\x5c\xd5\x12\x96\xd8\x97\xea\x46\x95\xf1\x1d\xf1\xad\x51\xa4\x91\x8a\x17\xa8\x1c\xc3\x7b\xfc\x85\xdb\x88\x20\x4f\x24\x50\x36\x43\x61\xc6\xdd\x5d\x10\x64\xb1\x04\x2a\xd8\x19\x30\xe4\x76\x29\x91\x59\x1a\x83\xca\x4e\x8d\x58\x8c\x96\x4c\x86\x6a\x0c\x0e\xc3\x65\x28\x58\xf1\x90\x48\xda\x4b\xb6\x52\x11\x92\x82\x32\x24\x0e\x24\x01\x63\x3c\xac\xf0\x0d\xb7\x5a\x5e\x9e\x4b\xa0\xac\xd8\x80\x5b\xa7\x5f\xf3\x3c\xc9\x97\x41\x8a\xc0\x2a\x75\x1a\x8b\xd6\x3c\x54\x4d\x83\x4c\x21\x15\xbb\x0e\x05\x32\x11\x89\x3c\x09\x86\xc8\x4d\xe1\x6f\xdc\x2e\xe5\xb1\x1c\x17\xec\x9b\x32\x4c\xfb\x82\x8e\x3b\xf7\x28\x0d\x15\x1a\xa2\x80\x20\x97\x3e\x6c\x28\x92\x4a\x3c\x29\x55\x61\x81\xaa\xb9\x59\x39\x15\x77\x2f\x9e\x7a\xaf\xc0\xca\x06\x0e\x45\x37\x22\x3f\x4e\x14\x18\xf2\x65\x85\xf9\x08\x4b\x3c\x99\x2a\x6e\xd4\xf0\x1a\x31\x4f\x9e\x3d\x39\x0c\x36\xdf\x14\x85\x51\x9c\xc8\xa0\x4f\x95\xc8\xf7\xed\x0b\xd5\x88\x94\xb5\x6e\x1b\x6e\xa9\x7d\x69\x8c\x6f\x1b\x65\xb9\x15\xfe\xea\xf4\x14\x6e\x78\x94\x1c\x04\x69\x7e\xaf\x48\xf6\xe3\x50\xba\x15\x81\x74\x20\xf3\xb4\xed\x10\x45\x2b\xfc\x6d\x2d\x24\x90\xe5\x9e\x34\x62\x02\x2b\xdb\xbc\x2f\x5a\x73\x21\x78\x69\xe4\x8d\x58\xa5\x2a\xfb\xa2\x4e\x78\x62\xa9\x90\x02\x2a\x67\x3c\x96\xb0\x2f\xbc\x59\x2f\xc9\x46\xac\x28\xf1\x92\x6c\x77\xb2\xdc\xa0\x8a\x35\x18\x9d\x76\x26\xb4\xc4\x74\x05\x2a\x89\x09\xad\x13\x02\xd9\x86\xa0\x53\x66\x22\x6b\x37\x3e\xc4\xbf\xb9\x6b\x96\xe6\x07\xe6\x62\x13\xdb\xd0\x1a\xaa\x20\xf8\xe5\xf4\x57\x42\x30\x31\x8d\xbf\x03\x84\x30\x3b\x5d\x36\xa8\x3e\xed\x70\xbd\x69\xe1\xe9\x7f\x18\xe7\xf0\xdc\xf8\x0f\xc3\x3a\x61\x6b\x82\xbf\x9c\x22\xb7\xc2\x35\x2c\x8d\x7f\x7e\xfa\xc7\xff\xfc\xf7\xaf\xd7\xff\xfa\xf4\xfb\xf5\x7f\x7e\xfa\x9f\x7f\xfd\xc3\xb0\xd1\x4e\xb5\x8b\x2f\xe1\xd5\xae\x73\x6f\xe0\x96\x96\x43\xf3\xa6\x75\xa7\xbe\xfd\xb4\xf8\x0c\x2b\x26\xbe\x35\xb1\xb5\xb3\x3b\x97\x40\x8a\xdb\x5b\x58\x12\x1b\xba\xf0\x6b\x8f\x09\xa3\x65\x67\x77\x6e\x53\x97\x62\x4e\x66\x67\x87\x41\x90\x47\x05\x2c\x3f\xde\x19\x1b\x0a\x4f\x29\x23\x4d\xc5\x8c\x93\xfd\xe3\x04\xfe\xb1\x69\x08\x34\x8d\xff\x25\x26\x7c\x2e\x40\xdf\xb7\x4d\x05\x78\xcb\x86\xb5\xb3\x93\x20\x49\xc2\xb7\xd4\xaf\x70\xd7\x63\x04\x11\xe3\xb5\x7d\x2f\x0c\x93\x3f\x55\xfb\x62\x0d\xdb\x1e\x12\xf1\x92\x24\x08\xe3\x3f\xf7\x12\x06\xbb\xbe\x05\x0c\x3a\x18\xb5\x5b\xc1\x8e\x9f\x78\x6f\x62\xa7\x86\x8b\xcd\x8a\xd7\x0c\x7d\x3f\xf4\xde\x56\x93\x32\x82\xb7\x60\xd1\x42\xd1\x72\xea\x07\x6f\xa9\xbe\xe7\x3f\x08\xd3\xf4\x2d\x35\x3b\x5c\x37\xcb\x46\xd6\x8d\xa2\xd4\x7f\x4b\x5d\x2c\x54\x4c\xb4\x1a\x25\xc9\x9b\xba\x4e\x56\xbd\x68\x10\x83\x04\x81\x96\xf2\x97\xa4\x7e\x10\xbc\x49\xdc\x64\x83\x5a\x8c\x7b\x5e\x37\x0b\xd2\xb7\x75\x3b\x85\xe4\xb6\xa9\x84\xb0\x83\x34\x4f\xdf\xd4\x59\x83\xa2\x08\x7d\xf3\xa3\xe4\x4d\x0d\x8f\x5a\xb6\x04\x15\xc3\x44\x28\x5a\x18\xf8\xd9\x9b\xc4\xc7\x20\x65\xce\x17\xd0\x30\x48\xa4\xe8\xc2\xe4\x0d\xfa\x46\x70\x53\x43\x72\xb1\x61\x4d\x2b\xba\x3d\xcb\xe2\x57\xb2\xb0\x6a\x9b\xae\x7b\x38\x6e\x73\x2f\x4a\x5f\xd9\x6f\x43\x7d\x46\x40\x75\xd3\xa0\x95\xd4\xba\xc0\x7f\xa5\xca\x3e\xac\x7e\xd1\x93\xa6\x6b\x58\x73\x0b\xe9\x45\x05\xaa\xb5\xec\x91\xc8\xcf\x5f\xa7\xc6\x42\x96\xce\x0a\x32\xa7\xc2\x68\xd9\x08\x6a\xd2\x38\xce\x5f\xd7\x15\x82\x08\x58\x3b\x1d\xe8\xa9\x03\x50\xed\x50\xc8\x44\x67\x64\x7e\x98\xc7\x93\x09\xee\x7d\xdd\x89\x95\x16\xd3\xe2\xe5\x35\x04\xcd\x75\x6d\x23\xf9\x81\xec\x5d\x0d\xe6\x5e\x44\x59\x72\x78\x76\x06\xdd\xeb\x6b\x48\xff\x29\x5c\xc5\xcf\xb0\x50\xb6\x1d\x50\xda\xac\x90\x79\x57\xc3\x25\xd8\xb4\xac\x80\x3b\x1b\x5a\xbb\x2f\x0d\xaa\xf1\x17\x57\x30\xf7\xcb\x86\xe1\xff\x12\xf3\xf1\xff\xd8\x22\xd0\x35\xd5\x9e\x84\xfd\xfb\xfd\xb2\x2c\x01\x59\x6d\x3a\x88\x18\x75\x5b\x88\x56\x6c\xfd\x33\x32\x0d\x49\xdc\x16\x5d\x1b\xe7\xd0\x2a\x26\x05\x4c\x94\x98\xbf\x10\x02\xb6\x6e\x4f\x30\xc3\x6c\xdb\x43\x97\xb6\x4d\x05\xdd\x0a\xb4\xad\x39\xbe\xce\xf6\x2d\x6b\x67\x3f\x4d\xd2\x6f\x5b\xf4\x24\x3d\x43\x4b\x74\x8b\xaa\xb7\xb6\xc4\xb5\x64\x0d\xe8\xba\xa9\x30\xe9\xb9\x55\x6d\x56\xc8\xa1\x5b\xca\x60\xe7\x8c\x4a\x4b\x2f\x26\x1f\xd7\x35\xbd\x00\x55\x85\x49\xdd\x60\x74\xd1\xa0\x1a\x7e\x35\xec\xcb\xa7\x54\xdd\xbe\x6f\xe6\xed\x67\x6d\x99\xfd\xd8\xbd\xd9\xcf\x0e\xff\x2b\xdb\x7c\xec\xbc\xb1\xc9\xcc\xc4\x4f\xb3\xdc\xb2\x76\x96\xa5\xcf\x15\x83\xdd\xc5\x62\xc3\x18\x46\x2f\xf1\xa6\x6c\xfa\x71\x58\x08\xc2\x34\x8b\x8f\xc8\xc2\x5f\xa8\x77\x72\x2f\xf0\xf4\x58\x6b\x21\x61\xfc\xe9\x8a\x34\xbd\x08\xa0\x38\x5f\x87\x63\x92\xe3\x90\xee\x7b\xb1\xaf\xa7\x58\x82\xf4\x57\x75\xc6\x43\x75\x7a\x45\xe7\x3c\xf2\x11\x47\xe2\x3a\xf6\x3d\x5f\x9f\x6b\xd6\xb0\x16\xbe\xc4\xb5\xde\xb8\x4f\xd3\x58\x8f\xd0\xbe\x77\x96\x18\x33\x41\x48\xbf\x25\xcd\x6a\xcd\xde\x95\x62\x3f\x89\x23\x3d\x85\xda\x53\xfc\x2a\xad\xd2\xa2\x36\x8d\xd2\xcc\x3b\x16\xb5\x0c\x76\xb3\x8d\xdb\x28\x38\x96\x90\x5b\xb8\x02\xad\xd3\x36\xe8\x86\xbe\xab\xa8\x23\xdf\xf3\xc3\x63\xd1\xdc\xa0\x9b\xd9\x44\x1d\x27\x7e\x90\x1c\x89\x70\xca\x00\xdb\x50\x67\xa4\xff\x80\xb0\xc7\xc4\xe2\x39\x7b\xa9\xe7\xb2\xfc\x30\x89\xb4\x99\x22\xa0\x83\x33\x8c\xd2\xd8\x0b\x7d\xfd\x1e\x10\xc4\xf6\x80\x30\x7a\x21\x7b\x63\x3e\x27\x1b\xc7\xe1\x91\x84\x2d\xe9\x5f\x43\x50\xcf\x48\x7f\x1c\x87\x71\x70\x4c\xfa\x3b\xd0\xcc\x18\xe2\xe4\x61\x7e\x5c\xea\x71\x2d\xc2\x93\xb9\x4c\x7d\x1a\x78\xe9\x31\xe9\xa7\x4d\x0d\x17\x60\x3e\xf5\x49\x33\xcf\xd7\x66\x40\xaa\xfc\xc5\x1a\x77\xf0\x55\xe6\xf3\xa8\xc6\x32\xf7\x52\x6d\x0d\x52\x0c\xfc\xa9\x48\xf9\x6d\xa1\xf1\x74\xfe\xf0\x48\x43\xc8\x0f\x72\xed\x30\x49\x09\xa0\x83\x68\xe3\xfc\x80\xfc\x33\x4f\x3c\x2f\xd3\xe4\x61\x98\xdf\x76\xb8\x1f\x87\x17\x0b\x5c\x6f\xe7\x1b\x45\x51\xa0\x1d\x58\x3f\xa0\x7f\x66\x37\x98\xa7\x7e\xaa\xeb\x06\x1f\x70\x30\x71\x84\xef\x96\x82\xf9\xd9\xb1\xf5\xe6\xcf\x4c\x5d\x68\x66\xf9\x41\xa8\x1b\x7b\x3f\xe0\xa1\x83\x75\x03\xe6\xf3\x81\x71\x1a\x69\xe5\xc1\x0b\x50\xaf\xa0\x53\xe1\x0d\x7a\xe5\x64\xc5\x51\xc5\x1f\x47\x5a\xd3\x43\x82\xf8\xf9\xc9\x4e\x23\x3f\xd1\xf2\xdb\x0b\x02\x41\x5d\x91\x4d\xb7\x98\x21\x49\xf0\xe3\x34\xd0\xf2\x51\x53\x6a\x87\x54\xfe\x87\xe5\x67\x59\x1e\x07\x7a\x0a\xbf\xe7\x86\x91\x0d\x52\xeb\xb2\xef\x9a\xe0\x07\x91\x5e\x98\x27\x83\x02\x87\xc2\xe9\x10\x9d\xc3\xba\x04\x61\xa2\x17\xdf\x49\xca\xe7\x1f\xa1\x49\x14\xe9\x25\xc6\x15\x20\xf5\x45\x85\x11\x03\x0d\x7a\xd9\x8f\x1e\x93\xf4\x38\x8d\x42\x2d\xb7\x5a\xe1\x1a\x3a\x8b\x16\x57\x37\x62\x66\x73\x1a\x52\xce\xa1\x33\x59\x10\x44\xc7\xa2\xff\x47\x4c\xfc\x27\x59\x9c\x1e\x8b\xfe\x37\xe6\x34\x87\x32\x97\x7b\x0a\x36\xac\xe9\x1f\xb0\xb9\xef\xb5\xde\x16\xe6\x99\x56\xa8\x3a\x91\xce\xfb\xaf\x12\xa4\x61\x96\xe8\x99\x01\xdc\x6f\xff\x9c\x11\x7b\xbe\x2f\x8f\x9b\xbc\x79\xda\xda\xda\x6f\x2f\x28\x6a\xfa\x1e\xbe\x35\x00\x9c\x89\xc5\x2c\xc9\x13\xad\x18\xbd\x6e\x40\x8b\x57\xce\xb8\x0d\x62\xde\xf4\x34\x89\x92\x58\xcb\xfb\x3f\x22\xff\x47\x58\xc5\x30\x0c\x82\xe3\x72\x31\xc9\xb1\xdf\x6d\xf8\x67\x51\xae\x65\xac\x1e\x11\x3d\x43\x5a\x1d\xfa\xb1\xde\x8e\x86\x47\x44\xe3\x5b\x48\x5a\x30\x9f\xc6\x47\x71\x9c\x69\x85\xe8\x8f\x38\xf8\x42\x40\xdf\xcf\x38\x21\x93\x06\xb1\xde\x84\x4c\xdd\xd0\xaa\xc5\x74\x43\xe0\x84\x8b\x17\xac\xeb\xeb\xcd\xe9\x23\xf7\xaf\x99\x9e\x78\xa1\x56\x16\x5e\x37\xb4\x6b\x28\x75\xde\xe2\x27\xf5\x9c\x5e\x16\x6b\x25\xb4\x35\xc1\x7d\x8d\xbf\xa0\xb9\xe7\xf9\x82\xcc\x4f\xf4\x06\xc6\x40\xf8\xcc\xeb\x5c\x61\x96\xe8\xed\xb6\x18\x09\x3f\xc6\x7e\x18\xcd\xd9\x10\x5f\xd3\x91\x0d\xac\xb4\x0d\x65\x8e\xd8\x71\x55\xad\x61\x75\xb3\xc0\xaf\xe4\xeb\xf8\x31\x79\x1a\x87\xc7\x19\x0f\x0f\x58\xea\x00\x79\x71\x39\x49\x2f\xd7\xcd\x7c\x4f\x2b\x3e\x7f\x8a\x72\x9e\xf3\xbe\x66\x9e\xea\x98\x5a\x15\x04\x71\xa6\x15\x86\x3f\xc1\xc8\xc3\x30\x6f\xae\xf9\x87\x28\x88\xf5\xc2\xed\xc7\xac\xac\x20\x82\xa4\xa9\x66\x5c\x58\x4d\xf4\xb2\xa2\x27\x78\x10\xa3\x16\x54\xdc\x93\xcf\x3a\x93\x75\x64\x36\x08\xa8\x1b\xfc\x83\x0c\x95\x9f\xa7\xc9\xb1\x0d\x15\x85\x3d\x20\x80\xe1\xf9\x9c\x61\x92\x79\x7a\x53\x20\x4f\x70\xf1\xaa\xa9\x90\x63\xaa\x55\x94\x25\x7a\x73\xd2\x23\x13\x0c\xaf\x56\x2d\x7c\xe5\xc6\xe9\x79\xb6\x1d\xc7\x41\x98\x1e\xc7\x84\x29\xe6\xaa\x35\xbc\x25\x33\x66\xdb\x69\x10\xea\x6d\x2b\x78\xc8\x40\x53\xbd\x7d\x53\xc1\x2b\xe6\x79\xf4\x7a\x29\xc9\xf4\xac\xc1\xb2\xdd\xe2\x0d\xdb\xcf\xe6\xcc\x65\x91\x63\x4d\x5f\xaf\xe8\xfe\x41\xfe\x3d\xcf\xa2\x40\xcb\x7c\x29\xf2\x5f\x37\x7f\x73\xd4\xa5\xbf\x24\xf5\xb5\x12\x55\x45\xf9\xeb\x26\x71\x8e\x1a\x1e\x26\x51\x70\x0c\xca\x8f\x36\x83\xf0\x6a\x3b\x7c\xef\x0c\xdd\x63\x61\xbc\xcf\x0a\x52\xa6\xb9\xc4\xbb\xc4\x84\x67\x30\x80\x87\x6b\x90\xbc\x65\x73\x83\x66\x60\x90\xea\x6d\x67\x50\x74\xcb\x64\xf2\x62\x01\x28\x9c\xf1\xb8\x4b\x12\x6a\xad\xf4\xde\xa7\x7d\xd9\xc0\xb6\x9e\x71\x23\xa8\xe6\xa9\x95\xfb\xc4\xaf\x08\xde\xf4\xf3\x4d\x0a\x25\x9a\xb3\x59\x82\x78\x48\x08\x9e\xe3\x5c\x48\xe6\x69\x6e\x55\x9b\x50\xdb\x41\x4a\xc1\x6a\x3e\x1d\x4f\xd2\x5c\x2b\x2a\x14\xa4\x0b\xcd\xd6\x38\x63\x77\xd8\xe8\x3e\x6f\xc1\x8f\x3b\xe7\x1b\x87\xd9\xb1\x64\x41\x5f\xbb\x6e\xf8\x57\xe2\x3f\x4d\x32\xbd\x73\x42\x8a\xff\x16\x3a\x0d\xea\x79\x10\x3a\xa7\xb1\x8e\x02\xcd\x45\xdf\x87\xd4\xcf\x6b\xae\xfd\xd0\x8b\xf5\xfd\xa4\xbc\xcd\xc1\x61\xf0\xeb\x1c\xbe\xdd\x8f\xd3\x48\xdf\x4a\x37\xa8\x6e\x2a\xc0\x66\xb2\xd4\xa9\x56\x82\x2f\x08\x6e\xc1\x02\xb6\x73\x84\x4e\x41\xea\xeb\x8b\xb7\x85\x2b\x88\x5e\x69\x9c\xf5\x72\xa8\x38\xd3\x3b\xb2\x2d\xc8\xed\x00\xbd\x81\xf5\x43\x03\xa2\x19\xd9\xbf\xd7\x1a\x43\x14\x87\xfa\x21\xd6\x3d\x8e\xe7\x35\x3a\x71\xac\xb9\x71\x49\x30\x20\x66\x4f\x1d\xb1\x39\xf0\x47\xec\xc2\x88\xc3\xc0\x3f\x2a\x13\xf3\x86\xba\x51\xe2\xc7\xfa\x5e\x77\x42\xfe\xfc\xfb\x4a\xc3\xf0\x08\x71\xc3\x84\x03\x61\x60\x67\x3c\x6f\xe9\xe9\xed\x87\xdb\x93\x3f\x73\x7a\x1a\xc5\x91\x7e\x7a\x2a\x09\x9f\xd7\xee\xa4\x49\x1c\x1e\x49\x63\x66\x1e\xad\x79\x1a\xe5\xfa\xca\x42\x61\xcb\xfd\xd1\x61\xf7\x76\x04\x6a\xc3\x24\xcc\xf5\x5d\xb2\xa2\x76\x5e\x15\xc9\x12\xdd\x19\x59\x41\xfa\x86\x87\xc3\x8a\x01\xb0\x64\x90\x38\x58\x78\xa7\xf9\x0e\xe4\xe6\x59\x92\x1e\xa1\x0f\xa6\x8c\x74\x9b\x96\x35\x7d\x0b\x5f\xa5\x40\xd3\x8b\xf6\xc6\xc2\xf1\xee\xb6\x89\x43\x78\xe2\x18\xe8\xb3\xc9\xfa\x3b\xad\x7e\x64\xb1\xa7\xb7\x69\xe3\x80\xac\xf6\xea\xfb\x6e\xc9\x45\x14\x06\xfa\xf3\x07\xf7\xa8\x97\xca\xea\xec\x6d\xdc\xfc\xeb\xd3\xa9\x9f\xeb\xed\x0d\x7a\xcc\x55\xdf\x82\x0a\xae\x71\x3b\xeb\x6e\xad\x38\x3d\xf6\x30\xa4\x0d\x5a\xfd\x7f\x38\x08\xc3\x38\x0e\xf4\xc3\x8a\xa7\x24\xf5\xfe\x43\xf0\x28\xb1\x34\x83\x5f\xd9\xab\x12\xd0\x77\x58\x87\x4c\xa2\x23\x4c\xda\x4f\x18\x78\x41\xe4\x33\x9d\x56\xf0\xd3\xfc\x08\x13\xe4\x9c\x2d\x40\x20\x98\x25\x6e\x3a\x42\x46\x33\xd2\x3b\x6f\xe4\x14\x44\xa1\xde\xfd\x31\x92\x78\xb5\x83\x65\xce\x84\x26\x48\xb2\xf4\x08\x62\x97\x94\xcf\x2b\xf4\x30\xd4\x3b\x13\x3a\xa5\x7c\xde\x8c\x26\x8e\xbd\x5c\xdf\xe4\xdc\x36\xb4\x59\x34\x6d\xc3\xb6\xce\xb0\xbb\x66\xd6\x43\xb9\x49\x90\x7a\x5a\xb1\x57\x53\x61\xe4\xb0\xa6\xfd\x01\x27\xe7\xc3\xc8\xd3\xdb\xf0\xcb\x69\x7f\xcb\x72\xd3\x53\x31\xe2\x51\x27\x84\xbc\x50\xef\xb4\xeb\x64\x5b\xe9\x9f\x5b\x46\xd3\x33\x43\x69\xaa\x77\xb6\xae\x6d\xd0\xcd\x45\x83\xda\x06\xcd\x1a\x3c\x84\x7e\xa6\x77\xbe\x5b\xd0\x4d\x19\x40\x35\x68\xf1\xbc\xb4\x27\xb9\xe6\x18\x10\x17\x05\xbd\xfa\x58\xd1\x03\x06\x7e\xd4\x29\xa3\x2c\x8c\x22\x3d\xae\x71\x0d\xda\xd9\x37\xfb\xe5\x49\xa6\x77\x47\x9a\x24\x7b\xfe\xcd\x72\x51\x1e\xe9\x25\x81\x92\xf0\xf9\xf7\xca\x65\x5e\xa8\x77\x67\xb0\x24\xfc\x2f\xb7\x55\xee\x80\x2c\x1e\x3f\xfc\x20\x70\x38\xb0\x8d\x3b\xd3\xbb\xbf\xa8\x07\x2b\x38\x5c\x40\x06\xaa\x79\xa7\x0b\x83\x50\x73\x12\x69\x4a\xbc\xb8\x0a\x68\x3e\xda\xb3\x40\x6f\x3d\x62\x4a\xfa\x0f\xb9\xde\x3a\x89\x93\xa3\x31\x30\x6f\xfc\x9b\x25\xb9\x7f\x34\xd2\xe9\x66\xb1\x3f\x7b\x31\x8b\xd2\xfb\xbe\xde\xde\x9d\x29\xf5\xf3\x92\x9e\x87\x7a\x17\xd3\xf4\x60\xd5\x20\x31\x31\x28\xbe\x01\xd5\xfb\x6d\x68\xd6\x4b\x13\xf3\x50\xef\x40\xf4\x84\xd1\x06\x2d\xf1\x0c\x1b\x52\xa2\x28\xf3\x74\xc7\xc4\x40\x32\x02\xb7\x17\x80\x10\xfc\xe5\x47\x1e\xd3\x4d\x82\x3c\xd5\x5a\x1e\x79\xc0\x10\x6c\xdb\xa6\xa7\xcd\x7c\x0e\x22\x0c\x63\x4f\x6b\x6a\xea\x01\x03\x68\xc3\x09\xf8\x91\x5d\x92\x79\x9e\xb6\xcf\x1b\x39\x12\xdc\xc0\x17\x77\x70\xfc\x18\x03\x90\x79\x99\x5e\xae\x32\xe1\x94\x36\xdf\xa0\x5a\x1b\x78\xed\xb6\xbf\x57\x47\x9c\x47\x9d\x0a\x08\xa3\x40\x6f\x2a\xa0\xc7\x3d\xbe\x85\xe4\x3d\x2e\xbc\x78\xe9\xfa\xab\xe7\x45\xa4\xb3\x1a\xa5\x27\xce\xd4\xd7\x1b\x2d\x04\xde\xc2\x97\xf3\x98\x39\xe7\xba\xf2\xd8\xd3\x0b\xbc\x14\x4b\x6f\x3a\x31\xaa\xe7\xc9\xb3\x58\xef\x76\x54\xd2\x54\x6b\x87\x61\xdc\xb2\xa6\xbf\x58\x6c\x16\x8b\x37\x9f\xd2\xfd\x61\x0a\x98\xfa\x59\xac\x65\xc4\xee\xf1\x3e\xbf\x1a\xea\x48\xf0\xc0\x36\x56\x4f\x6f\xd1\xf1\x9e\x50\xa4\x22\xcf\x7a\xf3\x6c\x96\xe8\x1d\x24\xa4\x70\xd5\x41\xc4\x60\x2d\x37\x5a\xcc\x9c\xba\x45\x89\xaf\x37\x5d\x31\x9e\xf6\xff\x01\x4b\x17\x49\xa2\xb7\x39\x84\x36\x35\x74\x78\x28\x37\xeb\x42\x63\x1c\x44\x7a\xd7\x79\x8c\x64\xff\xc8\x1f\x1a\x48\xbd\x48\xef\x78\xe2\x43\x2e\xc4\x1a\xd8\x9f\xba\xb3\x40\x8f\x8f\x20\xca\xb5\x72\xe8\x47\x7c\xcc\x3a\x7e\x7d\x3f\x3b\x12\xf9\x47\x0c\x0d\x8f\xed\x38\x83\x28\xd5\xdb\x54\x30\x32\xd9\x36\x94\x5d\x2c\x40\x75\xe3\xcc\xfa\xbb\x4c\x61\x1a\xe8\x6d\xe9\xb8\xcf\xc0\xbc\x2a\x16\xc6\x81\xde\xdd\xea\x0f\x88\x9f\xf3\xb7\xc7\x82\x38\xf5\xb4\x26\x2d\xee\xd3\x3e\xab\xd2\xe4\x61\x9c\x1d\xc7\x4f\x08\xda\xe7\x9d\x99\x0c\x63\xcd\xb0\x6e\x24\xbe\xc7\x84\xdd\xcb\xba\x66\x31\xab\x9e\xa7\x77\xe1\xc1\x43\xf2\x19\x20\x2b\xf8\xe2\xcf\x19\x0e\xbf\xee\x3c\xe3\x55\xbe\x51\xaa\xb7\x6c\x3f\x32\x2a\x43\xef\xb9\xef\x36\x0f\xf2\x44\xb3\xa3\x18\xec\x7b\xf1\x73\x77\xb0\xdf\x9f\x06\x9d\x75\xf7\x41\x1a\x86\x7a\x5d\xa0\x58\x60\x80\xde\xfc\x18\x16\xf2\x38\xd1\x3b\x52\xc3\x78\xb4\xa0\x79\x15\xe5\x7b\x5d\x8a\x14\x86\x7a\x59\x86\xe4\x8d\xbd\xb8\xf7\xf8\xa8\x1d\x92\x86\x7a\x9b\x19\x15\xd1\xeb\xbf\xc6\x3c\x57\x18\x66\xa9\xd6\x28\x1f\xd8\x71\x86\x1f\xee\xc0\xe4\x45\x63\xfc\x4e\x47\x1a\xb2\x54\x73\x7b\xef\x43\x5e\xd4\xdc\xc7\x5f\xe3\xa2\xb7\xc4\x4f\xf4\xce\xc3\x8e\xdc\xc9\x19\x7a\xf0\x8a\xf9\x3d\xbd\x6b\x2c\x34\x03\xfb\x44\x6f\x4a\x6f\xcf\xae\x96\x46\x1e\xf5\x6a\xac\x3c\xd6\x3b\x65\xa8\x78\x9a\xf7\x3e\xaf\x34\xd2\xbb\xe1\x9c\x81\x05\x9d\x6f\x79\x44\x4f\xe9\x74\x7f\x10\x57\xf0\xda\x03\xa4\xce\x39\xff\x29\x8d\x3b\xf2\xa6\x57\xcd\x63\x5e\x82\x23\x06\x16\x7f\x11\x7e\x12\x5f\x73\x61\x96\x81\xd5\xfc\xf3\xa9\x51\x1e\xea\xcd\x25\x89\x9b\x5f\x66\xbf\xfc\x31\xf4\xf5\x26\x22\x05\xd5\x15\xae\x67\x5d\x36\xc8\x22\x5f\x2f\x6f\x11\x54\xd7\x0d\xed\x87\xdf\x91\x98\x6b\xd2\x3d\x4d\x35\x8d\xcf\xab\xaf\x07\x3a\xea\x34\x6f\x12\xe9\xed\xae\x63\x18\xcc\x3e\xf3\x96\xa6\x59\xa0\x37\x20\x65\x68\xf8\xa6\xdf\x81\x38\xea\xbe\xad\x30\xd1\x9b\xb8\xdd\x3e\xb8\xdb\x6d\x9e\x25\xb1\xec\x8d\xfb\x01\xe5\xc5\x57\x82\x62\x31\xaf\xec\x30\xec\x74\xb8\x86\xcf\xfc\xf2\xb6\x7c\xfc\xa1\xc4\x0f\x9d\xd0\x79\x63\x3c\xf6\x14\x3d\x7f\x6c\x20\x79\xfa\x07\x67\x14\x39\xcf\x77\xa2\x1f\xbf\x71\x93\x41\x83\x28\x03\xa8\x82\x4e\x83\x1a\xd6\x80\xb6\xf9\xc6\xa9\x69\x31\xa8\x1d\xda\x93\x86\x09\x4b\x2b\xc8\x70\x56\x90\x39\x15\x46\xcb\xe6\x80\x00\xa2\x20\x7b\xe3\xec\xc2\xb0\x16\x2d\x45\x00\x50\xb5\xc6\x04\xd6\x4e\x8f\x69\xf3\x60\x4f\xaf\xfe\xd9\xe8\x03\x3b\x00\x73\x5f\x87\xec\xaa\x6d\xfa\x05\x06\xa4\x9e\x87\xdc\x38\xf3\xfc\xb7\xa9\xfd\x7d\x72\x09\x5c\x35\x94\x41\xe2\xc0\x5b\x31\xf0\x74\x68\x3e\x70\xd3\xb3\xff\xc6\xeb\x72\xee\x13\x39\xcd\x95\xdf\x5d\xa2\x41\xec\x4d\x26\xf6\x00\xa2\x62\xb7\xe0\x81\xcb\x6a\xfd\xc9\xa5\x23\x0b\x40\x61\x12\x39\x9f\xe9\xa1\x2a\xa1\x3f\x3d\x2d\x3f\x55\x98\x03\xc7\x67\xd2\x89\x35\xe1\x61\x4f\xd7\x10\x82\x0f\x52\x16\xf9\xd3\x9f\x4b\xdd\xd7\xb9\x00\x75\x8d\xd1\x05\xac\x1b\x76\xd1\x01\x56\xad\x17\x3c\x31\x82\xec\x20\xcd\x69\xee\xfb\xfe\xf3\x2f\x93\x69\x7f\x83\xd1\x85\x3c\x82\xe7\xa8\x83\x6c\x07\xf4\x36\x98\xfc\xe8\xf5\xe4\x7d\xdc\x02\x5f\x7c\x06\xb7\x40\xee\xe5\x9f\x7c\x3c\x48\x9e\x3f\x5d\x31\x7a\xf8\x3a\xb2\x59\x6c\xc5\x9f\x43\xaf\xf0\xd3\x60\xb2\x59\xb1\xda\x90\x5b\x58\x3b\x62\xff\xee\x41\xc1\x24\x49\xe2\xef\xd7\x7b\xea\xf0\x60\xc7\x07\x49\x12\x4f\x9e\xe5\xaf\x07\x07\x89\x0a\xfc\xcc\xcb\xef\xd5\xf8\xda\xbc\x40\x4e\x3e\xb1\x07\x75\xe8\x2c\x31\xe9\xc0\x41\xd9\x05\x41\xec\xdd\xab\x42\x2b\xd0\x1e\xec\xbc\x24\xca\x27\xb7\x0c\xf2\x1a\x43\xf7\x1f\x14\x70\x98\x4c\xd2\x2b\x5e\x6b\x0d\xfa\x83\xed\x84\x51\x3e\x09\x44\xea\xd0\x61\x4d\x07\x5f\xc1\x51\x18\xf9\xf7\xfa\xc4\x61\x04\xa0\xd1\x89\x1c\x38\x50\x18\x4f\x72\x92\x1a\x77\xfd\x86\x34\xcb\x83\xfd\x93\x25\x59\xb0\x57\x9a\x7a\x43\xe4\x2f\x98\xbf\x30\xfe\xd3\x68\x72\x7c\x5a\x7a\x54\xd8\xc2\x0e\x22\xe6\x48\xb7\x3e\xc6\x02\xaa\xf8\xa9\x08\xe0\x89\xb8\xe9\x99\x18\x45\x42\x82\x9b\x1a\x92\x8b\x0d\x6b\xda\x03\x09\x8e\x1f\x4d\xb6\xec\x4b\xd2\x96\xb8\xda\x50\x2e\xc2\x7e\x62\x96\xf7\x85\xee\xe7\x69\xbc\x34\xda\xe0\xe7\x9b\xc8\xf3\x89\x1a\xc8\x26\xf6\x96\xfb\x7d\xfc\x8f\x1f\xfa\x0f\x9b\xa4\x0c\x90\x15\x60\x70\x1a\xbb\xca\x55\xbf\xe7\x84\xfd\xba\x15\xc0\x67\xa6\x8e\x9e\xf4\x44\x4f\xed\xd5\x7b\x38\x5b\x75\x31\x6e\x03\xa6\x17\x15\xa8\xd6\x93\xea\x0f\x7b\xfb\x49\x91\x3d\xbf\xd0\x72\x20\xfe\x8f\x32\xef\xd5\xe2\x72\x26\x8b\xa4\x6f\x93\xda\xc3\xc9\x9b\x47\x52\x7c\x90\xd4\xbc\x61\x21\x38\x0b\x27\xb6\xfc\x01\x07\xaa\x19\x7a\xe1\x3c\xea\xef\x97\x28\xd8\x77\xab\x90\x22\xac\x9d\x0e\xf4\x3c\x54\xad\x1d\xca\x1d\xe8\x81\x68\x7c\x12\x0b\x2f\x37\x14\xba\x87\x4d\x44\x1a\x66\x93\x5b\x67\x1b\xea\x88\xe8\xe7\x79\x57\x1f\x46\x93\xb3\x9e\x2d\xae\x01\x5d\xbb\x62\xba\x8c\xbe\xc2\x2e\x07\x71\xf8\xb8\x32\x85\x7f\x6c\x84\x6c\x9e\xe7\x29\x49\x26\x67\x65\x5a\xb2\xb9\xee\xc0\x41\x2a\x53\x6f\xb2\x89\xb8\x03\xe4\x06\x1e\x8c\x79\x92\x74\xe2\xfa\x3a\xac\xec\xe0\x81\xb9\x02\x7f\x22\x03\xf9\xbc\x70\x18\xdf\xf0\x0b\xa1\x48\x30\x39\xe0\x8b\xb0\x53\xc9\x6d\x85\xcf\x0b\x3b\xce\xd2\xbd\x72\xf5\x04\xf7\x0e\xdb\xf6\xf0\x70\x7f\x66\xc9\x64\xc1\x5e\x64\x75\x0e\x65\x44\xcc\x46\x1f\x68\x29\x8b\xbd\xbd\x16\x30\xc8\xd6\x87\x63\xd1\xc0\x4f\x27\x3f\x2f\x28\xae\xf4\x81\x88\x07\x43\xc4\x69\x65\xfe\x76\x40\x08\xfe\xb4\xa9\x86\xb5\xf0\x45\x41\x64\x49\x38\xd9\x44\xfb\x95\x32\x70\xb8\x8d\x30\x99\xdc\xd4\xf6\x95\x41\xd2\x39\x22\x7a\x74\x96\xcd\xc1\x9e\xcd\x93\x68\x72\xa2\xe2\x1a\x82\xe6\xba\xde\xa2\x6b\xf1\x86\xe7\xea\x31\x17\x9a\x69\x96\x5a\x2e\x5b\x43\x64\x32\x97\xb9\x8b\x06\xd5\x26\xb3\xd3\x2c\xb5\xd5\x69\xd9\x9d\x69\xed\x6c\x3f\x4f\x7d\xaf\x18\x5f\x00\x6d\x64\xdd\x7d\x69\x50\x8d\xbf\xb8\xa2\x25\x52\x12\xf8\xc7\xa6\x21\xd0\x9e\x96\xd6\x65\x0d\x97\x0d\x82\x3b\x3b\x4a\x83\x28\x2f\x78\x3d\x9b\x59\xe5\xc7\x3b\xe8\xc2\xaf\xdc\xae\xd0\x72\x42\xd4\x2d\x20\xa7\xb0\x94\x35\x6d\x24\x3f\x90\x93\xe1\x81\x53\x6c\xc2\x91\x70\x78\x76\x06\xdd\xeb\x6b\x48\xff\x89\xeb\x4d\x0b\x7f\x86\xc5\x27\x61\x26\x5d\x40\x79\xae\x64\xde\xd5\x70\x09\x36\x2d\x2b\xe0\xce\x86\xd6\x4e\x11\x25\xcc\xd3\x2f\x1b\x86\xff\xab\xe3\x8d\xff\x63\x8b\x40\xd7\x54\x7b\x12\xf6\xef\xf7\xcb\xb2\x04\x64\xb5\xe1\xc3\x83\xba\x2d\x44\x2b\xb6\xfe\x19\x4d\xc4\x6a\x9c\x43\xab\x98\x14\x30\x51\x62\xfe\xc2\x43\x55\xb7\x27\x98\x61\xae\xed\x2e\x6d\x9b\x0a\xba\x15\x68\x5b\x73\x7c\x9d\xcd\x95\xcf\x7e\x9a\xa4\xdf\xb6\xe8\x49\x7a\x86\x96\xe8\x16\x55\x6f\x6d\x89\xe7\x67\x5f\xa1\x53\x61\x72\x58\x4f\xb3\x2c\xc9\xa7\x71\xdd\x18\x6d\x0d\x27\x86\x31\x79\x21\xf9\x09\xe2\xe8\x81\x3b\xf9\x63\x83\x1a\x26\xcf\xaa\xb7\x58\x9d\xed\x7f\x5e\xf3\xf3\xe9\x59\x7c\x51\xf5\xe0\x60\xf4\xc6\xed\xdd\x3c\x24\x0b\xf3\x58\xe8\xea\xce\xa6\xe5\xdd\x6e\xaf\x36\x15\x17\x23\x57\x2d\x54\xd2\x4b\x78\x75\xd2\x2c\xcd\x5b\xdc\xd4\xa7\xde\x87\xb2\x44\xd6\x20\xdf\x41\x1f\x4f\xf8\x93\x4c\x3c\x59\xde\x35\x75\x01\x6d\x41\x77\x5d\x7c\xf0\x6d\xf5\x48\x71\xb7\xdb\x9d\xa8\x7a\xe4\x12\x5e\x49\xa1\xb3\xe1\x0d\x36\xb3\xf7\x9f\x2b\xcb\x66\xae\x7c\x43\xf9\xc1\xdb\x7f\xb1\xab\xdc\xae\x24\x36\x2c\x2f\xaf\xec\xca\xfd\x54\x9a\xc8\x66\x36\xb6\x3b\x3e\x36\x9a\xa5\xf9\x81\x49\x92\x49\xe9\x5f\x78\x27\x4b\x4c\x4c\x50\x7a\x3f\x81\xbf\x41\xa5\x8a\x3f\x81\xf3\x73\xeb\x8e\x97\xdf\x02\x72\x29\x6a\x5e\x95\xf0\x12\x5c\xd9\x94\x37\xd3\x97\xde\x4f\xfd\xdf\xd8\xf0\x70\x7f\x7e\x6e\x99\x1f\xfc\xb3\xee\xfb\x77\xf2\xb1\xec\xac\xb3\x33\x35\x58\x6e\xe0\x96\x9a\x95\xfb\xc9\x72\xe1\x2d\x24\x5b\xd3\x84\xe5\xc7\xca\xfd\x74\x09\xaf\x4c\x76\xd9\x5f\x59\x96\xf5\x33\x73\x29\x0f\x97\xa0\xd9\x3b\x8e\xed\x5b\x85\x49\xcb\x0f\xbe\xdd\xfd\x8d\x9c\x9d\x99\xa4\xec\x2c\x8b\xcb\x93\x5a\x77\x70\x78\x0e\x88\xe7\x84\x18\x9b\x12\x9b\xd6\xc9\x28\xec\xe6\xec\xcc\x44\x65\x63\xed\x76\x83\xd0\x77\x5d\xd9\x7d\xff\x2e\x19\xe4\x15\x40\xb9\x67\xf0\xa3\x77\x76\x06\x2f\x81\xe3\x5f\x5d\x06\x57\x1f\xbb\x9f\x80\xe3\x58\x9c\xc3\x52\x16\x9e\x88\xcf\x8a\xf5\x9d\x5d\xb9\xa8\x84\xe5\x47\xd5\xcf\x0f\xad\x83\x69\x95\x1f\xa1\x3b\x98\x04\x81\x86\x0e\xac\xdc\xda\x44\xf6\x1d\x28\xd0\xce\xb2\xd1\xce\x66\xa5\x92\xcd\x0a\xb2\x7f\x0f\x83\xeb\xd3\xf2\x67\x58\x7e\x7c\xf2\x0b\x13\x5a\x05\xe4\x6f\xbf\xbe\x16\x63\xf1\xfa\xda\xae\x5c\x36\x19\xc2\x36\xb6\x78\x8f\xfa\x67\xf8\xec\xcc\x84\x25\x5b\x37\xd4\x84\x96\x65\x67\x67\x78\x50\x3e\xc8\x65\x68\xa8\x38\xaf\x2c\xf9\x8b\xf1\x52\x98\x38\x51\x35\xe2\x55\xa7\xfc\xdc\xab\xe7\x27\xfc\x6b\x63\x68\x70\x52\x5f\x18\xf5\xf1\xd9\x1d\x17\x4d\x37\x70\x57\x11\x08\x18\x34\xd1\xa6\x6d\xad\x93\xca\x25\x66\x27\xbb\x8c\xf0\xa1\x83\x4a\xf4\xfd\xfb\x25\xff\xce\x66\xe6\xdd\x8e\x0f\xaf\xcb\x2b\xfe\x97\x59\x57\x63\x5f\xd1\x32\x10\x74\xfd\xf4\x88\x70\x7a\x76\xf6\xe1\xff\x22\x57\x4c\x6c\x7f\xe2\xca\xf1\x13\x2d\x99\x49\x2d\x6b\x2f\xc0\x4f\x5f\xd0\xbf\x09\xee\x21\x61\xdb\x7f\x81\x0e\x52\x93\x5a\xee\x12\x93\x5f\x41\xb5\x36\x4d\x54\x7e\x24\x97\xe8\xaa\x14\xfd\x74\x89\xae\x2c\x6b\x1c\x6d\x43\x1f\xca\xef\x6c\xde\x79\x9d\x4d\x2c\xbb\xe3\x1a\x50\x97\xc2\x2f\x95\x1f\x87\x81\x71\xca\x4e\x1b\x74\x8a\xac\xca\xc5\x7c\x7c\x59\x67\x67\x1f\xf8\x47\x28\x3e\x2a\x62\xa4\x83\x1a\x88\xe1\xdf\xd9\x77\x10\x6d\x3a\x48\x78\x12\x52\x7c\xf0\xec\x15\x64\x05\xba\x64\x57\x3b\x8b\x37\xb2\x2c\xef\xf8\x3f\xc8\xb5\xed\xdf\x04\x77\x0d\x85\x2e\x1f\xfe\xf7\x47\xd4\xd2\x72\x09\xac\x37\x15\x34\x4d\x53\x7a\x3c\x5e\x78\xc9\xae\x04\x85\x36\xb2\x2c\xfb\xf2\xca\xb2\xec\xca\xdd\xf0\x17\x19\xd5\x7a\x83\x6e\x5c\xe3\x1c\x9e\x1b\xae\x71\x7e\x17\x7b\x51\x61\xf8\x1e\x84\xb1\x17\x2c\xc2\x38\xcc\x62\x50\x05\x71\xb6\x0c\x0d\xee\x98\x0b\x23\x08\xab\x3c\xf7\x60\x55\xa5\x71\x15\x2c\xab\x60\xe9\xd5\x0b\x63\x77\x09\xaf\xce\x0d\x11\x31\x57\x6e\xd7\xa0\xe6\xef\x94\xfe\xa7\x18\x14\x9c\x60\x3c\x08\x47\x11\xba\x77\x1c\x6b\x40\x27\xdd\x21\x8d\x99\xa0\x12\x73\x56\xbb\xd2\xb8\xbe\x16\xb6\xfc\x1a\x6c\x18\xbe\x6e\x84\x9b\xba\xbe\x2e\x78\x2b\x6d\x29\x3d\xba\x4d\x94\xdd\xc2\x97\xf0\xca\xe2\x7f\xdc\x7e\x43\xd7\x26\xb2\x4e\x60\x4b\xa1\x18\x95\xd4\xee\xef\x99\x5e\x66\x0d\xbd\xd4\x94\x35\xae\x84\xc3\xe2\xaa\xf1\xab\x74\x3a\xf4\x7f\x6f\x7f\x07\x2b\xae\x1c\xa6\xa1\x26\xb6\x2c\x5b\x1a\xc1\xe6\x9e\x11\xe4\x6f\x58\x94\xcd\x25\x10\x96\x7d\xc1\x5f\xf1\x0b\x63\xa4\x59\x6c\x18\xaf\x4a\x2a\xc3\x2a\x4b\xf8\xfd\xfb\xc3\x6f\x6a\xc0\x80\xf3\x05\x2e\x7a\x50\xdd\xf0\x47\xba\x73\x66\xdd\xd1\x72\x71\xb2\x20\x10\xdc\xec\x76\xf4\xfb\x77\xb3\xe7\xc6\xd4\xa4\x7b\xfa\xe4\xb0\x51\x24\xee\x09\xb3\xdc\x6a\x0d\x08\x85\xac\x34\x36\x6c\xe9\x64\x86\x4d\x5d\x1e\x53\xe3\x0d\x2b\xfd\xc0\xe3\xd6\xa9\x3a\x3b\xa3\x2e\xbd\x47\x01\xc2\x88\x27\x51\xfc\x4b\xcb\x7e\xf8\xe5\x3d\xf2\x6c\x4e\x1c\x7f\x84\x54\x25\xb4\x6c\x2e\xe0\xf2\x12\x5d\x89\x11\xdb\x96\x4a\xc3\xee\xa8\x8b\x91\xf8\xa9\xa3\x92\x7f\xe2\x4e\xa7\x14\x63\xb8\x6a\x21\x20\xbf\x4b\x72\xcc\x5a\x8e\xf3\xae\xc4\xca\x17\xd6\xb0\x85\x0c\x9e\x72\x68\x53\xb7\x07\x04\x22\xf6\x2f\x5c\x43\x4e\xef\x1e\xb9\x04\x76\xf8\x16\xfe\x7d\xdd\xb4\xb5\x49\x2d\xbb\x3b\x3b\xeb\xf6\x23\x96\x1b\x40\x93\x59\x16\xd7\xec\x31\x60\x61\xd6\xce\xae\x4b\x0a\xd9\xd0\x74\x2b\x83\x4b\x41\x93\x54\x03\xfb\x8e\x6b\x60\x61\x28\x59\x19\xb6\x4c\x92\x0b\xba\xb3\x6c\x3f\x80\x91\x75\xb2\xe7\x69\x5a\x7b\x2c\xb5\xec\x91\xd5\x87\xdf\xf3\x42\xcb\xee\xcf\xce\xc6\xce\x5b\x43\x50\xbb\xa0\xef\x21\xaa\x07\x3e\x76\x7c\x68\x10\x31\x48\x8c\x0d\x92\xb6\xa0\x36\x3e\x0c\x96\xec\xb7\x6d\xb7\xc0\xed\xd9\x99\xfc\xef\x32\xfc\x9b\x48\x46\x7e\x07\xab\xe7\xed\xc7\xe3\x67\xed\xbb\x5b\xd0\x6e\x60\x61\x48\xeb\x6d\xec\x2c\xfb\xb9\xca\xc6\xde\xc8\x1b\x43\xb5\x0f\x9e\xb4\x3c\xa8\xab\x39\xa1\x26\x74\x7b\xc0\xd6\x94\x47\x0e\xd0\xad\x38\x23\x04\xa2\xef\xdf\xcd\x3d\x28\xb9\xb5\x86\xdc\xba\xf4\xa5\x71\xb1\x69\x2e\x00\xe5\x79\xf7\x85\x61\x9b\xdc\x6e\xaa\x38\xfb\x2e\xce\x82\xc2\xb3\xe3\x20\x2a\xbc\xdd\x49\xe5\x2e\xdd\xcf\xa3\x2a\xf1\x27\x70\x29\x8d\x25\xb2\x7e\xe6\x56\xb8\x90\x5d\xc6\x55\x86\x0f\x5f\x6c\xf1\xe1\x6e\x31\x39\xd0\xf1\x65\x70\x35\x19\xeb\x5d\x89\xe0\x97\x53\x65\x1e\x4d\xd3\x64\x22\xb0\xc1\x25\x7f\x0f\xf7\xd9\x1d\xb7\xe9\x93\xaa\xe5\xe8\x7d\x2a\xb7\x3f\xaf\xdc\x8d\x89\x2c\x9b\x8a\x97\xfc\xca\xbb\xf9\xa4\x72\x5b\x93\xd8\x26\x93\x56\x66\xa0\xeb\xec\x4c\x90\x62\xca\x17\x73\x28\x1a\x90\x84\x5a\x36\xb6\x2c\x45\x0d\x3b\x3b\xe3\x29\x3b\xa8\x8d\xb2\x2c\x99\xcb\x7b\xf7\x67\xa3\x6b\x28\xe5\x99\x65\x21\x0b\x2c\x9b\xf0\xe7\x98\x2b\x75\x70\xff\x89\x8f\xba\x13\xea\xaa\x9f\x0f\x2b\x8d\xff\xc6\xa0\x6e\xd0\xea\x54\xd8\xec\x53\xe3\x1c\x9d\x1b\xa7\x4b\xd0\xb4\xb0\x76\xff\x0f\x32\x8d\xf3\xee\xdc\x28\x4e\x8d\x73\x72\x6e\x58\xdc\x0e\x20\xd0\xc1\xd2\xf8\x3b\x7f\x98\xd7\xfc\x55\xae\x47\x50\xd1\x66\xd9\xd9\xd4\xe5\x89\x13\xa4\xac\x24\x36\xbe\xf4\xaf\x84\x52\x5a\xb6\xf4\x08\x8e\x71\x8e\x6c\x24\xb5\xf4\x93\xfb\xb9\x44\xe5\x47\xaf\x2c\x05\xb7\x27\x32\xd2\xb9\xd7\x61\x76\x67\x5f\x12\x9b\xda\xfd\x55\xc9\xec\xa6\x14\x7d\x45\x5c\x8a\x3b\x28\x9c\x2a\x97\x95\xf4\xa7\x32\x74\xc4\xdc\x3b\x52\xe1\x1d\xa9\x8d\xb9\xf8\x2a\xb7\xbb\xc4\x57\x25\xbd\xc4\x57\x22\xae\xeb\x2d\x19\x95\xf5\x66\x65\xed\x78\x15\x74\x76\xc6\x07\xf6\x4f\xcd\xdf\xc8\x60\x84\x9b\xf3\x73\xab\x2b\xc9\x65\xc3\x03\x59\xde\x2f\x3c\xbe\x84\x97\xdd\x95\xfc\x7b\xe9\x5d\x99\x96\xcd\x3f\x95\xde\x3e\xe6\xfa\x64\x02\x8b\xc7\x5a\xab\x16\x2f\x40\xfb\xfb\xba\xa1\xae\xb2\x75\x42\x50\x4f\x38\x9c\x37\x3c\xfa\xfd\xfb\xe5\xd5\x09\x1b\xad\x13\x9a\x18\x06\x8f\xe7\x0a\x42\xef\xca\x69\xb1\x2c\x52\xb9\x2f\xcf\x28\x4c\x3e\x78\x3e\x29\x67\x65\x5f\x46\x41\x64\xe7\x7e\x74\x25\xc7\x4f\x65\x8a\x6c\xd8\xb2\xa4\xd2\xf6\xe5\xa1\x47\x45\xe2\xcb\x1f\x95\x8f\xf5\x96\xfd\xa4\x3b\x2d\x7b\xde\xe8\xc9\xff\x0b\x00\x00\xff\xff\x83\x4d\x17\xd1\xb9\xbf\x00\x00") -func distAssetsChunk5823e7befb7e31cbd93bb56JsBytes() ([]byte, error) { +func distAssetsChunk5822a316edfa0fb871040a5JsBytes() ([]byte, error) { return bindataRead( - _distAssetsChunk5823e7befb7e31cbd93bb56Js, - "dist/assets/chunk.582.3e7befb7e31cbd93bb56.js", + _distAssetsChunk5822a316edfa0fb871040a5Js, + "dist/assets/chunk.582.2a316edfa0fb871040a5.js", ) } -func distAssetsChunk5823e7befb7e31cbd93bb56Js() (*asset, error) { - bytes, err := distAssetsChunk5823e7befb7e31cbd93bb56JsBytes() +func distAssetsChunk5822a316edfa0fb871040a5Js() (*asset, error) { + bytes, err := distAssetsChunk5822a316edfa0fb871040a5JsBytes() if err != nil { return nil, err } - info := bindataFileInfo{name: "dist/assets/chunk.582.3e7befb7e31cbd93bb56.js", size: 49079, mode: os.FileMode(420), modTime: time.Unix(1480000000, 0)} + info := bindataFileInfo{name: "dist/assets/chunk.582.2a316edfa0fb871040a5.js", size: 49081, mode: os.FileMode(420), modTime: time.Unix(1480000000, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -408,7 +408,7 @@ func distFaviconIco() (*asset, error) { return a, nil } -var _distIndexHtml = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x94\x95\x51\x8f\xda\x38\x14\x85\xdf\xf9\x15\x69\x24\xa4\x5d\xa9\x21\x10\x08\x49\x56\x80\x44\x21\xd3\x65\xc5\x40\x0a\xa1\xed\x3c\x21\xc7\xbe\x21\xde\x71\xec\xac\xed\x30\x65\x7f\xfd\x2a\x04\x68\x66\x3a\x53\x6d\xdf\x48\x72\xee\xe7\x73\x8f\xed\xcb\xe8\xdd\x7c\x3d\x8b\x1f\xa2\xd0\xc8\x74\xce\x26\xad\xd1\x3b\xcb\x6a\x19\x33\x51\x9c\x24\x3d\x64\xda\xf8\x0d\xff\x6e\xfc\x89\x54\x46\x67\x42\x16\xef\x8d\x05\xc7\x9d\x96\xb1\x8d\xe6\x5f\xad\x25\xc5\xc0\x15\x58\x0b\x02\x5c\xd3\x94\x82\xfc\xc3\xf8\xb0\xdb\x2e\xad\x5e\xa7\xd7\xb2\xac\x49\xab\x35\xaa\x91\x86\x31\xca\x00\x91\xea\x87\x61\x8c\x72\xd0\xc8\xc0\x19\x92\x0a\xf4\xd8\x2c\x75\x6a\xf9\x66\xf3\x53\xa6\x75\x61\xc1\x3f\x25\x3d\x8e\xcd\xaf\xd6\x6e\x6a\xcd\x44\x5e\x20\x4d\x13\x06\xa6\x81\x05\xd7\xc0\xf5\xd8\x5c\x84\x63\x20\x07\xb8\x56\x6a\xaa\x19\x4c\x56\x22\x47\x64\x64\xd7\x0f\x0d\x24\x47\x39\x8c\x4d\x02\x0a\x4b\x5a\x68\x2a\x78\x03\x64\xfe\x28\x3c\x52\x78\x2a\x84\xd4\x0d\xd5\x13\x25\x3a\x1b\x13\x38\x52\x0c\xd6\xf9\xe1\xbd\x41\x39\xd5\x14\x31\x4b\x61\xc4\x60\xdc\x33\x27\xad\x33\xa9\xd5\x44\xf1\xca\x91\x55\x52\x1b\x0b\x9e\xd2\x83\x0d\xfc\x48\xa5\xe0\x39\xf0\x26\xbd\xed\x7d\x68\x3b\x4e\x2e\x48\xc9\x20\x92\x90\xd2\x6f\x6d\xc7\x69\xf7\xa7\x6d\xc7\xb9\x02\xaa\x17\xce\xac\xed\x38\x0d\xc2\x4d\x54\x48\x41\x4a\x5c\x35\x76\x93\x49\x21\xf4\x6e\xb3\xbc\x49\xda\xce\x5d\x05\xb9\xbb\x09\x98\xc0\xa8\xaa\x88\x4f\x05\xdc\x54\xa8\xd4\xe2\xa6\x08\xf3\x04\x64\xb8\xfa\x7c\xf9\x7a\xf6\x78\x17\x4e\xe3\xdd\x26\xdc\x7e\x7f\xe7\xcd\x2f\xea\xaf\x71\xb8\x9a\xef\xa3\xcd\x3a\x5e\x57\xc7\x69\xdb\x2c\x9b\x23\x7d\x59\x24\x45\x4c\xc1\xad\x68\x3f\x8d\xa2\xe5\x62\x36\x8d\x17\xeb\xd5\x3e\x0e\xef\xa3\xe5\x34\x0e\xf7\x5f\x36\xd3\x28\x0a\x37\xcd\x82\x5a\x3d\x0f\xef\xa6\xbb\x65\xbc\x9f\x6e\x1f\x56\xb3\xfd\xfa\xc3\x36\xdc\x7c\x0e\x37\x97\x95\xb4\x2c\xaf\xba\xbf\x3e\xed\xc2\xcd\xc3\x7e\xb1\x8a\xc3\x8f\x9b\x33\xfc\x47\xd6\x6d\xb5\xf5\x6a\xf9\xb0\xff\xb8\x5c\xdc\xdf\x87\x9b\xfd\x6c\x7d\x1f\xad\x57\xe1\x2a\x6e\x42\xaf\x6e\xa1\x0a\xe4\x8e\x55\xd7\x62\x81\x05\x57\xcd\x0e\x19\xfa\xf7\x54\x05\x46\x5e\xa9\x9b\x46\x51\x53\x9a\x30\x81\x1f\x29\x3f\x7c\x2a\x41\x52\x50\x2f\xdd\xe7\x54\xa2\x03\x6c\x31\x70\x24\xa9\xb8\x6d\x8d\xca\x11\x63\x33\x56\x2a\x0d\xf2\xb6\x45\xb5\xf6\x0b\xd5\xd9\x0a\xe5\xa0\x0a\x84\xdf\xe2\x55\x9a\x58\x3c\x02\xff\xc9\xf7\x0d\x1c\xa8\x78\x26\xb8\x76\x50\x80\xc4\xa7\x66\x0f\xc0\x51\xc2\x5e\x6d\xf6\x1c\x92\x85\x19\xb5\x6a\x70\xb3\xaa\x54\x94\x1f\x22\x29\xbe\x9d\x5e\x9a\x28\x15\xcc\x21\x45\x25\xd3\x11\x52\x4a\x67\x52\x94\x87\xec\x35\x27\xf0\xad\xba\x99\xd3\xa2\x60\xb4\x3e\xbf\x1f\x99\x48\x10\x7b\x7e\xb8\x4c\xc3\xbe\x5c\xc6\x11\xa3\xfc\xd1\x90\xc0\xc6\xa6\xd2\x27\x06\x2a\x03\xd0\xa6\x91\x49\x48\xc7\xa6\x5d\x52\x1b\x29\x05\x5a\xd9\x47\xe0\x44\x48\xab\xdf\xc5\x00\x8e\xe3\x78\x5e\x9a\x7a\x81\xe3\xba\xc3\x04\x07\x68\x00\x30\xec\x0f\x03\x0f\x41\x07\x2b\x65\x4e\x5a\xff\x97\x8a\xb3\x92\x3f\x76\x5c\x67\xd0\xe9\x76\x53\xc7\x09\xa0\xdb\x0d\x92\xd4\xc3\xb8\x17\xf4\x70\xef\x0c\xb3\x27\xbf\xe4\xf3\x3a\x0e\x2c\x42\x86\x9e\xef\xbb\xc8\x1f\xa0\x21\x1a\xa6\x6e\x90\xba\xae\x47\x7c\x9f\xa4\x81\x3f\x18\xb8\xe8\xe2\xf4\x05\x9b\xe2\x6a\xf6\xe9\x53\x01\x63\x93\xe6\xe8\x00\x76\xc1\x0f\xcd\x65\xec\x14\x1d\x2b\x51\x87\x62\xf1\x3d\xc5\x6a\x82\xdb\xd7\x11\x3e\x4a\x04\x39\xd5\xe4\x4b\xc6\xf5\x58\x35\x94\xc4\xaf\x65\xda\x45\xbd\x80\x40\x92\xf4\x03\xc7\xeb\x3a\xa9\x47\x10\x76\x02\x3f\x25\x03\x37\x48\x7b\xd8\x4d\x3a\x7f\x2b\x73\x32\xb2\x6b\xc8\xa4\xf5\x16\xad\xce\x72\xe0\x0c\x3a\xa8\xdf\x23\x41\xdf\x47\xb8\xef\x07\x3d\xbf\xe7\x7b\x5d\xbf\xfb\x4b\x90\x37\x37\xe4\x39\xe4\x67\xbd\xdd\xf6\x21\x48\x82\x3e\x1e\x7a\x30\x18\x78\x5d\xd2\x77\x00\x52\xd7\x07\xd2\x4d\x5d\x18\x10\xe8\xbb\x2f\x8d\xd5\x50\x42\x8f\x06\x25\x63\xb3\xbe\x2b\x09\x52\x14\x5b\x44\x8a\x82\x88\x27\x6e\x3d\x09\x99\x67\x82\x41\x55\x46\xe8\xf1\x1c\xb9\x5d\x67\x3e\xb2\xeb\x3f\xd4\xff\x02\x00\x00\xff\xff\x9e\x7b\x5a\xd8\xb4\x07\x00\x00") +var _distIndexHtml = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x94\x95\x51\x8f\xda\x38\x14\x85\xdf\xf9\x15\x69\x24\xa4\x5d\xa9\x21\x90\x10\x92\xac\x00\x89\x42\xa6\xcb\x8a\x81\x14\x32\x6d\xe7\x09\x39\xf6\x0d\xf1\x8e\x63\x67\x6d\x87\x29\xfb\xeb\x57\x21\x40\xd3\xe9\xb4\xda\xbe\x91\xe4\xdc\xcf\xe7\x1e\xdb\x97\xf1\x9b\xc5\x66\x9e\x3c\xc6\x91\x91\xeb\x82\x4d\x3b\xe3\x37\x96\xd5\x31\xe6\xa2\x3c\x49\x7a\xc8\xb5\xf1\x1b\xfe\xdd\xf8\x13\xa9\x9c\xce\x85\x2c\xdf\x1a\x4b\x8e\x7b\x1d\x63\x17\x2f\x3e\x5b\x2b\x8a\x81\x2b\xb0\x96\x04\xb8\xa6\x19\x05\xf9\x87\xf1\xee\x61\xb7\xb2\x06\xbd\x41\xc7\xb2\xa6\x9d\xce\xb8\x41\x1a\xc6\x38\x07\x44\xea\x1f\x86\x31\x2e\x40\x23\x03\xe7\x48\x2a\xd0\x13\xb3\xd2\x99\x15\x98\xed\x4f\xb9\xd6\xa5\x05\xff\x54\xf4\x38\x31\x3f\x5b\x0f\x33\x6b\x2e\x8a\x12\x69\x9a\x32\x30\x0d\x2c\xb8\x06\xae\x27\xe6\x32\x9a\x00\x39\xc0\xb5\x52\x53\xcd\x60\xba\x16\x05\x22\x63\xbb\x79\x68\x21\x39\x2a\x60\x62\x12\x50\x58\xd2\x52\x53\xc1\x5b\x20\xf3\x7b\xe1\x91\xc2\x73\x29\xa4\x6e\xa9\x9e\x29\xd1\xf9\x84\xc0\x91\x62\xb0\xce\x0f\x6f\x0d\xca\xa9\xa6\x88\x59\x0a\x23\x06\x93\x81\x39\xed\x9c\x49\x9d\x36\x8a\xd7\x8e\xac\x8a\xda\x58\xf0\x8c\x1e\x6c\xe0\x47\x2a\x05\x2f\x80\xb7\xe9\x5d\xff\x5d\xd7\x71\x0a\x41\x2a\x06\xb1\x84\x8c\x7e\xe9\x3a\x4e\xd7\x9d\x75\x1d\xe7\x0a\xa8\x5f\x38\xf3\xae\xe3\xb4\x08\x37\x51\x29\x05\xa9\x70\xdd\xd8\x4d\x26\x85\xd0\x0f\xdb\xd5\x4d\xd2\x75\xee\x6a\xc8\xdd\x4d\xc0\x04\x46\x75\x45\x72\x2a\xe1\xa6\x42\x95\x16\x37\x45\x54\xa4\x20\xa3\xf5\xc7\xcb\xd7\xb3\xc7\xbb\x68\x96\x3c\x6c\xa3\xdd\xd7\x77\xfe\xe2\xa2\xfe\x9c\x44\xeb\xc5\x3e\xde\x6e\x92\x4d\x7d\x9c\x76\xed\xb2\x05\xd2\x97\x45\x32\xc4\x14\xdc\x8a\xf6\xb3\x38\x5e\x2d\xe7\xb3\x64\xb9\x59\xef\x93\xe8\x3e\x5e\xcd\x92\x68\xff\x69\x3b\x8b\xe3\x68\xdb\x2e\x68\xd4\x8b\xe8\x6e\xf6\xb0\x4a\xf6\xb3\xdd\xe3\x7a\xbe\xdf\xbc\xdb\x45\xdb\x8f\xd1\xf6\xb2\x92\x96\xd5\x55\xf7\xd7\x87\x87\x68\xfb\xb8\x5f\xae\x93\xe8\xfd\xf6\x0c\xff\x9e\x75\x5b\x6d\xb3\x5e\x3d\xee\xdf\xaf\x96\xf7\xf7\xd1\x76\x3f\xdf\xdc\xc7\x9b\x75\xb4\x4e\xda\xd0\xab\x5b\xa8\x03\xb9\x63\xf5\xb5\x58\x62\xc1\x55\xbb\x43\x86\xfe\x3d\xd5\x81\x91\x57\xea\x66\x71\xdc\x96\xa6\x4c\xe0\x27\xca\x0f\x1f\x2a\x90\x14\xd4\x4b\xf7\x05\x95\xe8\x00\x3b\x0c\x1c\x49\x2a\x6e\x5b\xa3\x0a\xc4\xd8\x9c\x55\x4a\x83\xbc\x6d\x51\xa3\xfd\x44\x75\xbe\x46\x05\xa8\x12\xe1\x1f\xf1\x6a\x4d\x22\x9e\x80\xff\xe4\xfb\x16\x0e\x54\x7c\x23\xb8\x76\x50\x82\xc4\xa7\x76\x0f\xc0\x51\xca\x5e\x6d\xf6\x1c\x92\x85\x19\xb5\x1a\x70\xbb\xaa\x52\x94\x1f\x62\x29\xbe\x9c\x5e\x9a\xa8\x14\x2c\x20\x43\x15\xd3\x31\x52\x4a\xe7\x52\x54\x87\xfc\x35\x27\xf0\xa5\xbe\x99\xb3\xb2\x64\xb4\x39\xbf\xef\x99\x48\x11\xfb\xf6\x70\x99\x86\x7d\xb9\x8c\x63\x46\xf9\x93\x21\x81\x4d\x4c\xa5\x4f\x0c\x54\x0e\xa0\x4d\x23\x97\x90\x4d\x4c\xbb\xa2\x36\x52\x0a\xb4\xb2\x8f\xc0\x89\x90\x96\xdb\xc7\x00\x8e\xe3\xf8\x7e\x96\xf9\xa1\xe3\x79\xa3\x14\x87\x68\x08\x30\x72\x47\xa1\x8f\xa0\x87\x95\x32\xa7\x9d\xff\x4b\xc5\x79\xc5\x9f\x7a\x9e\x33\xec\x0d\x46\x6e\xe6\xe3\xfe\x08\x42\x6f\x84\x43\xcf\xf5\x3c\xc7\x3b\xc3\xec\xe9\x2f\xf9\xbc\x8e\x03\x8b\x90\x91\x1f\x04\x1e\x0a\x86\x68\x84\x46\x99\x17\x66\x9e\xe7\x93\x20\x20\x59\x18\x0c\x87\x1e\xba\x38\x7d\xc1\xa6\xb8\x9e\x7d\xfa\x54\xc2\xc4\xa4\x05\x3a\x80\x5d\xf2\x43\x7b\x19\x3b\x43\xc7\x5a\xd4\xa3\x58\x7c\x4d\xb1\x9e\xe0\xf6\x75\x84\x8f\x53\x41\x4e\x0d\xf9\x92\x71\x33\x56\x0d\x25\xf1\x6b\x99\xf6\xd1\x20\x24\x90\xa6\x6e\xe8\xf8\x7d\x27\xf3\x09\xc2\x4e\x18\x64\x64\xe8\x85\xd9\x00\x7b\x69\xef\x6f\x65\x4e\xc7\x76\x03\x99\x76\x7e\x44\x6b\xb2\x1c\x3a\xc3\x1e\x72\x07\x24\x74\x03\x84\xdd\x20\x1c\x04\x83\xc0\xef\x07\xfd\x5f\x82\xfc\x70\x43\xbe\x85\xfc\xac\xb7\xdb\x3e\x84\x69\xe8\xe2\x91\x0f\xc3\xa1\xdf\x27\xae\x03\x90\x79\x01\x90\x7e\xe6\xc1\x90\x80\xeb\xbd\x34\xd6\x40\x09\x3d\x1a\x94\x4c\xcc\xe6\xae\xa4\x48\x51\x6c\x11\x29\x4a\x22\x9e\xb9\xf5\x2c\x64\x91\x0b\x06\x75\x19\xa1\xc7\x73\xe4\x76\x93\xf9\xd8\x6e\xfe\x50\xff\x0b\x00\x00\xff\xff\xf0\x17\x2c\x4a\xb4\x07\x00\x00") func distIndexHtmlBytes() ([]byte, error) { return bindataRead( @@ -503,10 +503,10 @@ var _bindata = map[string]func() (*asset, error){ "dist/assets/chunk.424.a31d938ac38918187080.js": distAssetsChunk424A31d938ac38918187080Js, "dist/assets/chunk.424.a31d938ac38918187080.js.LICENSE.txt": distAssetsChunk424A31d938ac38918187080JsLicenseTxt, "dist/assets/chunk.504.10ee502b35385ac258f3.js": distAssetsChunk50410ee502b35385ac258f3Js, - "dist/assets/chunk.524.00f229e009bf7cc191c1.css": distAssetsChunk52400f229e009bf7cc191c1Css, - "dist/assets/chunk.524.00f229e009bf7cc191c1.js": distAssetsChunk52400f229e009bf7cc191c1Js, - "dist/assets/chunk.582.3e7befb7e31cbd93bb56.css": distAssetsChunk5823e7befb7e31cbd93bb56Css, - "dist/assets/chunk.582.3e7befb7e31cbd93bb56.js": distAssetsChunk5823e7befb7e31cbd93bb56Js, + "dist/assets/chunk.524.163f7c06e956c9535525.css": distAssetsChunk524163f7c06e956c9535525Css, + "dist/assets/chunk.524.163f7c06e956c9535525.js": distAssetsChunk524163f7c06e956c9535525Js, + "dist/assets/chunk.582.2a316edfa0fb871040a5.css": distAssetsChunk5822a316edfa0fb871040a5Css, + "dist/assets/chunk.582.2a316edfa0fb871040a5.js": distAssetsChunk5822a316edfa0fb871040a5Js, "dist/assets/chunk.787.23c990ecc75c2fc2f0db.js": distAssetsChunk78723c990ecc75c2fc2f0dbJs, "dist/assets/chunk.914.4f97f0c27a0500495691.js": distAssetsChunk9144f97f0c27a0500495691Js, "dist/assets/chunk.914.4f97f0c27a0500495691.js.LICENSE.txt": distAssetsChunk9144f97f0c27a0500495691JsLicenseTxt, @@ -565,10 +565,10 @@ var _bintree = &bintree{nil, map[string]*bintree{ "chunk.424.a31d938ac38918187080.js": &bintree{distAssetsChunk424A31d938ac38918187080Js, map[string]*bintree{}}, "chunk.424.a31d938ac38918187080.js.LICENSE.txt": &bintree{distAssetsChunk424A31d938ac38918187080JsLicenseTxt, map[string]*bintree{}}, "chunk.504.10ee502b35385ac258f3.js": &bintree{distAssetsChunk50410ee502b35385ac258f3Js, map[string]*bintree{}}, - "chunk.524.00f229e009bf7cc191c1.css": &bintree{distAssetsChunk52400f229e009bf7cc191c1Css, map[string]*bintree{}}, - "chunk.524.00f229e009bf7cc191c1.js": &bintree{distAssetsChunk52400f229e009bf7cc191c1Js, map[string]*bintree{}}, - "chunk.582.3e7befb7e31cbd93bb56.css": &bintree{distAssetsChunk5823e7befb7e31cbd93bb56Css, map[string]*bintree{}}, - "chunk.582.3e7befb7e31cbd93bb56.js": &bintree{distAssetsChunk5823e7befb7e31cbd93bb56Js, map[string]*bintree{}}, + "chunk.524.163f7c06e956c9535525.css": &bintree{distAssetsChunk524163f7c06e956c9535525Css, map[string]*bintree{}}, + "chunk.524.163f7c06e956c9535525.js": &bintree{distAssetsChunk524163f7c06e956c9535525Js, map[string]*bintree{}}, + "chunk.582.2a316edfa0fb871040a5.css": &bintree{distAssetsChunk5822a316edfa0fb871040a5Css, map[string]*bintree{}}, + "chunk.582.2a316edfa0fb871040a5.js": &bintree{distAssetsChunk5822a316edfa0fb871040a5Js, map[string]*bintree{}}, "chunk.787.23c990ecc75c2fc2f0db.js": &bintree{distAssetsChunk78723c990ecc75c2fc2f0dbJs, map[string]*bintree{}}, "chunk.914.4f97f0c27a0500495691.js": &bintree{distAssetsChunk9144f97f0c27a0500495691Js, map[string]*bintree{}}, "chunk.914.4f97f0c27a0500495691.js.LICENSE.txt": &bintree{distAssetsChunk9144f97f0c27a0500495691JsLicenseTxt, map[string]*bintree{}}, diff --git a/nomad/structs/structs.generated.go b/nomad/structs/structs.generated.go new file mode 100644 index 000000000..2b6b5b089 --- /dev/null +++ b/nomad/structs/structs.generated.go @@ -0,0 +1,279668 @@ +//go:build codegen_generated +// +build codegen_generated + +// Code generated by codecgen - DO NOT EDIT. + +package structs + +import ( + "errors" + pkg1_jwt "github.com/go-jose/go-jose/v3/jwt" + pkg8_v2 "github.com/hashicorp/go-kms-wrapping/v2" + codec1978 "github.com/hashicorp/go-msgpack/v2/codec" + pkg7_v3 "github.com/hashicorp/go-set/v3" + pkg6_acl "github.com/hashicorp/nomad/acl" + pkg4_numalib "github.com/hashicorp/nomad/client/lib/numalib" + pkg5_hw "github.com/hashicorp/nomad/client/lib/numalib/hw" + pkg12_host "github.com/hashicorp/nomad/command/agent/host" + pkg11_pprof "github.com/hashicorp/nomad/command/agent/pprof" + pkg3_structs "github.com/hashicorp/nomad/plugins/shared/structs" + pkg10_raft "github.com/hashicorp/raft" + pkg2_serf "github.com/hashicorp/serf/serf" + pkg9_structpb "google.golang.org/protobuf/types/known/structpb" + "net" + "runtime" + "strconv" + "time" +) + +const ( + // ----- content types ---- + codecSelferCcUTF8100 = 1 + codecSelferCcRAW100 = 255 + // ----- value types used ---- + codecSelferValueTypeArray100 = 10 + codecSelferValueTypeMap100 = 9 + codecSelferValueTypeString100 = 6 + codecSelferValueTypeInt100 = 2 + codecSelferValueTypeUint100 = 3 + codecSelferValueTypeFloat100 = 4 + codecSelferBitsize100 = uint8(32 << (^uint(0) >> 63)) +) + +var ( + errCodecSelferOnlyMapOrArrayEncodeToStruct100 = errors.New(`only encoded map or array can be decoded into a struct`) +) + +type codecSelfer100 struct{} + +func init() { + if codec1978.GenVersion != 10 { + _, file, _, _ := runtime.Caller(0) + panic("codecgen version mismatch: current: 10, need " + strconv.FormatInt(int64(codec1978.GenVersion), 10) + ". Re-generate file: " + file) + } + if false { + var _ byte = 0 // reference the types, but skip this branch at build/run time + var v0 pkg1_jwt.Claims + var v1 pkg8_v2.BlobInfo + var v2 pkg7_v3.Set[string] + var v3 pkg6_acl.Policy + var v4 pkg4_numalib.Topology + var v5 pkg5_hw.SocketID + var v6 pkg12_host.HostData + var v7 pkg11_pprof.ReqType + var v8 pkg3_structs.Attribute + var v9 pkg10_raft.ServerID + var v10 pkg2_serf.MemberStatus + var v11 pkg9_structpb.Struct + var v12 net.IP + var v13 time.Duration + _, _, _, _, _, _, _, _, _, _, _, _, _, _ = v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13 + } +} + +func (x *ACLTokenRoleLink) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLTokenRoleLink) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLTokenRoleLink) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLTokenRoleLink) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLRole) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Description\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Description`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Policies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLRolePolicyLink(([]*ACLRolePolicyLink)(x.Policies), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Policies\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Policies`) + } + r.WriteMapElemValue() + if x.Policies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLRolePolicyLink(([]*ACLRolePolicyLink)(x.Policies), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Hash\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Hash`) + } + r.WriteMapElemValue() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLRole) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLRole) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Description": + if r.TryDecodeAsNil() { + x.Description = "" + } else { + x.Description = (string)(r.DecodeString()) + } + case "Policies": + if r.TryDecodeAsNil() { + x.Policies = nil + } else { + if false { + } else { + h.decSlicePtrtoACLRolePolicyLink((*[]*ACLRolePolicyLink)(&x.Policies), d) + } + } + case "Hash": + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLRole) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Description = "" + } else { + x.Description = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Policies = nil + } else { + if false { + } else { + h.decSlicePtrtoACLRolePolicyLink((*[]*ACLRolePolicyLink)(&x.Policies), d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLRolePolicyLink) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLRolePolicyLink) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLRolePolicyLink) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLRolePolicyLink) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLRoleListStub) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Description\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Description`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Policies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLRolePolicyLink(([]*ACLRolePolicyLink)(x.Policies), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Policies\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Policies`) + } + r.WriteMapElemValue() + if x.Policies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLRolePolicyLink(([]*ACLRolePolicyLink)(x.Policies), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Hash\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Hash`) + } + r.WriteMapElemValue() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLRoleListStub) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLRoleListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Description": + if r.TryDecodeAsNil() { + x.Description = "" + } else { + x.Description = (string)(r.DecodeString()) + } + case "Policies": + if r.TryDecodeAsNil() { + x.Policies = nil + } else { + if false { + } else { + h.decSlicePtrtoACLRolePolicyLink((*[]*ACLRolePolicyLink)(&x.Policies), d) + } + } + case "Hash": + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLRoleListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Description = "" + } else { + x.Description = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Policies = nil + } else { + if false { + } else { + h.decSlicePtrtoACLRolePolicyLink((*[]*ACLRolePolicyLink)(&x.Policies), d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLRolesUpsertRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ACLRoles == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLRole(([]*ACLRole)(x.ACLRoles), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ACLRoles\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ACLRoles`) + } + r.WriteMapElemValue() + if x.ACLRoles == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLRole(([]*ACLRole)(x.ACLRoles), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowMissingPolicies)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowMissingPolicies\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowMissingPolicies`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowMissingPolicies)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLRolesUpsertRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLRolesUpsertRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ACLRoles": + if r.TryDecodeAsNil() { + x.ACLRoles = nil + } else { + if false { + } else { + h.decSlicePtrtoACLRole((*[]*ACLRole)(&x.ACLRoles), d) + } + } + case "AllowMissingPolicies": + if r.TryDecodeAsNil() { + x.AllowMissingPolicies = false + } else { + x.AllowMissingPolicies = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLRolesUpsertRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ACLRoles = nil + } else { + if false { + } else { + h.decSlicePtrtoACLRole((*[]*ACLRole)(&x.ACLRoles), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllowMissingPolicies = false + } else { + x.AllowMissingPolicies = (bool)(r.DecodeBool()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLRolesUpsertResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ACLRoles == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLRole(([]*ACLRole)(x.ACLRoles), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ACLRoles\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ACLRoles`) + } + r.WriteMapElemValue() + if x.ACLRoles == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLRole(([]*ACLRole)(x.ACLRoles), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLRolesUpsertResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLRolesUpsertResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ACLRoles": + if r.TryDecodeAsNil() { + x.ACLRoles = nil + } else { + if false { + } else { + h.decSlicePtrtoACLRole((*[]*ACLRole)(&x.ACLRoles), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLRolesUpsertResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ACLRoles = nil + } else { + if false { + } else { + h.decSlicePtrtoACLRole((*[]*ACLRole)(&x.ACLRoles), d) + } + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLRolesDeleteByIDRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ACLRoleIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.ACLRoleIDs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ACLRoleIDs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ACLRoleIDs`) + } + r.WriteMapElemValue() + if x.ACLRoleIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.ACLRoleIDs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLRolesDeleteByIDRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLRolesDeleteByIDRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ACLRoleIDs": + if r.TryDecodeAsNil() { + x.ACLRoleIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.ACLRoleIDs), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLRolesDeleteByIDRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ACLRoleIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.ACLRoleIDs), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLRolesDeleteByIDResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLRolesDeleteByIDResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLRolesDeleteByIDResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLRolesDeleteByIDResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLRolesListRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(12) + } else { + r.WriteMapStart(12) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.EncExtension(x.MaxQueryTime, yyxt13) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { + z.EncExtension(x.MaxQueryTime, yyxt14) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLRolesListRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLRolesListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { + z.DecExtension(x.MaxQueryTime, yyxt8) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLRolesListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { + z.DecExtension(x.MaxQueryTime, yyxt22) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLRolesListResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ACLRoles == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLRoleListStub(([]*ACLRoleListStub)(x.ACLRoles), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ACLRoles\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ACLRoles`) + } + r.WriteMapElemValue() + if x.ACLRoles == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLRoleListStub(([]*ACLRoleListStub)(x.ACLRoles), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLRolesListResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLRolesListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ACLRoles": + if r.TryDecodeAsNil() { + x.ACLRoles = nil + } else { + if false { + } else { + h.decSlicePtrtoACLRoleListStub((*[]*ACLRoleListStub)(&x.ACLRoles), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLRolesListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ACLRoles = nil + } else { + if false { + } else { + h.decSlicePtrtoACLRoleListStub((*[]*ACLRoleListStub)(&x.ACLRoles), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLRolesByIDRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ACLRoleIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.ACLRoleIDs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ACLRoleIDs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ACLRoleIDs`) + } + r.WriteMapElemValue() + if x.ACLRoleIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.ACLRoleIDs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLRolesByIDRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLRolesByIDRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ACLRoleIDs": + if r.TryDecodeAsNil() { + x.ACLRoleIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.ACLRoleIDs), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLRolesByIDRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj19 int + var yyb19 bool + var yyhl19 bool = l >= 0 + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ACLRoleIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.ACLRoleIDs), d) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { + z.DecExtension(x.MaxQueryTime, yyxt26) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj19-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLRolesByIDResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ACLRoles == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoACLRole((map[string]*ACLRole)(x.ACLRoles), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ACLRoles\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ACLRoles`) + } + r.WriteMapElemValue() + if x.ACLRoles == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoACLRole((map[string]*ACLRole)(x.ACLRoles), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLRolesByIDResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLRolesByIDResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ACLRoles": + if r.TryDecodeAsNil() { + x.ACLRoles = nil + } else { + if false { + } else { + h.decMapstringPtrtoACLRole((*map[string]*ACLRole)(&x.ACLRoles), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLRolesByIDResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ACLRoles = nil + } else { + if false { + } else { + h.decMapstringPtrtoACLRole((*map[string]*ACLRole)(&x.ACLRoles), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLRoleByIDRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RoleID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RoleID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RoleID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RoleID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RoleID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RoleID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLRoleByIDRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLRoleByIDRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "RoleID": + if r.TryDecodeAsNil() { + x.RoleID = "" + } else { + x.RoleID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLRoleByIDRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RoleID = "" + } else { + x.RoleID = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt24 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt24 != nil { + z.DecExtension(x.MaxQueryTime, yyxt24) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLRoleByIDResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + var yyn3 bool + if x.ACLRole == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ACLRole == nil { + r.EncodeNil() + } else { + x.ACLRole.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ACLRole\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ACLRole`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.ACLRole == nil { + r.EncodeNil() + } else { + x.ACLRole.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLRoleByIDResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLRoleByIDResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ACLRole": + if r.TryDecodeAsNil() { + if true && x.ACLRole != nil { + x.ACLRole = nil + } + } else { + if x.ACLRole == nil { + x.ACLRole = new(ACLRole) + } + + x.ACLRole.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLRoleByIDResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ACLRole != nil { + x.ACLRole = nil + } + } else { + if x.ACLRole == nil { + x.ACLRole = new(ACLRole) + } + + x.ACLRole.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.DecExtension(x.LastContact, yyxt14) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLRoleByNameRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RoleName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RoleName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RoleName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RoleName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RoleName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RoleName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLRoleByNameRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLRoleByNameRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "RoleName": + if r.TryDecodeAsNil() { + x.RoleName = "" + } else { + x.RoleName = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLRoleByNameRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RoleName = "" + } else { + x.RoleName = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt24 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt24 != nil { + z.DecExtension(x.MaxQueryTime, yyxt24) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLRoleByNameResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + var yyn3 bool + if x.ACLRole == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ACLRole == nil { + r.EncodeNil() + } else { + x.ACLRole.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ACLRole\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ACLRole`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.ACLRole == nil { + r.EncodeNil() + } else { + x.ACLRole.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLRoleByNameResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLRoleByNameResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ACLRole": + if r.TryDecodeAsNil() { + if true && x.ACLRole != nil { + x.ACLRole = nil + } + } else { + if x.ACLRole == nil { + x.ACLRole = new(ACLRole) + } + + x.ACLRole.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLRoleByNameResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ACLRole != nil { + x.ACLRole = nil + } + } else { + if x.ACLRole == nil { + x.ACLRole = new(ACLRole) + } + + x.ACLRole.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.DecExtension(x.LastContact, yyxt14) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLAuthMethod) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(12) + } else { + r.WriteMapStart(12) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TokenLocality))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TokenLocality)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TokenLocality\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TokenLocality`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TokenLocality))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TokenLocality)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TokenNameFormat))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TokenNameFormat)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TokenNameFormat\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TokenNameFormat`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TokenNameFormat))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TokenNameFormat)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxTokenTTL)); yyxt16 != nil { + z.EncExtension(x.MaxTokenTTL, yyxt16) + } else { + r.EncodeInt(int64(x.MaxTokenTTL)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxTokenTTL\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxTokenTTL`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxTokenTTL)); yyxt17 != nil { + z.EncExtension(x.MaxTokenTTL, yyxt17) + } else { + r.EncodeInt(int64(x.MaxTokenTTL)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Default)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Default\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Default`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Default)) + } + } + var yyn21 bool + if x.Config == nil { + yyn21 = true + goto LABEL21 + } + LABEL21: + if yyr2 || yy2arr2 { + if yyn21 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Config == nil { + r.EncodeNil() + } else { + x.Config.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Config\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Config`) + } + r.WriteMapElemValue() + if yyn21 { + r.EncodeNil() + } else { + if x.Config == nil { + r.EncodeNil() + } else { + x.Config.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Hash\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Hash`) + } + r.WriteMapElemValue() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.CreateTime) + } else if yyxt28 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt28 != nil { + z.EncExtension(x.CreateTime, yyxt28) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.CreateTime) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.CreateTime) + } else { + z.EncFallback(x.CreateTime) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.CreateTime) + } else if yyxt29 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt29 != nil { + z.EncExtension(x.CreateTime, yyxt29) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.CreateTime) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.CreateTime) + } else { + z.EncFallback(x.CreateTime) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.ModifyTime) + } else if yyxt31 := z.Extension(z.I2Rtid(x.ModifyTime)); yyxt31 != nil { + z.EncExtension(x.ModifyTime, yyxt31) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.ModifyTime) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.ModifyTime) + } else { + z.EncFallback(x.ModifyTime) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyTime`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.ModifyTime) + } else if yyxt32 := z.Extension(z.I2Rtid(x.ModifyTime)); yyxt32 != nil { + z.EncExtension(x.ModifyTime, yyxt32) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.ModifyTime) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.ModifyTime) + } else { + z.EncFallback(x.ModifyTime) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLAuthMethod) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(x) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLAuthMethod) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + case "TokenLocality": + if r.TryDecodeAsNil() { + x.TokenLocality = "" + } else { + x.TokenLocality = (string)(r.DecodeString()) + } + case "TokenNameFormat": + if r.TryDecodeAsNil() { + x.TokenNameFormat = "" + } else { + x.TokenNameFormat = (string)(r.DecodeString()) + } + case "MaxTokenTTL": + if r.TryDecodeAsNil() { + x.MaxTokenTTL = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxTokenTTL)); yyxt9 != nil { + z.DecExtension(x.MaxTokenTTL, yyxt9) + } else { + x.MaxTokenTTL = (time.Duration)(r.DecodeInt64()) + } + } + case "Default": + if r.TryDecodeAsNil() { + x.Default = false + } else { + x.Default = (bool)(r.DecodeBool()) + } + case "Config": + if r.TryDecodeAsNil() { + if true && x.Config != nil { + x.Config = nil + } + } else { + if x.Config == nil { + x.Config = new(ACLAuthMethodConfig) + } + + x.Config.CodecDecodeSelf(d) + } + case "Hash": + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } + case "CreateTime": + if r.TryDecodeAsNil() { + x.CreateTime = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.CreateTime = r.DecodeTime() + } else if yyxt15 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt15 != nil { + z.DecExtension(x.CreateTime, yyxt15) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.CreateTime) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.CreateTime) + } else { + z.DecFallback(&x.CreateTime, false) + } + } + case "ModifyTime": + if r.TryDecodeAsNil() { + x.ModifyTime = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.ModifyTime = r.DecodeTime() + } else if yyxt17 := z.Extension(z.I2Rtid(x.ModifyTime)); yyxt17 != nil { + z.DecExtension(x.ModifyTime, yyxt17) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.ModifyTime) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.ModifyTime) + } else { + z.DecFallback(&x.ModifyTime, false) + } + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLAuthMethod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj20 int + var yyb20 bool + var yyhl20 bool = l >= 0 + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TokenLocality = "" + } else { + x.TokenLocality = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TokenNameFormat = "" + } else { + x.TokenNameFormat = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MaxTokenTTL = 0 + } else { + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxTokenTTL)); yyxt26 != nil { + z.DecExtension(x.MaxTokenTTL, yyxt26) + } else { + x.MaxTokenTTL = (time.Duration)(r.DecodeInt64()) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Default = false + } else { + x.Default = (bool)(r.DecodeBool()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Config != nil { + x.Config = nil + } + } else { + if x.Config == nil { + x.Config = new(ACLAuthMethodConfig) + } + + x.Config.CodecDecodeSelf(d) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateTime = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.CreateTime = r.DecodeTime() + } else if yyxt32 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt32 != nil { + z.DecExtension(x.CreateTime, yyxt32) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.CreateTime) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.CreateTime) + } else { + z.DecFallback(&x.CreateTime, false) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyTime = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.ModifyTime = r.DecodeTime() + } else if yyxt34 := z.Extension(z.I2Rtid(x.ModifyTime)); yyxt34 != nil { + z.DecExtension(x.ModifyTime, yyxt34) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.ModifyTime) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.ModifyTime) + } else { + z.DecFallback(&x.ModifyTime, false) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj20-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLAuthMethodConfig) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(21) + } else { + r.WriteMapStart(21) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.JWTValidationPubKeys == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.JWTValidationPubKeys), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JWTValidationPubKeys\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JWTValidationPubKeys`) + } + r.WriteMapElemValue() + if x.JWTValidationPubKeys == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.JWTValidationPubKeys), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JWKSURL))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JWKSURL)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JWKSURL\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JWKSURL`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JWKSURL))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JWKSURL)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.OIDCDiscoveryURL))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.OIDCDiscoveryURL)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"OIDCDiscoveryURL\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `OIDCDiscoveryURL`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.OIDCDiscoveryURL))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.OIDCDiscoveryURL)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.OIDCClientID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.OIDCClientID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"OIDCClientID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `OIDCClientID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.OIDCClientID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.OIDCClientID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.OIDCClientSecret))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.OIDCClientSecret)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"OIDCClientSecret\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `OIDCClientSecret`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.OIDCClientSecret))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.OIDCClientSecret)) + } + } + } + var yyn18 bool + if x.OIDCClientAssertion == nil { + yyn18 = true + goto LABEL18 + } + LABEL18: + if yyr2 || yy2arr2 { + if yyn18 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.OIDCClientAssertion == nil { + r.EncodeNil() + } else { + x.OIDCClientAssertion.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"OIDCClientAssertion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `OIDCClientAssertion`) + } + r.WriteMapElemValue() + if yyn18 { + r.EncodeNil() + } else { + if x.OIDCClientAssertion == nil { + r.EncodeNil() + } else { + x.OIDCClientAssertion.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.OIDCEnablePKCE)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"OIDCEnablePKCE\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `OIDCEnablePKCE`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.OIDCEnablePKCE)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.OIDCDisableUserInfo)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"OIDCDisableUserInfo\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `OIDCDisableUserInfo`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.OIDCDisableUserInfo)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.OIDCScopes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.OIDCScopes), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"OIDCScopes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `OIDCScopes`) + } + r.WriteMapElemValue() + if x.OIDCScopes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.OIDCScopes), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.BoundAudiences == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.BoundAudiences), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"BoundAudiences\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `BoundAudiences`) + } + r.WriteMapElemValue() + if x.BoundAudiences == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.BoundAudiences), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.BoundIssuer == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.BoundIssuer), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"BoundIssuer\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `BoundIssuer`) + } + r.WriteMapElemValue() + if x.BoundIssuer == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.BoundIssuer), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.AllowedRedirectURIs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.AllowedRedirectURIs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowedRedirectURIs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowedRedirectURIs`) + } + r.WriteMapElemValue() + if x.AllowedRedirectURIs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.AllowedRedirectURIs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.DiscoveryCaPem == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.DiscoveryCaPem), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DiscoveryCaPem\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DiscoveryCaPem`) + } + r.WriteMapElemValue() + if x.DiscoveryCaPem == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.DiscoveryCaPem), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JWKSCACert))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JWKSCACert)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JWKSCACert\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JWKSCACert`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JWKSCACert))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JWKSCACert)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.SigningAlgs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.SigningAlgs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SigningAlgs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SigningAlgs`) + } + r.WriteMapElemValue() + if x.SigningAlgs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.SigningAlgs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt49 := z.Extension(z.I2Rtid(x.ExpirationLeeway)); yyxt49 != nil { + z.EncExtension(x.ExpirationLeeway, yyxt49) + } else { + r.EncodeInt(int64(x.ExpirationLeeway)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ExpirationLeeway\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ExpirationLeeway`) + } + r.WriteMapElemValue() + if false { + } else if yyxt50 := z.Extension(z.I2Rtid(x.ExpirationLeeway)); yyxt50 != nil { + z.EncExtension(x.ExpirationLeeway, yyxt50) + } else { + r.EncodeInt(int64(x.ExpirationLeeway)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt52 := z.Extension(z.I2Rtid(x.NotBeforeLeeway)); yyxt52 != nil { + z.EncExtension(x.NotBeforeLeeway, yyxt52) + } else { + r.EncodeInt(int64(x.NotBeforeLeeway)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NotBeforeLeeway\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NotBeforeLeeway`) + } + r.WriteMapElemValue() + if false { + } else if yyxt53 := z.Extension(z.I2Rtid(x.NotBeforeLeeway)); yyxt53 != nil { + z.EncExtension(x.NotBeforeLeeway, yyxt53) + } else { + r.EncodeInt(int64(x.NotBeforeLeeway)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt55 := z.Extension(z.I2Rtid(x.ClockSkewLeeway)); yyxt55 != nil { + z.EncExtension(x.ClockSkewLeeway, yyxt55) + } else { + r.EncodeInt(int64(x.ClockSkewLeeway)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ClockSkewLeeway\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ClockSkewLeeway`) + } + r.WriteMapElemValue() + if false { + } else if yyxt56 := z.Extension(z.I2Rtid(x.ClockSkewLeeway)); yyxt56 != nil { + z.EncExtension(x.ClockSkewLeeway, yyxt56) + } else { + r.EncodeInt(int64(x.ClockSkewLeeway)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ClaimMappings == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.ClaimMappings), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ClaimMappings\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ClaimMappings`) + } + r.WriteMapElemValue() + if x.ClaimMappings == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.ClaimMappings), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ListClaimMappings == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.ListClaimMappings), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ListClaimMappings\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ListClaimMappings`) + } + r.WriteMapElemValue() + if x.ListClaimMappings == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.ListClaimMappings), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.VerboseLogging)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VerboseLogging\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `VerboseLogging`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.VerboseLogging)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLAuthMethodConfig) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(x) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLAuthMethodConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JWTValidationPubKeys": + if r.TryDecodeAsNil() { + x.JWTValidationPubKeys = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.JWTValidationPubKeys), d) + } + } + case "JWKSURL": + if r.TryDecodeAsNil() { + x.JWKSURL = "" + } else { + x.JWKSURL = (string)(r.DecodeString()) + } + case "OIDCDiscoveryURL": + if r.TryDecodeAsNil() { + x.OIDCDiscoveryURL = "" + } else { + x.OIDCDiscoveryURL = (string)(r.DecodeString()) + } + case "OIDCClientID": + if r.TryDecodeAsNil() { + x.OIDCClientID = "" + } else { + x.OIDCClientID = (string)(r.DecodeString()) + } + case "OIDCClientSecret": + if r.TryDecodeAsNil() { + x.OIDCClientSecret = "" + } else { + x.OIDCClientSecret = (string)(r.DecodeString()) + } + case "OIDCClientAssertion": + if r.TryDecodeAsNil() { + if true && x.OIDCClientAssertion != nil { + x.OIDCClientAssertion = nil + } + } else { + if x.OIDCClientAssertion == nil { + x.OIDCClientAssertion = new(OIDCClientAssertion) + } + + x.OIDCClientAssertion.CodecDecodeSelf(d) + } + case "OIDCEnablePKCE": + if r.TryDecodeAsNil() { + x.OIDCEnablePKCE = false + } else { + x.OIDCEnablePKCE = (bool)(r.DecodeBool()) + } + case "OIDCDisableUserInfo": + if r.TryDecodeAsNil() { + x.OIDCDisableUserInfo = false + } else { + x.OIDCDisableUserInfo = (bool)(r.DecodeBool()) + } + case "OIDCScopes": + if r.TryDecodeAsNil() { + x.OIDCScopes = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.OIDCScopes), d) + } + } + case "BoundAudiences": + if r.TryDecodeAsNil() { + x.BoundAudiences = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.BoundAudiences), d) + } + } + case "BoundIssuer": + if r.TryDecodeAsNil() { + x.BoundIssuer = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.BoundIssuer), d) + } + } + case "AllowedRedirectURIs": + if r.TryDecodeAsNil() { + x.AllowedRedirectURIs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.AllowedRedirectURIs), d) + } + } + case "DiscoveryCaPem": + if r.TryDecodeAsNil() { + x.DiscoveryCaPem = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.DiscoveryCaPem), d) + } + } + case "JWKSCACert": + if r.TryDecodeAsNil() { + x.JWKSCACert = "" + } else { + x.JWKSCACert = (string)(r.DecodeString()) + } + case "SigningAlgs": + if r.TryDecodeAsNil() { + x.SigningAlgs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.SigningAlgs), d) + } + } + case "ExpirationLeeway": + if r.TryDecodeAsNil() { + x.ExpirationLeeway = 0 + } else { + if false { + } else if yyxt27 := z.Extension(z.I2Rtid(x.ExpirationLeeway)); yyxt27 != nil { + z.DecExtension(x.ExpirationLeeway, yyxt27) + } else { + x.ExpirationLeeway = (time.Duration)(r.DecodeInt64()) + } + } + case "NotBeforeLeeway": + if r.TryDecodeAsNil() { + x.NotBeforeLeeway = 0 + } else { + if false { + } else if yyxt29 := z.Extension(z.I2Rtid(x.NotBeforeLeeway)); yyxt29 != nil { + z.DecExtension(x.NotBeforeLeeway, yyxt29) + } else { + x.NotBeforeLeeway = (time.Duration)(r.DecodeInt64()) + } + } + case "ClockSkewLeeway": + if r.TryDecodeAsNil() { + x.ClockSkewLeeway = 0 + } else { + if false { + } else if yyxt31 := z.Extension(z.I2Rtid(x.ClockSkewLeeway)); yyxt31 != nil { + z.DecExtension(x.ClockSkewLeeway, yyxt31) + } else { + x.ClockSkewLeeway = (time.Duration)(r.DecodeInt64()) + } + } + case "ClaimMappings": + if r.TryDecodeAsNil() { + x.ClaimMappings = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.ClaimMappings), d) + } + } + case "ListClaimMappings": + if r.TryDecodeAsNil() { + x.ListClaimMappings = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.ListClaimMappings), d) + } + } + case "VerboseLogging": + if r.TryDecodeAsNil() { + x.VerboseLogging = false + } else { + x.VerboseLogging = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLAuthMethodConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj37 int + var yyb37 bool + var yyhl37 bool = l >= 0 + yyj37++ + if yyhl37 { + yyb37 = yyj37 > l + } else { + yyb37 = r.CheckBreak() + } + if yyb37 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JWTValidationPubKeys = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.JWTValidationPubKeys), d) + } + } + yyj37++ + if yyhl37 { + yyb37 = yyj37 > l + } else { + yyb37 = r.CheckBreak() + } + if yyb37 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JWKSURL = "" + } else { + x.JWKSURL = (string)(r.DecodeString()) + } + yyj37++ + if yyhl37 { + yyb37 = yyj37 > l + } else { + yyb37 = r.CheckBreak() + } + if yyb37 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.OIDCDiscoveryURL = "" + } else { + x.OIDCDiscoveryURL = (string)(r.DecodeString()) + } + yyj37++ + if yyhl37 { + yyb37 = yyj37 > l + } else { + yyb37 = r.CheckBreak() + } + if yyb37 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.OIDCClientID = "" + } else { + x.OIDCClientID = (string)(r.DecodeString()) + } + yyj37++ + if yyhl37 { + yyb37 = yyj37 > l + } else { + yyb37 = r.CheckBreak() + } + if yyb37 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.OIDCClientSecret = "" + } else { + x.OIDCClientSecret = (string)(r.DecodeString()) + } + yyj37++ + if yyhl37 { + yyb37 = yyj37 > l + } else { + yyb37 = r.CheckBreak() + } + if yyb37 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.OIDCClientAssertion != nil { + x.OIDCClientAssertion = nil + } + } else { + if x.OIDCClientAssertion == nil { + x.OIDCClientAssertion = new(OIDCClientAssertion) + } + + x.OIDCClientAssertion.CodecDecodeSelf(d) + } + yyj37++ + if yyhl37 { + yyb37 = yyj37 > l + } else { + yyb37 = r.CheckBreak() + } + if yyb37 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.OIDCEnablePKCE = false + } else { + x.OIDCEnablePKCE = (bool)(r.DecodeBool()) + } + yyj37++ + if yyhl37 { + yyb37 = yyj37 > l + } else { + yyb37 = r.CheckBreak() + } + if yyb37 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.OIDCDisableUserInfo = false + } else { + x.OIDCDisableUserInfo = (bool)(r.DecodeBool()) + } + yyj37++ + if yyhl37 { + yyb37 = yyj37 > l + } else { + yyb37 = r.CheckBreak() + } + if yyb37 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.OIDCScopes = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.OIDCScopes), d) + } + } + yyj37++ + if yyhl37 { + yyb37 = yyj37 > l + } else { + yyb37 = r.CheckBreak() + } + if yyb37 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.BoundAudiences = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.BoundAudiences), d) + } + } + yyj37++ + if yyhl37 { + yyb37 = yyj37 > l + } else { + yyb37 = r.CheckBreak() + } + if yyb37 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.BoundIssuer = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.BoundIssuer), d) + } + } + yyj37++ + if yyhl37 { + yyb37 = yyj37 > l + } else { + yyb37 = r.CheckBreak() + } + if yyb37 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllowedRedirectURIs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.AllowedRedirectURIs), d) + } + } + yyj37++ + if yyhl37 { + yyb37 = yyj37 > l + } else { + yyb37 = r.CheckBreak() + } + if yyb37 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DiscoveryCaPem = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.DiscoveryCaPem), d) + } + } + yyj37++ + if yyhl37 { + yyb37 = yyj37 > l + } else { + yyb37 = r.CheckBreak() + } + if yyb37 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JWKSCACert = "" + } else { + x.JWKSCACert = (string)(r.DecodeString()) + } + yyj37++ + if yyhl37 { + yyb37 = yyj37 > l + } else { + yyb37 = r.CheckBreak() + } + if yyb37 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SigningAlgs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.SigningAlgs), d) + } + } + yyj37++ + if yyhl37 { + yyb37 = yyj37 > l + } else { + yyb37 = r.CheckBreak() + } + if yyb37 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ExpirationLeeway = 0 + } else { + if false { + } else if yyxt61 := z.Extension(z.I2Rtid(x.ExpirationLeeway)); yyxt61 != nil { + z.DecExtension(x.ExpirationLeeway, yyxt61) + } else { + x.ExpirationLeeway = (time.Duration)(r.DecodeInt64()) + } + } + yyj37++ + if yyhl37 { + yyb37 = yyj37 > l + } else { + yyb37 = r.CheckBreak() + } + if yyb37 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NotBeforeLeeway = 0 + } else { + if false { + } else if yyxt63 := z.Extension(z.I2Rtid(x.NotBeforeLeeway)); yyxt63 != nil { + z.DecExtension(x.NotBeforeLeeway, yyxt63) + } else { + x.NotBeforeLeeway = (time.Duration)(r.DecodeInt64()) + } + } + yyj37++ + if yyhl37 { + yyb37 = yyj37 > l + } else { + yyb37 = r.CheckBreak() + } + if yyb37 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ClockSkewLeeway = 0 + } else { + if false { + } else if yyxt65 := z.Extension(z.I2Rtid(x.ClockSkewLeeway)); yyxt65 != nil { + z.DecExtension(x.ClockSkewLeeway, yyxt65) + } else { + x.ClockSkewLeeway = (time.Duration)(r.DecodeInt64()) + } + } + yyj37++ + if yyhl37 { + yyb37 = yyj37 > l + } else { + yyb37 = r.CheckBreak() + } + if yyb37 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ClaimMappings = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.ClaimMappings), d) + } + } + yyj37++ + if yyhl37 { + yyb37 = yyj37 > l + } else { + yyb37 = r.CheckBreak() + } + if yyb37 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ListClaimMappings = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.ListClaimMappings), d) + } + } + yyj37++ + if yyhl37 { + yyb37 = yyj37 > l + } else { + yyb37 = r.CheckBreak() + } + if yyb37 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VerboseLogging = false + } else { + x.VerboseLogging = (bool)(r.DecodeBool()) + } + for { + yyj37++ + if yyhl37 { + yyb37 = yyj37 > l + } else { + yyb37 = r.CheckBreak() + } + if yyb37 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj37-1, "") + } + r.ReadArrayEnd() +} + +func (x OIDCClientAssertionKeySource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) + } + } +} + +func (x *OIDCClientAssertionKeySource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (OIDCClientAssertionKeySource)(r.DecodeString()) + } +} + +func (x *OIDCClientAssertion) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.KeySource.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KeySource\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KeySource`) + } + r.WriteMapElemValue() + x.KeySource.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Audience == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Audience), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Audience\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Audience`) + } + r.WriteMapElemValue() + if x.Audience == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Audience), e) + } + } + } + var yyn9 bool + if x.PrivateKey == nil { + yyn9 = true + goto LABEL9 + } + LABEL9: + if yyr2 || yy2arr2 { + if yyn9 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.PrivateKey == nil { + r.EncodeNil() + } else { + x.PrivateKey.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PrivateKey\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PrivateKey`) + } + r.WriteMapElemValue() + if yyn9 { + r.EncodeNil() + } else { + if x.PrivateKey == nil { + r.EncodeNil() + } else { + x.PrivateKey.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ExtraHeaders == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.ExtraHeaders), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ExtraHeaders\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ExtraHeaders`) + } + r.WriteMapElemValue() + if x.ExtraHeaders == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.ExtraHeaders), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KeyAlgorithm))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KeyAlgorithm)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KeyAlgorithm\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KeyAlgorithm`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KeyAlgorithm))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KeyAlgorithm)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientSecret))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientSecret)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ClientSecret\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ClientSecret`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientSecret))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientSecret)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *OIDCClientAssertion) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *OIDCClientAssertion) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "KeySource": + if r.TryDecodeAsNil() { + x.KeySource = "" + } else { + x.KeySource.CodecDecodeSelf(d) + } + case "Audience": + if r.TryDecodeAsNil() { + x.Audience = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Audience), d) + } + } + case "PrivateKey": + if r.TryDecodeAsNil() { + if true && x.PrivateKey != nil { + x.PrivateKey = nil + } + } else { + if x.PrivateKey == nil { + x.PrivateKey = new(OIDCClientAssertionKey) + } + + x.PrivateKey.CodecDecodeSelf(d) + } + case "ExtraHeaders": + if r.TryDecodeAsNil() { + x.ExtraHeaders = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.ExtraHeaders), d) + } + } + case "KeyAlgorithm": + if r.TryDecodeAsNil() { + x.KeyAlgorithm = "" + } else { + x.KeyAlgorithm = (string)(r.DecodeString()) + } + case "ClientSecret": + if r.TryDecodeAsNil() { + x.ClientSecret = "" + } else { + x.ClientSecret = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *OIDCClientAssertion) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.KeySource = "" + } else { + x.KeySource.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Audience = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Audience), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.PrivateKey != nil { + x.PrivateKey = nil + } + } else { + if x.PrivateKey == nil { + x.PrivateKey = new(OIDCClientAssertionKey) + } + + x.PrivateKey.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ExtraHeaders = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.ExtraHeaders), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.KeyAlgorithm = "" + } else { + x.KeyAlgorithm = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ClientSecret = "" + } else { + x.ClientSecret = (string)(r.DecodeString()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x OIDCClientAssertionKeyIDHeader) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) + } + } +} + +func (x *OIDCClientAssertionKeyIDHeader) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (OIDCClientAssertionKeyIDHeader)(r.DecodeString()) + } +} + +func (x *OIDCClientAssertionKey) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PemKey))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PemKey)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PemKey\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PemKey`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PemKey))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PemKey)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PemKeyFile))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PemKeyFile)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PemKeyFile\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PemKeyFile`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PemKeyFile))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PemKeyFile)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.KeyIDHeader.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KeyIDHeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KeyIDHeader`) + } + r.WriteMapElemValue() + x.KeyIDHeader.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PemCert))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PemCert)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PemCert\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PemCert`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PemCert))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PemCert)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PemCertFile))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PemCertFile)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PemCertFile\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PemCertFile`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PemCertFile))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PemCertFile)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KeyID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KeyID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KeyID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KeyID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KeyID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KeyID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *OIDCClientAssertionKey) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *OIDCClientAssertionKey) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "PemKey": + if r.TryDecodeAsNil() { + x.PemKey = "" + } else { + x.PemKey = (string)(r.DecodeString()) + } + case "PemKeyFile": + if r.TryDecodeAsNil() { + x.PemKeyFile = "" + } else { + x.PemKeyFile = (string)(r.DecodeString()) + } + case "KeyIDHeader": + if r.TryDecodeAsNil() { + x.KeyIDHeader = "" + } else { + x.KeyIDHeader.CodecDecodeSelf(d) + } + case "PemCert": + if r.TryDecodeAsNil() { + x.PemCert = "" + } else { + x.PemCert = (string)(r.DecodeString()) + } + case "PemCertFile": + if r.TryDecodeAsNil() { + x.PemCertFile = "" + } else { + x.PemCertFile = (string)(r.DecodeString()) + } + case "KeyID": + if r.TryDecodeAsNil() { + x.KeyID = "" + } else { + x.KeyID = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *OIDCClientAssertionKey) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PemKey = "" + } else { + x.PemKey = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PemKeyFile = "" + } else { + x.PemKeyFile = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.KeyIDHeader = "" + } else { + x.KeyIDHeader.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PemCert = "" + } else { + x.PemCert = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PemCertFile = "" + } else { + x.PemCertFile = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.KeyID = "" + } else { + x.KeyID = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLAuthClaims) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Value == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Value), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Value\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Value`) + } + r.WriteMapElemValue() + if x.Value == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Value), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.List == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicestring((map[string][]string)(x.List), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"List\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `List`) + } + r.WriteMapElemValue() + if x.List == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicestring((map[string][]string)(x.List), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLAuthClaims) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLAuthClaims) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Value": + if r.TryDecodeAsNil() { + x.Value = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Value), d) + } + } + case "List": + if r.TryDecodeAsNil() { + x.List = nil + } else { + if false { + } else { + h.decMapstringSlicestring((*map[string][]string)(&x.List), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLAuthClaims) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Value = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Value), d) + } + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.List = nil + } else { + if false { + } else { + h.decMapstringSlicestring((*map[string][]string)(&x.List), d) + } + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLAuthMethodStub) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Default)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Default\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Default`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Default)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Hash\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Hash`) + } + r.WriteMapElemValue() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLAuthMethodStub) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLAuthMethodStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + case "Default": + if r.TryDecodeAsNil() { + x.Default = false + } else { + x.Default = (bool)(r.DecodeBool()) + } + case "Hash": + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLAuthMethodStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Default = false + } else { + x.Default = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLAuthMethodListRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(12) + } else { + r.WriteMapStart(12) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.EncExtension(x.MaxQueryTime, yyxt13) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { + z.EncExtension(x.MaxQueryTime, yyxt14) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLAuthMethodListRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLAuthMethodListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { + z.DecExtension(x.MaxQueryTime, yyxt8) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLAuthMethodListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { + z.DecExtension(x.MaxQueryTime, yyxt22) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLAuthMethodListResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.AuthMethods == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLAuthMethodStub(([]*ACLAuthMethodStub)(x.AuthMethods), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthMethods\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthMethods`) + } + r.WriteMapElemValue() + if x.AuthMethods == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLAuthMethodStub(([]*ACLAuthMethodStub)(x.AuthMethods), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLAuthMethodListResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLAuthMethodListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AuthMethods": + if r.TryDecodeAsNil() { + x.AuthMethods = nil + } else { + if false { + } else { + h.decSlicePtrtoACLAuthMethodStub((*[]*ACLAuthMethodStub)(&x.AuthMethods), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLAuthMethodListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AuthMethods = nil + } else { + if false { + } else { + h.decSlicePtrtoACLAuthMethodStub((*[]*ACLAuthMethodStub)(&x.AuthMethods), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLAuthMethodGetRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.MethodName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.MethodName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MethodName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MethodName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.MethodName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.MethodName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLAuthMethodGetRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLAuthMethodGetRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "MethodName": + if r.TryDecodeAsNil() { + x.MethodName = "" + } else { + x.MethodName = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLAuthMethodGetRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MethodName = "" + } else { + x.MethodName = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt24 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt24 != nil { + z.DecExtension(x.MaxQueryTime, yyxt24) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLAuthMethodGetResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + var yyn3 bool + if x.AuthMethod == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.AuthMethod == nil { + r.EncodeNil() + } else { + x.AuthMethod.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthMethod\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthMethod`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.AuthMethod == nil { + r.EncodeNil() + } else { + x.AuthMethod.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLAuthMethodGetResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLAuthMethodGetResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AuthMethod": + if r.TryDecodeAsNil() { + if true && x.AuthMethod != nil { + x.AuthMethod = nil + } + } else { + if x.AuthMethod == nil { + x.AuthMethod = new(ACLAuthMethod) + } + + x.AuthMethod.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLAuthMethodGetResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.AuthMethod != nil { + x.AuthMethod = nil + } + } else { + if x.AuthMethod == nil { + x.AuthMethod = new(ACLAuthMethod) + } + + x.AuthMethod.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.DecExtension(x.LastContact, yyxt14) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLAuthMethodsGetRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Names == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Names), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Names\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Names`) + } + r.WriteMapElemValue() + if x.Names == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Names), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLAuthMethodsGetRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLAuthMethodsGetRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Names": + if r.TryDecodeAsNil() { + x.Names = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Names), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLAuthMethodsGetRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj19 int + var yyb19 bool + var yyhl19 bool = l >= 0 + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Names = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Names), d) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { + z.DecExtension(x.MaxQueryTime, yyxt26) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj19-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLAuthMethodsGetResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.AuthMethods == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoACLAuthMethod((map[string]*ACLAuthMethod)(x.AuthMethods), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthMethods\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthMethods`) + } + r.WriteMapElemValue() + if x.AuthMethods == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoACLAuthMethod((map[string]*ACLAuthMethod)(x.AuthMethods), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLAuthMethodsGetResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLAuthMethodsGetResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AuthMethods": + if r.TryDecodeAsNil() { + x.AuthMethods = nil + } else { + if false { + } else { + h.decMapstringPtrtoACLAuthMethod((*map[string]*ACLAuthMethod)(&x.AuthMethods), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLAuthMethodsGetResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AuthMethods = nil + } else { + if false { + } else { + h.decMapstringPtrtoACLAuthMethod((*map[string]*ACLAuthMethod)(&x.AuthMethods), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLAuthMethodUpsertRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.AuthMethods == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLAuthMethod(([]*ACLAuthMethod)(x.AuthMethods), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthMethods\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthMethods`) + } + r.WriteMapElemValue() + if x.AuthMethods == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLAuthMethod(([]*ACLAuthMethod)(x.AuthMethods), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLAuthMethodUpsertRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLAuthMethodUpsertRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AuthMethods": + if r.TryDecodeAsNil() { + x.AuthMethods = nil + } else { + if false { + } else { + h.decSlicePtrtoACLAuthMethod((*[]*ACLAuthMethod)(&x.AuthMethods), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLAuthMethodUpsertRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AuthMethods = nil + } else { + if false { + } else { + h.decSlicePtrtoACLAuthMethod((*[]*ACLAuthMethod)(&x.AuthMethods), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLAuthMethodUpsertResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.AuthMethods == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLAuthMethod(([]*ACLAuthMethod)(x.AuthMethods), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthMethods\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthMethods`) + } + r.WriteMapElemValue() + if x.AuthMethods == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLAuthMethod(([]*ACLAuthMethod)(x.AuthMethods), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLAuthMethodUpsertResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLAuthMethodUpsertResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AuthMethods": + if r.TryDecodeAsNil() { + x.AuthMethods = nil + } else { + if false { + } else { + h.decSlicePtrtoACLAuthMethod((*[]*ACLAuthMethod)(&x.AuthMethods), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLAuthMethodUpsertResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AuthMethods = nil + } else { + if false { + } else { + h.decSlicePtrtoACLAuthMethod((*[]*ACLAuthMethod)(&x.AuthMethods), d) + } + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLAuthMethodDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Names == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Names), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Names\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Names`) + } + r.WriteMapElemValue() + if x.Names == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Names), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLAuthMethodDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLAuthMethodDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Names": + if r.TryDecodeAsNil() { + x.Names = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Names), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLAuthMethodDeleteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Names = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Names), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLAuthMethodDeleteResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLAuthMethodDeleteResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLAuthMethodDeleteResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLAuthMethodDeleteResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLWhoAmIResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + var yyn3 bool + if x.Identity == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Identity == nil { + r.EncodeNil() + } else { + x.Identity.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Identity\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Identity`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Identity == nil { + r.EncodeNil() + } else { + x.Identity.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLWhoAmIResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLWhoAmIResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Identity": + if r.TryDecodeAsNil() { + if true && x.Identity != nil { + x.Identity = nil + } + } else { + if x.Identity == nil { + x.Identity = new(AuthenticatedIdentity) + } + + x.Identity.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLWhoAmIResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Identity != nil { + x.Identity = nil + } + } else { + if x.Identity == nil { + x.Identity = new(AuthenticatedIdentity) + } + + x.Identity.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.DecExtension(x.LastContact, yyxt14) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLBindingRule) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(11) + } else { + r.WriteMapStart(11) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Description\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Description`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthMethod))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthMethod)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthMethod\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthMethod`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthMethod))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthMethod)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Selector))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Selector)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Selector\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Selector`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Selector))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Selector)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.BindType))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.BindType)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"BindType\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `BindType`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.BindType))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.BindType)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.BindName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.BindName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"BindName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `BindName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.BindName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.BindName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Hash\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Hash`) + } + r.WriteMapElemValue() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.CreateTime) + } else if yyxt25 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt25 != nil { + z.EncExtension(x.CreateTime, yyxt25) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.CreateTime) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.CreateTime) + } else { + z.EncFallback(x.CreateTime) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.CreateTime) + } else if yyxt26 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt26 != nil { + z.EncExtension(x.CreateTime, yyxt26) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.CreateTime) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.CreateTime) + } else { + z.EncFallback(x.CreateTime) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.ModifyTime) + } else if yyxt28 := z.Extension(z.I2Rtid(x.ModifyTime)); yyxt28 != nil { + z.EncExtension(x.ModifyTime, yyxt28) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.ModifyTime) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.ModifyTime) + } else { + z.EncFallback(x.ModifyTime) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyTime`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.ModifyTime) + } else if yyxt29 := z.Extension(z.I2Rtid(x.ModifyTime)); yyxt29 != nil { + z.EncExtension(x.ModifyTime, yyxt29) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.ModifyTime) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.ModifyTime) + } else { + z.EncFallback(x.ModifyTime) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLBindingRule) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLBindingRule) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Description": + if r.TryDecodeAsNil() { + x.Description = "" + } else { + x.Description = (string)(r.DecodeString()) + } + case "AuthMethod": + if r.TryDecodeAsNil() { + x.AuthMethod = "" + } else { + x.AuthMethod = (string)(r.DecodeString()) + } + case "Selector": + if r.TryDecodeAsNil() { + x.Selector = "" + } else { + x.Selector = (string)(r.DecodeString()) + } + case "BindType": + if r.TryDecodeAsNil() { + x.BindType = "" + } else { + x.BindType = (string)(r.DecodeString()) + } + case "BindName": + if r.TryDecodeAsNil() { + x.BindName = "" + } else { + x.BindName = (string)(r.DecodeString()) + } + case "Hash": + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } + case "CreateTime": + if r.TryDecodeAsNil() { + x.CreateTime = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.CreateTime = r.DecodeTime() + } else if yyxt13 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt13 != nil { + z.DecExtension(x.CreateTime, yyxt13) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.CreateTime) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.CreateTime) + } else { + z.DecFallback(&x.CreateTime, false) + } + } + case "ModifyTime": + if r.TryDecodeAsNil() { + x.ModifyTime = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.ModifyTime = r.DecodeTime() + } else if yyxt15 := z.Extension(z.I2Rtid(x.ModifyTime)); yyxt15 != nil { + z.DecExtension(x.ModifyTime, yyxt15) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.ModifyTime) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.ModifyTime) + } else { + z.DecFallback(&x.ModifyTime, false) + } + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLBindingRule) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Description = "" + } else { + x.Description = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AuthMethod = "" + } else { + x.AuthMethod = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Selector = "" + } else { + x.Selector = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.BindType = "" + } else { + x.BindType = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.BindName = "" + } else { + x.BindName = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateTime = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.CreateTime = r.DecodeTime() + } else if yyxt28 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt28 != nil { + z.DecExtension(x.CreateTime, yyxt28) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.CreateTime) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.CreateTime) + } else { + z.DecFallback(&x.CreateTime, false) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyTime = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.ModifyTime = r.DecodeTime() + } else if yyxt30 := z.Extension(z.I2Rtid(x.ModifyTime)); yyxt30 != nil { + z.DecExtension(x.ModifyTime, yyxt30) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.ModifyTime) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.ModifyTime) + } else { + z.DecFallback(&x.ModifyTime, false) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLBindingRuleListStub) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Description\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Description`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthMethod))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthMethod)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthMethod\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthMethod`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthMethod))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthMethod)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Hash\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Hash`) + } + r.WriteMapElemValue() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLBindingRuleListStub) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLBindingRuleListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Description": + if r.TryDecodeAsNil() { + x.Description = "" + } else { + x.Description = (string)(r.DecodeString()) + } + case "AuthMethod": + if r.TryDecodeAsNil() { + x.AuthMethod = "" + } else { + x.AuthMethod = (string)(r.DecodeString()) + } + case "Hash": + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLBindingRuleListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Description = "" + } else { + x.Description = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AuthMethod = "" + } else { + x.AuthMethod = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLBindingRulesUpsertRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ACLBindingRules == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLBindingRule(([]*ACLBindingRule)(x.ACLBindingRules), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ACLBindingRules\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ACLBindingRules`) + } + r.WriteMapElemValue() + if x.ACLBindingRules == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLBindingRule(([]*ACLBindingRule)(x.ACLBindingRules), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowMissingAuthMethods)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowMissingAuthMethods\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowMissingAuthMethods`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowMissingAuthMethods)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLBindingRulesUpsertRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLBindingRulesUpsertRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ACLBindingRules": + if r.TryDecodeAsNil() { + x.ACLBindingRules = nil + } else { + if false { + } else { + h.decSlicePtrtoACLBindingRule((*[]*ACLBindingRule)(&x.ACLBindingRules), d) + } + } + case "AllowMissingAuthMethods": + if r.TryDecodeAsNil() { + x.AllowMissingAuthMethods = false + } else { + x.AllowMissingAuthMethods = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLBindingRulesUpsertRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ACLBindingRules = nil + } else { + if false { + } else { + h.decSlicePtrtoACLBindingRule((*[]*ACLBindingRule)(&x.ACLBindingRules), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllowMissingAuthMethods = false + } else { + x.AllowMissingAuthMethods = (bool)(r.DecodeBool()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLBindingRulesUpsertResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ACLBindingRules == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLBindingRule(([]*ACLBindingRule)(x.ACLBindingRules), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ACLBindingRules\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ACLBindingRules`) + } + r.WriteMapElemValue() + if x.ACLBindingRules == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLBindingRule(([]*ACLBindingRule)(x.ACLBindingRules), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLBindingRulesUpsertResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLBindingRulesUpsertResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ACLBindingRules": + if r.TryDecodeAsNil() { + x.ACLBindingRules = nil + } else { + if false { + } else { + h.decSlicePtrtoACLBindingRule((*[]*ACLBindingRule)(&x.ACLBindingRules), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLBindingRulesUpsertResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ACLBindingRules = nil + } else { + if false { + } else { + h.decSlicePtrtoACLBindingRule((*[]*ACLBindingRule)(&x.ACLBindingRules), d) + } + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLBindingRulesDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ACLBindingRuleIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.ACLBindingRuleIDs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ACLBindingRuleIDs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ACLBindingRuleIDs`) + } + r.WriteMapElemValue() + if x.ACLBindingRuleIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.ACLBindingRuleIDs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLBindingRulesDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLBindingRulesDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ACLBindingRuleIDs": + if r.TryDecodeAsNil() { + x.ACLBindingRuleIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.ACLBindingRuleIDs), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLBindingRulesDeleteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ACLBindingRuleIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.ACLBindingRuleIDs), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLBindingRulesDeleteResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLBindingRulesDeleteResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLBindingRulesDeleteResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLBindingRulesDeleteResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLBindingRulesListRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(12) + } else { + r.WriteMapStart(12) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.EncExtension(x.MaxQueryTime, yyxt13) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { + z.EncExtension(x.MaxQueryTime, yyxt14) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLBindingRulesListRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLBindingRulesListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { + z.DecExtension(x.MaxQueryTime, yyxt8) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLBindingRulesListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { + z.DecExtension(x.MaxQueryTime, yyxt22) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLBindingRulesListResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ACLBindingRules == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLBindingRuleListStub(([]*ACLBindingRuleListStub)(x.ACLBindingRules), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ACLBindingRules\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ACLBindingRules`) + } + r.WriteMapElemValue() + if x.ACLBindingRules == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLBindingRuleListStub(([]*ACLBindingRuleListStub)(x.ACLBindingRules), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLBindingRulesListResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLBindingRulesListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ACLBindingRules": + if r.TryDecodeAsNil() { + x.ACLBindingRules = nil + } else { + if false { + } else { + h.decSlicePtrtoACLBindingRuleListStub((*[]*ACLBindingRuleListStub)(&x.ACLBindingRules), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLBindingRulesListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ACLBindingRules = nil + } else { + if false { + } else { + h.decSlicePtrtoACLBindingRuleListStub((*[]*ACLBindingRuleListStub)(&x.ACLBindingRules), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLBindingRulesRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ACLBindingRuleIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.ACLBindingRuleIDs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ACLBindingRuleIDs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ACLBindingRuleIDs`) + } + r.WriteMapElemValue() + if x.ACLBindingRuleIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.ACLBindingRuleIDs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLBindingRulesRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLBindingRulesRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ACLBindingRuleIDs": + if r.TryDecodeAsNil() { + x.ACLBindingRuleIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.ACLBindingRuleIDs), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLBindingRulesRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj19 int + var yyb19 bool + var yyhl19 bool = l >= 0 + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ACLBindingRuleIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.ACLBindingRuleIDs), d) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { + z.DecExtension(x.MaxQueryTime, yyxt26) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj19-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLBindingRulesResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ACLBindingRules == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoACLBindingRule((map[string]*ACLBindingRule)(x.ACLBindingRules), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ACLBindingRules\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ACLBindingRules`) + } + r.WriteMapElemValue() + if x.ACLBindingRules == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoACLBindingRule((map[string]*ACLBindingRule)(x.ACLBindingRules), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLBindingRulesResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLBindingRulesResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ACLBindingRules": + if r.TryDecodeAsNil() { + x.ACLBindingRules = nil + } else { + if false { + } else { + h.decMapstringPtrtoACLBindingRule((*map[string]*ACLBindingRule)(&x.ACLBindingRules), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLBindingRulesResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ACLBindingRules = nil + } else { + if false { + } else { + h.decMapstringPtrtoACLBindingRule((*map[string]*ACLBindingRule)(&x.ACLBindingRules), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLBindingRuleRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ACLBindingRuleID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ACLBindingRuleID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ACLBindingRuleID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ACLBindingRuleID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ACLBindingRuleID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ACLBindingRuleID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLBindingRuleRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLBindingRuleRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ACLBindingRuleID": + if r.TryDecodeAsNil() { + x.ACLBindingRuleID = "" + } else { + x.ACLBindingRuleID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLBindingRuleRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ACLBindingRuleID = "" + } else { + x.ACLBindingRuleID = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt24 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt24 != nil { + z.DecExtension(x.MaxQueryTime, yyxt24) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLBindingRuleResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + var yyn3 bool + if x.ACLBindingRule == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ACLBindingRule == nil { + r.EncodeNil() + } else { + x.ACLBindingRule.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ACLBindingRule\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ACLBindingRule`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.ACLBindingRule == nil { + r.EncodeNil() + } else { + x.ACLBindingRule.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLBindingRuleResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLBindingRuleResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ACLBindingRule": + if r.TryDecodeAsNil() { + if true && x.ACLBindingRule != nil { + x.ACLBindingRule = nil + } + } else { + if x.ACLBindingRule == nil { + x.ACLBindingRule = new(ACLBindingRule) + } + + x.ACLBindingRule.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLBindingRuleResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ACLBindingRule != nil { + x.ACLBindingRule = nil + } + } else { + if x.ACLBindingRule == nil { + x.ACLBindingRule = new(ACLBindingRule) + } + + x.ACLBindingRule.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.DecExtension(x.LastContact, yyxt14) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLOIDCAuthURLRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthMethodName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthMethodName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthMethodName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthMethodName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthMethodName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthMethodName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RedirectURI))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RedirectURI)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RedirectURI\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RedirectURI`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RedirectURI))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RedirectURI)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientNonce))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientNonce)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ClientNonce\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ClientNonce`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientNonce))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientNonce)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLOIDCAuthURLRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLOIDCAuthURLRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AuthMethodName": + if r.TryDecodeAsNil() { + x.AuthMethodName = "" + } else { + x.AuthMethodName = (string)(r.DecodeString()) + } + case "RedirectURI": + if r.TryDecodeAsNil() { + x.RedirectURI = "" + } else { + x.RedirectURI = (string)(r.DecodeString()) + } + case "ClientNonce": + if r.TryDecodeAsNil() { + x.ClientNonce = "" + } else { + x.ClientNonce = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLOIDCAuthURLRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AuthMethodName = "" + } else { + x.AuthMethodName = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RedirectURI = "" + } else { + x.RedirectURI = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ClientNonce = "" + } else { + x.ClientNonce = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLOIDCAuthURLResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthURL))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthURL)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthURL\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthURL`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthURL))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthURL)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLOIDCAuthURLResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLOIDCAuthURLResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AuthURL": + if r.TryDecodeAsNil() { + x.AuthURL = "" + } else { + x.AuthURL = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLOIDCAuthURLResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AuthURL = "" + } else { + x.AuthURL = (string)(r.DecodeString()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLOIDCCompleteAuthRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(10) + } else { + r.WriteMapStart(10) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthMethodName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthMethodName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthMethodName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthMethodName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthMethodName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthMethodName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientNonce))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientNonce)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ClientNonce\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ClientNonce`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientNonce))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientNonce)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.State))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.State)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"State\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `State`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.State))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.State)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Code))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Code)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Code\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Code`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Code))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Code)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RedirectURI))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RedirectURI)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RedirectURI\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RedirectURI`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RedirectURI))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RedirectURI)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLOIDCCompleteAuthRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLOIDCCompleteAuthRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AuthMethodName": + if r.TryDecodeAsNil() { + x.AuthMethodName = "" + } else { + x.AuthMethodName = (string)(r.DecodeString()) + } + case "ClientNonce": + if r.TryDecodeAsNil() { + x.ClientNonce = "" + } else { + x.ClientNonce = (string)(r.DecodeString()) + } + case "State": + if r.TryDecodeAsNil() { + x.State = "" + } else { + x.State = (string)(r.DecodeString()) + } + case "Code": + if r.TryDecodeAsNil() { + x.Code = "" + } else { + x.Code = (string)(r.DecodeString()) + } + case "RedirectURI": + if r.TryDecodeAsNil() { + x.RedirectURI = "" + } else { + x.RedirectURI = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLOIDCCompleteAuthRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj14 int + var yyb14 bool + var yyhl14 bool = l >= 0 + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AuthMethodName = "" + } else { + x.AuthMethodName = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ClientNonce = "" + } else { + x.ClientNonce = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.State = "" + } else { + x.State = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Code = "" + } else { + x.Code = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RedirectURI = "" + } else { + x.RedirectURI = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj14-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLLoginResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + var yyn3 bool + if x.ACLToken == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ACLToken == nil { + r.EncodeNil() + } else { + x.ACLToken.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ACLToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ACLToken`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.ACLToken == nil { + r.EncodeNil() + } else { + x.ACLToken.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLLoginResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLLoginResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ACLToken": + if r.TryDecodeAsNil() { + if true && x.ACLToken != nil { + x.ACLToken = nil + } + } else { + if x.ACLToken == nil { + x.ACLToken = new(ACLToken) + } + + x.ACLToken.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLLoginResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ACLToken != nil { + x.ACLToken = nil + } + } else { + if x.ACLToken == nil { + x.ACLToken = new(ACLToken) + } + + x.ACLToken.CodecDecodeSelf(d) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLLoginRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthMethodName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthMethodName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthMethodName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthMethodName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthMethodName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthMethodName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LoginToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LoginToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LoginToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LoginToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LoginToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LoginToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLLoginRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLLoginRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AuthMethodName": + if r.TryDecodeAsNil() { + x.AuthMethodName = "" + } else { + x.AuthMethodName = (string)(r.DecodeString()) + } + case "LoginToken": + if r.TryDecodeAsNil() { + x.LoginToken = "" + } else { + x.LoginToken = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLLoginRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AuthMethodName = "" + } else { + x.AuthMethodName = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LoginToken = "" + } else { + x.LoginToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *Action) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Command))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Command)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Command\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Command`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Command))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Command)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Args == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Args), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Args\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Args`) + } + r.WriteMapElemValue() + if x.Args == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Args), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Action) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Action) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Command": + if r.TryDecodeAsNil() { + x.Command = "" + } else { + x.Command = (string)(r.DecodeString()) + } + case "Args": + if r.TryDecodeAsNil() { + x.Args = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Args), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Action) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Command = "" + } else { + x.Command = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Args = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Args), d) + } + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobAction) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Command))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Command)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Command\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Command`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Command))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Command)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Args == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Args), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Args\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Args`) + } + r.WriteMapElemValue() + if x.Args == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Args), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroupName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroupName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskGroupName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroupName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroupName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroupName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobAction) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Action.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Command": + if r.TryDecodeAsNil() { + x.Action.Command = "" + } else { + x.Command = (string)(r.DecodeString()) + } + case "Args": + if r.TryDecodeAsNil() { + x.Action.Args = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Args), d) + } + } + case "TaskName": + if r.TryDecodeAsNil() { + x.TaskName = "" + } else { + x.TaskName = (string)(r.DecodeString()) + } + case "TaskGroupName": + if r.TryDecodeAsNil() { + x.TaskGroupName = "" + } else { + x.TaskGroupName = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Action.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Action.Command = "" + } else { + x.Command = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Action.Args = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Args), d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskName = "" + } else { + x.TaskName = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskGroupName = "" + } else { + x.TaskGroupName = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobActionListRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobActionListRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobActionListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobActionListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt24 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt24 != nil { + z.DecExtension(x.MaxQueryTime, yyxt24) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobActionListResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Actions == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoJobAction(([]*JobAction)(x.Actions), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Actions\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Actions`) + } + r.WriteMapElemValue() + if x.Actions == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoJobAction(([]*JobAction)(x.Actions), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobActionListResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobActionListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Actions": + if r.TryDecodeAsNil() { + x.Actions = nil + } else { + if false { + } else { + h.decSlicePtrtoJobAction((*[]*JobAction)(&x.Actions), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobActionListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Actions = nil + } else { + if false { + } else { + h.decSlicePtrtoJobAction((*[]*JobAction)(&x.Actions), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocServiceRegistrationsRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocServiceRegistrationsRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocServiceRegistrationsRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocServiceRegistrationsRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt24 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt24 != nil { + z.DecExtension(x.MaxQueryTime, yyxt24) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocServiceRegistrationsResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Services == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoServiceRegistration(([]*ServiceRegistration)(x.Services), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Services\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Services`) + } + r.WriteMapElemValue() + if x.Services == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoServiceRegistration(([]*ServiceRegistration)(x.Services), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocServiceRegistrationsResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocServiceRegistrationsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Services": + if r.TryDecodeAsNil() { + x.Services = nil + } else { + if false { + } else { + h.decSlicePtrtoServiceRegistration((*[]*ServiceRegistration)(&x.Services), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocServiceRegistrationsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Services = nil + } else { + if false { + } else { + h.decSlicePtrtoServiceRegistration((*[]*ServiceRegistration)(&x.Services), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocInfo) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Group))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Group)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Group\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Group`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Group))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Group)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Task)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Task\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Task`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Task)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocInfo) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "Group": + if r.TryDecodeAsNil() { + x.Group = "" + } else { + x.Group = (string)(r.DecodeString()) + } + case "Task": + if r.TryDecodeAsNil() { + x.Task = "" + } else { + x.Task = (string)(r.DecodeString()) + } + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Group = "" + } else { + x.Group = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Task = "" + } else { + x.Task = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *OperatorHealthReply) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Healthy)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Healthy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Healthy`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Healthy)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.FailureTolerance)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FailureTolerance\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `FailureTolerance`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.FailureTolerance)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Servers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceServerHealth(([]ServerHealth)(x.Servers), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Servers\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Servers`) + } + r.WriteMapElemValue() + if x.Servers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceServerHealth(([]ServerHealth)(x.Servers), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Leader))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Leader)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Leader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Leader`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Leader))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Leader)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Voters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Voters), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Voters\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Voters`) + } + r.WriteMapElemValue() + if x.Voters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Voters), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ReadReplicas == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.ReadReplicas), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ReadReplicas\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ReadReplicas`) + } + r.WriteMapElemValue() + if x.ReadReplicas == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.ReadReplicas), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.RedundancyZones == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringAutopilotZone((map[string]AutopilotZone)(x.RedundancyZones), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RedundancyZones\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RedundancyZones`) + } + r.WriteMapElemValue() + if x.RedundancyZones == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringAutopilotZone((map[string]AutopilotZone)(x.RedundancyZones), e) + } + } + } + var yyn24 bool + if x.Upgrade == nil { + yyn24 = true + goto LABEL24 + } + LABEL24: + if yyr2 || yy2arr2 { + if yyn24 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Upgrade == nil { + r.EncodeNil() + } else { + x.Upgrade.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Upgrade\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Upgrade`) + } + r.WriteMapElemValue() + if yyn24 { + r.EncodeNil() + } else { + if x.Upgrade == nil { + r.EncodeNil() + } else { + x.Upgrade.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.OptimisticFailureTolerance)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"OptimisticFailureTolerance\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `OptimisticFailureTolerance`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.OptimisticFailureTolerance)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *OperatorHealthReply) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *OperatorHealthReply) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Healthy": + if r.TryDecodeAsNil() { + x.Healthy = false + } else { + x.Healthy = (bool)(r.DecodeBool()) + } + case "FailureTolerance": + if r.TryDecodeAsNil() { + x.FailureTolerance = 0 + } else { + x.FailureTolerance = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Servers": + if r.TryDecodeAsNil() { + x.Servers = nil + } else { + if false { + } else { + h.decSliceServerHealth((*[]ServerHealth)(&x.Servers), d) + } + } + case "Leader": + if r.TryDecodeAsNil() { + x.Leader = "" + } else { + x.Leader = (string)(r.DecodeString()) + } + case "Voters": + if r.TryDecodeAsNil() { + x.Voters = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Voters), d) + } + } + case "ReadReplicas": + if r.TryDecodeAsNil() { + x.ReadReplicas = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.ReadReplicas), d) + } + } + case "RedundancyZones": + if r.TryDecodeAsNil() { + x.RedundancyZones = nil + } else { + if false { + } else { + h.decMapstringAutopilotZone((*map[string]AutopilotZone)(&x.RedundancyZones), d) + } + } + case "Upgrade": + if r.TryDecodeAsNil() { + if true && x.Upgrade != nil { + x.Upgrade = nil + } + } else { + if x.Upgrade == nil { + x.Upgrade = new(AutopilotUpgrade) + } + + x.Upgrade.CodecDecodeSelf(d) + } + case "OptimisticFailureTolerance": + if r.TryDecodeAsNil() { + x.OptimisticFailureTolerance = 0 + } else { + x.OptimisticFailureTolerance = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *OperatorHealthReply) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Healthy = false + } else { + x.Healthy = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.FailureTolerance = 0 + } else { + x.FailureTolerance = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Servers = nil + } else { + if false { + } else { + h.decSliceServerHealth((*[]ServerHealth)(&x.Servers), d) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Leader = "" + } else { + x.Leader = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Voters = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Voters), d) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ReadReplicas = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.ReadReplicas), d) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RedundancyZones = nil + } else { + if false { + } else { + h.decMapstringAutopilotZone((*map[string]AutopilotZone)(&x.RedundancyZones), d) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Upgrade != nil { + x.Upgrade = nil + } + } else { + if x.Upgrade == nil { + x.Upgrade = new(AutopilotUpgrade) + } + + x.Upgrade.CodecDecodeSelf(d) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.OptimisticFailureTolerance = 0 + } else { + x.OptimisticFailureTolerance = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } + r.ReadArrayEnd() +} + +func (x *ServerHealth) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(12) + } else { + r.WriteMapStart(12) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Address\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Address`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.SerfStatus)); yyxt13 != nil { + z.EncExtension(x.SerfStatus, yyxt13) + } else { + r.EncodeInt(int64(x.SerfStatus)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SerfStatus\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SerfStatus`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.SerfStatus)); yyxt14 != nil { + z.EncExtension(x.SerfStatus, yyxt14) + } else { + r.EncodeInt(int64(x.SerfStatus)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Version))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Version)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Version\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Version`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Version))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Version)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Leader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Leader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Leader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Leader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.LastContact)); yyxt22 != nil { + z.EncExtension(x.LastContact, yyxt22) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt23 := z.Extension(z.I2Rtid(x.LastContact)); yyxt23 != nil { + z.EncExtension(x.LastContact, yyxt23) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.LastTerm)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastTerm\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastTerm`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.LastTerm)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.LastIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.LastIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Healthy)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Healthy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Healthy`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Healthy)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Voter)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Voter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Voter`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Voter)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.StableSince) + } else if yyxt37 := z.Extension(z.I2Rtid(x.StableSince)); yyxt37 != nil { + z.EncExtension(x.StableSince, yyxt37) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.StableSince) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.StableSince) + } else { + z.EncFallback(x.StableSince) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"StableSince\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `StableSince`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.StableSince) + } else if yyxt38 := z.Extension(z.I2Rtid(x.StableSince)); yyxt38 != nil { + z.EncExtension(x.StableSince, yyxt38) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.StableSince) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.StableSince) + } else { + z.EncFallback(x.StableSince) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ServerHealth) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ServerHealth) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Address": + if r.TryDecodeAsNil() { + x.Address = "" + } else { + x.Address = (string)(r.DecodeString()) + } + case "SerfStatus": + if r.TryDecodeAsNil() { + x.SerfStatus = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.SerfStatus)); yyxt8 != nil { + z.DecExtension(x.SerfStatus, yyxt8) + } else { + x.SerfStatus = (pkg2_serf.MemberStatus)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + } + case "Version": + if r.TryDecodeAsNil() { + x.Version = "" + } else { + x.Version = (string)(r.DecodeString()) + } + case "Leader": + if r.TryDecodeAsNil() { + x.Leader = false + } else { + x.Leader = (bool)(r.DecodeBool()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.LastContact = 0 + } else { + if false { + } else if yyxt12 := z.Extension(z.I2Rtid(x.LastContact)); yyxt12 != nil { + z.DecExtension(x.LastContact, yyxt12) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "LastTerm": + if r.TryDecodeAsNil() { + x.LastTerm = 0 + } else { + x.LastTerm = (uint64)(r.DecodeUint64()) + } + case "LastIndex": + if r.TryDecodeAsNil() { + x.LastIndex = 0 + } else { + x.LastIndex = (uint64)(r.DecodeUint64()) + } + case "Healthy": + if r.TryDecodeAsNil() { + x.Healthy = false + } else { + x.Healthy = (bool)(r.DecodeBool()) + } + case "Voter": + if r.TryDecodeAsNil() { + x.Voter = false + } else { + x.Voter = (bool)(r.DecodeBool()) + } + case "StableSince": + if r.TryDecodeAsNil() { + x.StableSince = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.StableSince = r.DecodeTime() + } else if yyxt18 := z.Extension(z.I2Rtid(x.StableSince)); yyxt18 != nil { + z.DecExtension(x.StableSince, yyxt18) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.StableSince) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.StableSince) + } else { + z.DecFallback(&x.StableSince, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ServerHealth) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj19 int + var yyb19 bool + var yyhl19 bool = l >= 0 + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Address = "" + } else { + x.Address = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SerfStatus = 0 + } else { + if false { + } else if yyxt24 := z.Extension(z.I2Rtid(x.SerfStatus)); yyxt24 != nil { + z.DecExtension(x.SerfStatus, yyxt24) + } else { + x.SerfStatus = (pkg2_serf.MemberStatus)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Version = "" + } else { + x.Version = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Leader = false + } else { + x.Leader = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LastContact = 0 + } else { + if false { + } else if yyxt28 := z.Extension(z.I2Rtid(x.LastContact)); yyxt28 != nil { + z.DecExtension(x.LastContact, yyxt28) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LastTerm = 0 + } else { + x.LastTerm = (uint64)(r.DecodeUint64()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LastIndex = 0 + } else { + x.LastIndex = (uint64)(r.DecodeUint64()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Healthy = false + } else { + x.Healthy = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Voter = false + } else { + x.Voter = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.StableSince = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.StableSince = r.DecodeTime() + } else if yyxt34 := z.Extension(z.I2Rtid(x.StableSince)); yyxt34 != nil { + z.DecExtension(x.StableSince, yyxt34) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.StableSince) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.StableSince) + } else { + z.DecFallback(&x.StableSince, false) + } + } + for { + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj19-1, "") + } + r.ReadArrayEnd() +} + +func (x *AutopilotZone) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Servers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Servers), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Servers\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Servers`) + } + r.WriteMapElemValue() + if x.Servers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Servers), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Voters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Voters), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Voters\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Voters`) + } + r.WriteMapElemValue() + if x.Voters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Voters), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.FailureTolerance)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FailureTolerance\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `FailureTolerance`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.FailureTolerance)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AutopilotZone) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AutopilotZone) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Servers": + if r.TryDecodeAsNil() { + x.Servers = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Servers), d) + } + } + case "Voters": + if r.TryDecodeAsNil() { + x.Voters = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Voters), d) + } + } + case "FailureTolerance": + if r.TryDecodeAsNil() { + x.FailureTolerance = 0 + } else { + x.FailureTolerance = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AutopilotZone) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Servers = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Servers), d) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Voters = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Voters), d) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.FailureTolerance = 0 + } else { + x.FailureTolerance = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *AutopilotUpgrade) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Status\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TargetVersion))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TargetVersion)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TargetVersion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TargetVersion`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TargetVersion))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TargetVersion)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.TargetVersionVoters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.TargetVersionVoters), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TargetVersionVoters\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TargetVersionVoters`) + } + r.WriteMapElemValue() + if x.TargetVersionVoters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.TargetVersionVoters), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.TargetVersionNonVoters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.TargetVersionNonVoters), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TargetVersionNonVoters\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TargetVersionNonVoters`) + } + r.WriteMapElemValue() + if x.TargetVersionNonVoters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.TargetVersionNonVoters), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.TargetVersionReadReplicas == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.TargetVersionReadReplicas), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TargetVersionReadReplicas\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TargetVersionReadReplicas`) + } + r.WriteMapElemValue() + if x.TargetVersionReadReplicas == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.TargetVersionReadReplicas), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.OtherVersionVoters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.OtherVersionVoters), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"OtherVersionVoters\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `OtherVersionVoters`) + } + r.WriteMapElemValue() + if x.OtherVersionVoters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.OtherVersionVoters), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.OtherVersionNonVoters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.OtherVersionNonVoters), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"OtherVersionNonVoters\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `OtherVersionNonVoters`) + } + r.WriteMapElemValue() + if x.OtherVersionNonVoters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.OtherVersionNonVoters), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.OtherVersionReadReplicas == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.OtherVersionReadReplicas), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"OtherVersionReadReplicas\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `OtherVersionReadReplicas`) + } + r.WriteMapElemValue() + if x.OtherVersionReadReplicas == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.OtherVersionReadReplicas), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.RedundancyZones == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringAutopilotZoneUpgradeVersions((map[string]AutopilotZoneUpgradeVersions)(x.RedundancyZones), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RedundancyZones\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RedundancyZones`) + } + r.WriteMapElemValue() + if x.RedundancyZones == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringAutopilotZoneUpgradeVersions((map[string]AutopilotZoneUpgradeVersions)(x.RedundancyZones), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AutopilotUpgrade) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AutopilotUpgrade) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + case "TargetVersion": + if r.TryDecodeAsNil() { + x.TargetVersion = "" + } else { + x.TargetVersion = (string)(r.DecodeString()) + } + case "TargetVersionVoters": + if r.TryDecodeAsNil() { + x.TargetVersionVoters = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.TargetVersionVoters), d) + } + } + case "TargetVersionNonVoters": + if r.TryDecodeAsNil() { + x.TargetVersionNonVoters = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.TargetVersionNonVoters), d) + } + } + case "TargetVersionReadReplicas": + if r.TryDecodeAsNil() { + x.TargetVersionReadReplicas = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.TargetVersionReadReplicas), d) + } + } + case "OtherVersionVoters": + if r.TryDecodeAsNil() { + x.OtherVersionVoters = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.OtherVersionVoters), d) + } + } + case "OtherVersionNonVoters": + if r.TryDecodeAsNil() { + x.OtherVersionNonVoters = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.OtherVersionNonVoters), d) + } + } + case "OtherVersionReadReplicas": + if r.TryDecodeAsNil() { + x.OtherVersionReadReplicas = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.OtherVersionReadReplicas), d) + } + } + case "RedundancyZones": + if r.TryDecodeAsNil() { + x.RedundancyZones = nil + } else { + if false { + } else { + h.decMapstringAutopilotZoneUpgradeVersions((*map[string]AutopilotZoneUpgradeVersions)(&x.RedundancyZones), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AutopilotUpgrade) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj20 int + var yyb20 bool + var yyhl20 bool = l >= 0 + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TargetVersion = "" + } else { + x.TargetVersion = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TargetVersionVoters = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.TargetVersionVoters), d) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TargetVersionNonVoters = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.TargetVersionNonVoters), d) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TargetVersionReadReplicas = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.TargetVersionReadReplicas), d) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.OtherVersionVoters = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.OtherVersionVoters), d) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.OtherVersionNonVoters = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.OtherVersionNonVoters), d) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.OtherVersionReadReplicas = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.OtherVersionReadReplicas), d) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RedundancyZones = nil + } else { + if false { + } else { + h.decMapstringAutopilotZoneUpgradeVersions((*map[string]AutopilotZoneUpgradeVersions)(&x.RedundancyZones), d) + } + } + for { + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj20-1, "") + } + r.ReadArrayEnd() +} + +func (x *AutopilotZoneUpgradeVersions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.TargetVersionVoters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.TargetVersionVoters), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TargetVersionVoters\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TargetVersionVoters`) + } + r.WriteMapElemValue() + if x.TargetVersionVoters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.TargetVersionVoters), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.TargetVersionNonVoters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.TargetVersionNonVoters), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TargetVersionNonVoters\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TargetVersionNonVoters`) + } + r.WriteMapElemValue() + if x.TargetVersionNonVoters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.TargetVersionNonVoters), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.OtherVersionVoters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.OtherVersionVoters), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"OtherVersionVoters\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `OtherVersionVoters`) + } + r.WriteMapElemValue() + if x.OtherVersionVoters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.OtherVersionVoters), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.OtherVersionNonVoters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.OtherVersionNonVoters), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"OtherVersionNonVoters\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `OtherVersionNonVoters`) + } + r.WriteMapElemValue() + if x.OtherVersionNonVoters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.OtherVersionNonVoters), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AutopilotZoneUpgradeVersions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AutopilotZoneUpgradeVersions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "TargetVersionVoters": + if r.TryDecodeAsNil() { + x.TargetVersionVoters = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.TargetVersionVoters), d) + } + } + case "TargetVersionNonVoters": + if r.TryDecodeAsNil() { + x.TargetVersionNonVoters = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.TargetVersionNonVoters), d) + } + } + case "OtherVersionVoters": + if r.TryDecodeAsNil() { + x.OtherVersionVoters = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.OtherVersionVoters), d) + } + } + case "OtherVersionNonVoters": + if r.TryDecodeAsNil() { + x.OtherVersionNonVoters = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.OtherVersionNonVoters), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AutopilotZoneUpgradeVersions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TargetVersionVoters = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.TargetVersionVoters), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TargetVersionNonVoters = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.TargetVersionNonVoters), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.OtherVersionVoters = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.OtherVersionVoters), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.OtherVersionNonVoters = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.OtherVersionNonVoters), d) + } + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *RaftStats) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LastContact))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LastContact)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LastContact))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LastContact)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.LastTerm)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastTerm\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastTerm`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.LastTerm)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.LastIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.LastIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *RaftStats) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *RaftStats) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "LastContact": + if r.TryDecodeAsNil() { + x.LastContact = "" + } else { + x.LastContact = (string)(r.DecodeString()) + } + case "LastTerm": + if r.TryDecodeAsNil() { + x.LastTerm = 0 + } else { + x.LastTerm = (uint64)(r.DecodeUint64()) + } + case "LastIndex": + if r.TryDecodeAsNil() { + x.LastIndex = 0 + } else { + x.LastIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *RaftStats) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LastContact = "" + } else { + x.LastContact = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LastTerm = 0 + } else { + x.LastTerm = (uint64)(r.DecodeUint64()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LastIndex = 0 + } else { + x.LastIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *BatchFuture) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(0) + } else { + r.WriteMapStart(0) + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *BatchFuture) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *BatchFuture) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *BatchFuture) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4 int + var yyb4 bool + var yyhl4 bool = l >= 0 + for { + yyj4++ + if yyhl4 { + yyb4 = yyj4 > l + } else { + yyb4 = r.CheckBreak() + } + if yyb4 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj4-1, "") + } + r.ReadArrayEnd() +} + +func (x Bitmap) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encBitmap((Bitmap)(x), e) + } + } +} + +func (x *Bitmap) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + h.decBitmap((*Bitmap)(x), d) + } +} + +func (x CheckMode) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) + } + } +} + +func (x *CheckMode) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (CheckMode)(r.DecodeString()) + } +} + +func (x CheckID) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) + } + } +} + +func (x *CheckID) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (CheckID)(r.DecodeString()) + } +} + +func (x *CheckQueryResult) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(10) + } else { + r.WriteMapStart(10) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.ID.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + x.ID.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Mode.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Mode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Mode`) + } + r.WriteMapElemValue() + x.Mode.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Status.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Status\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) + } + r.WriteMapElemValue() + x.Status.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.StatusCode)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"StatusCode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `StatusCode`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.StatusCode)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Output))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Output)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Output\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Output`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Output))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Output)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Timestamp)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timestamp\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Timestamp`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Timestamp)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Group))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Group)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Group\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Group`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Group))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Group)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Task)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Task\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Task`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Task)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Service))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Service)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Service\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Service`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Service))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Service)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Check))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Check)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Check\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Check`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Check))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Check)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CheckQueryResult) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CheckQueryResult) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID.CodecDecodeSelf(d) + } + case "Mode": + if r.TryDecodeAsNil() { + x.Mode = "" + } else { + x.Mode.CodecDecodeSelf(d) + } + case "Status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status.CodecDecodeSelf(d) + } + case "StatusCode": + if r.TryDecodeAsNil() { + x.StatusCode = 0 + } else { + x.StatusCode = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Output": + if r.TryDecodeAsNil() { + x.Output = "" + } else { + x.Output = (string)(r.DecodeString()) + } + case "Timestamp": + if r.TryDecodeAsNil() { + x.Timestamp = 0 + } else { + x.Timestamp = (int64)(r.DecodeInt64()) + } + case "Group": + if r.TryDecodeAsNil() { + x.Group = "" + } else { + x.Group = (string)(r.DecodeString()) + } + case "Task": + if r.TryDecodeAsNil() { + x.Task = "" + } else { + x.Task = (string)(r.DecodeString()) + } + case "Service": + if r.TryDecodeAsNil() { + x.Service = "" + } else { + x.Service = (string)(r.DecodeString()) + } + case "Check": + if r.TryDecodeAsNil() { + x.Check = "" + } else { + x.Check = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CheckQueryResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj14 int + var yyb14 bool + var yyhl14 bool = l >= 0 + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID.CodecDecodeSelf(d) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Mode = "" + } else { + x.Mode.CodecDecodeSelf(d) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status.CodecDecodeSelf(d) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.StatusCode = 0 + } else { + x.StatusCode = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Output = "" + } else { + x.Output = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Timestamp = 0 + } else { + x.Timestamp = (int64)(r.DecodeInt64()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Group = "" + } else { + x.Group = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Task = "" + } else { + x.Task = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Service = "" + } else { + x.Service = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Check = "" + } else { + x.Check = (string)(r.DecodeString()) + } + for { + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj14-1, "") + } + r.ReadArrayEnd() +} + +func (x CheckStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) + } + } +} + +func (x *CheckStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (CheckStatus)(r.DecodeString()) + } +} + +func (x *CNIConfig) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Args == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Args), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Args\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Args`) + } + r.WriteMapElemValue() + if x.Args == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Args), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CNIConfig) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CNIConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Args": + if r.TryDecodeAsNil() { + x.Args = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Args), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CNIConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Args = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Args), d) + } + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *ConsulConfigEntries) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Cluster))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Cluster)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Cluster\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Cluster`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Cluster))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Cluster)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Partition))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Partition)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Partition\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Partition`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Partition))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Partition)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Ingress == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoConsulIngressConfigEntry((map[string]*ConsulIngressConfigEntry)(x.Ingress), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Ingress\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Ingress`) + } + r.WriteMapElemValue() + if x.Ingress == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoConsulIngressConfigEntry((map[string]*ConsulIngressConfigEntry)(x.Ingress), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Terminating == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoConsulTerminatingConfigEntry((map[string]*ConsulTerminatingConfigEntry)(x.Terminating), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Terminating\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Terminating`) + } + r.WriteMapElemValue() + if x.Terminating == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoConsulTerminatingConfigEntry((map[string]*ConsulTerminatingConfigEntry)(x.Terminating), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ConsulConfigEntries) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ConsulConfigEntries) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Cluster": + if r.TryDecodeAsNil() { + x.Cluster = "" + } else { + x.Cluster = (string)(r.DecodeString()) + } + case "Partition": + if r.TryDecodeAsNil() { + x.Partition = "" + } else { + x.Partition = (string)(r.DecodeString()) + } + case "Ingress": + if r.TryDecodeAsNil() { + x.Ingress = nil + } else { + if false { + } else { + h.decMapstringPtrtoConsulIngressConfigEntry((*map[string]*ConsulIngressConfigEntry)(&x.Ingress), d) + } + } + case "Terminating": + if r.TryDecodeAsNil() { + x.Terminating = nil + } else { + if false { + } else { + h.decMapstringPtrtoConsulTerminatingConfigEntry((*map[string]*ConsulTerminatingConfigEntry)(&x.Terminating), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ConsulConfigEntries) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Cluster = "" + } else { + x.Cluster = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Partition = "" + } else { + x.Partition = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Ingress = nil + } else { + if false { + } else { + h.decMapstringPtrtoConsulIngressConfigEntry((*map[string]*ConsulIngressConfigEntry)(&x.Ingress), d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Terminating = nil + } else { + if false { + } else { + h.decMapstringPtrtoConsulTerminatingConfigEntry((*map[string]*ConsulTerminatingConfigEntry)(&x.Terminating), d) + } + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *ConsulTransparentProxy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.UID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.UID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"UID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `UID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.UID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.UID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.OutboundPort)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"OutboundPort\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `OutboundPort`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.OutboundPort)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ExcludeInboundPorts == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.ExcludeInboundPorts), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ExcludeInboundPorts\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ExcludeInboundPorts`) + } + r.WriteMapElemValue() + if x.ExcludeInboundPorts == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.ExcludeInboundPorts), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ExcludeOutboundPorts == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceuint16(([]uint16)(x.ExcludeOutboundPorts), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ExcludeOutboundPorts\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ExcludeOutboundPorts`) + } + r.WriteMapElemValue() + if x.ExcludeOutboundPorts == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceuint16(([]uint16)(x.ExcludeOutboundPorts), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ExcludeOutboundCIDRs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.ExcludeOutboundCIDRs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ExcludeOutboundCIDRs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ExcludeOutboundCIDRs`) + } + r.WriteMapElemValue() + if x.ExcludeOutboundCIDRs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.ExcludeOutboundCIDRs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ExcludeUIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.ExcludeUIDs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ExcludeUIDs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ExcludeUIDs`) + } + r.WriteMapElemValue() + if x.ExcludeUIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.ExcludeUIDs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.NoDNS)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NoDNS\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NoDNS`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.NoDNS)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ConsulTransparentProxy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ConsulTransparentProxy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "UID": + if r.TryDecodeAsNil() { + x.UID = "" + } else { + x.UID = (string)(r.DecodeString()) + } + case "OutboundPort": + if r.TryDecodeAsNil() { + x.OutboundPort = 0 + } else { + x.OutboundPort = (uint16)(z.C.UintV(r.DecodeUint64(), 16)) + } + case "ExcludeInboundPorts": + if r.TryDecodeAsNil() { + x.ExcludeInboundPorts = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.ExcludeInboundPorts), d) + } + } + case "ExcludeOutboundPorts": + if r.TryDecodeAsNil() { + x.ExcludeOutboundPorts = nil + } else { + if false { + } else { + h.decSliceuint16((*[]uint16)(&x.ExcludeOutboundPorts), d) + } + } + case "ExcludeOutboundCIDRs": + if r.TryDecodeAsNil() { + x.ExcludeOutboundCIDRs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.ExcludeOutboundCIDRs), d) + } + } + case "ExcludeUIDs": + if r.TryDecodeAsNil() { + x.ExcludeUIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.ExcludeUIDs), d) + } + } + case "NoDNS": + if r.TryDecodeAsNil() { + x.NoDNS = false + } else { + x.NoDNS = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ConsulTransparentProxy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj15 int + var yyb15 bool + var yyhl15 bool = l >= 0 + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.UID = "" + } else { + x.UID = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.OutboundPort = 0 + } else { + x.OutboundPort = (uint16)(z.C.UintV(r.DecodeUint64(), 16)) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ExcludeInboundPorts = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.ExcludeInboundPorts), d) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ExcludeOutboundPorts = nil + } else { + if false { + } else { + h.decSliceuint16((*[]uint16)(&x.ExcludeOutboundPorts), d) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ExcludeOutboundCIDRs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.ExcludeOutboundCIDRs), d) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ExcludeUIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.ExcludeUIDs), d) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NoDNS = false + } else { + x.NoDNS = (bool)(r.DecodeBool()) + } + for { + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj15-1, "") + } + r.ReadArrayEnd() +} + +func (x *Consul) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Cluster))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Cluster)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Cluster\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Cluster`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Cluster))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Cluster)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Partition))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Partition)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Partition\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Partition`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Partition))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Partition)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Consul) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Consul) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "Cluster": + if r.TryDecodeAsNil() { + x.Cluster = "" + } else { + x.Cluster = (string)(r.DecodeString()) + } + case "Partition": + if r.TryDecodeAsNil() { + x.Partition = "" + } else { + x.Partition = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Consul) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Cluster = "" + } else { + x.Cluster = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Partition = "" + } else { + x.Partition = (string)(r.DecodeString()) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x CSIPluginType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) + } + } +} + +func (x *CSIPluginType) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (CSIPluginType)(r.DecodeString()) + } +} + +func (x *TaskCSIPluginConfig) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Type.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + x.Type.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.MountDir))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.MountDir)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MountDir\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MountDir`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.MountDir))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.MountDir)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StagePublishBaseDir))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StagePublishBaseDir)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"StagePublishBaseDir\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `StagePublishBaseDir`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StagePublishBaseDir))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StagePublishBaseDir)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.HealthTimeout)); yyxt16 != nil { + z.EncExtension(x.HealthTimeout, yyxt16) + } else { + r.EncodeInt(int64(x.HealthTimeout)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HealthTimeout\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HealthTimeout`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.HealthTimeout)); yyxt17 != nil { + z.EncExtension(x.HealthTimeout, yyxt17) + } else { + r.EncodeInt(int64(x.HealthTimeout)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *TaskCSIPluginConfig) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *TaskCSIPluginConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type.CodecDecodeSelf(d) + } + case "MountDir": + if r.TryDecodeAsNil() { + x.MountDir = "" + } else { + x.MountDir = (string)(r.DecodeString()) + } + case "StagePublishBaseDir": + if r.TryDecodeAsNil() { + x.StagePublishBaseDir = "" + } else { + x.StagePublishBaseDir = (string)(r.DecodeString()) + } + case "HealthTimeout": + if r.TryDecodeAsNil() { + x.HealthTimeout = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.HealthTimeout)); yyxt9 != nil { + z.DecExtension(x.HealthTimeout, yyxt9) + } else { + x.HealthTimeout = (time.Duration)(r.DecodeInt64()) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *TaskCSIPluginConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MountDir = "" + } else { + x.MountDir = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.StagePublishBaseDir = "" + } else { + x.StagePublishBaseDir = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HealthTimeout = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.HealthTimeout)); yyxt16 != nil { + z.DecExtension(x.HealthTimeout, yyxt16) + } else { + x.HealthTimeout = (time.Duration)(r.DecodeInt64()) + } + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIVolumeCapability) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.AttachmentMode.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AttachmentMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AttachmentMode`) + } + r.WriteMapElemValue() + x.AttachmentMode.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.AccessMode.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AccessMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AccessMode`) + } + r.WriteMapElemValue() + x.AccessMode.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIVolumeCapability) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIVolumeCapability) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AttachmentMode": + if r.TryDecodeAsNil() { + x.AttachmentMode = "" + } else { + x.AttachmentMode.CodecDecodeSelf(d) + } + case "AccessMode": + if r.TryDecodeAsNil() { + x.AccessMode = "" + } else { + x.AccessMode.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIVolumeCapability) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AttachmentMode = "" + } else { + x.AttachmentMode.CodecDecodeSelf(d) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AccessMode = "" + } else { + x.AccessMode.CodecDecodeSelf(d) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIMountOptions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.FSType))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FSType)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FSType\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `FSType`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.FSType))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FSType)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.MountFlags == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.MountFlags), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MountFlags\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MountFlags`) + } + r.WriteMapElemValue() + if x.MountFlags == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.MountFlags), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIMountOptions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIMountOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "FSType": + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = (string)(r.DecodeString()) + } + case "MountFlags": + if r.TryDecodeAsNil() { + x.MountFlags = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.MountFlags), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIMountOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MountFlags = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.MountFlags), d) + } + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x CSISecrets) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encCSISecrets((CSISecrets)(x), e) + } + } +} + +func (x *CSISecrets) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + h.decCSISecrets((*CSISecrets)(x), d) + } +} + +func (x *CSIVolumeClaim) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocationID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocationID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocationID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocationID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocationID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocationID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ExternalNodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ExternalNodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ExternalNodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ExternalNodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ExternalNodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ExternalNodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Mode.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Mode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Mode`) + } + r.WriteMapElemValue() + x.Mode.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.AccessMode.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AccessMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AccessMode`) + } + r.WriteMapElemValue() + x.AccessMode.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.AttachmentMode.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AttachmentMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AttachmentMode`) + } + r.WriteMapElemValue() + x.AttachmentMode.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.State.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"State\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `State`) + } + r.WriteMapElemValue() + x.State.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIVolumeClaim) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIVolumeClaim) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AllocationID": + if r.TryDecodeAsNil() { + x.AllocationID = "" + } else { + x.AllocationID = (string)(r.DecodeString()) + } + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "ExternalNodeID": + if r.TryDecodeAsNil() { + x.ExternalNodeID = "" + } else { + x.ExternalNodeID = (string)(r.DecodeString()) + } + case "Mode": + if r.TryDecodeAsNil() { + x.Mode = 0 + } else { + x.Mode.CodecDecodeSelf(d) + } + case "AccessMode": + if r.TryDecodeAsNil() { + x.AccessMode = "" + } else { + x.AccessMode.CodecDecodeSelf(d) + } + case "AttachmentMode": + if r.TryDecodeAsNil() { + x.AttachmentMode = "" + } else { + x.AttachmentMode.CodecDecodeSelf(d) + } + case "State": + if r.TryDecodeAsNil() { + x.State = 0 + } else { + x.State.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIVolumeClaim) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocationID = "" + } else { + x.AllocationID = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ExternalNodeID = "" + } else { + x.ExternalNodeID = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Mode = 0 + } else { + x.Mode.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AccessMode = "" + } else { + x.AccessMode.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AttachmentMode = "" + } else { + x.AttachmentMode.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.State = 0 + } else { + x.State.CodecDecodeSelf(d) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x CSIVolumeClaimState) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + r.EncodeInt(int64(x)) + } +} + +func (x *CSIVolumeClaimState) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (CSIVolumeClaimState)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } +} + +func (x *CSIVolume) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(37) + } else { + r.WriteMapStart(37) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ExternalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ExternalID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ExternalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ExternalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ExternalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ExternalID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + var yyn15 bool + if x.RequestedTopologies == nil { + yyn15 = true + goto LABEL15 + } + LABEL15: + if yyr2 || yy2arr2 { + if yyn15 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.RequestedTopologies == nil { + r.EncodeNil() + } else { + x.RequestedTopologies.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RequestedTopologies\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RequestedTopologies`) + } + r.WriteMapElemValue() + if yyn15 { + r.EncodeNil() + } else { + if x.RequestedTopologies == nil { + r.EncodeNil() + } else { + x.RequestedTopologies.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Topologies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoCSITopology(([]*CSITopology)(x.Topologies), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Topologies\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Topologies`) + } + r.WriteMapElemValue() + if x.Topologies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoCSITopology(([]*CSITopology)(x.Topologies), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.AccessMode.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AccessMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AccessMode`) + } + r.WriteMapElemValue() + x.AccessMode.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.AttachmentMode.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AttachmentMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AttachmentMode`) + } + r.WriteMapElemValue() + x.AttachmentMode.CodecEncodeSelf(e) + } + var yyn27 bool + if x.MountOptions == nil { + yyn27 = true + goto LABEL27 + } + LABEL27: + if yyr2 || yy2arr2 { + if yyn27 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.MountOptions == nil { + r.EncodeNil() + } else { + x.MountOptions.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MountOptions\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MountOptions`) + } + r.WriteMapElemValue() + if yyn27 { + r.EncodeNil() + } else { + if x.MountOptions == nil { + r.EncodeNil() + } else { + x.MountOptions.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Secrets == nil { + r.EncodeNil() + } else { + x.Secrets.CodecEncodeSelf(e) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Secrets\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Secrets`) + } + r.WriteMapElemValue() + if x.Secrets == nil { + r.EncodeNil() + } else { + x.Secrets.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Parameters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Parameters), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Parameters\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Parameters`) + } + r.WriteMapElemValue() + if x.Parameters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Parameters), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Context == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Context), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Context\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Context`) + } + r.WriteMapElemValue() + if x.Context == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Context), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Capacity)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Capacity\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Capacity`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Capacity)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.RequestedCapacityMin)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RequestedCapacityMin\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RequestedCapacityMin`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.RequestedCapacityMin)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.RequestedCapacityMax)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RequestedCapacityMax\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RequestedCapacityMax`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.RequestedCapacityMax)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.RequestedCapabilities == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoCSIVolumeCapability(([]*CSIVolumeCapability)(x.RequestedCapabilities), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RequestedCapabilities\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RequestedCapabilities`) + } + r.WriteMapElemValue() + if x.RequestedCapabilities == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoCSIVolumeCapability(([]*CSIVolumeCapability)(x.RequestedCapabilities), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.CloneID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.CloneID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CloneID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CloneID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.CloneID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.CloneID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SnapshotID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SnapshotID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SnapshotID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SnapshotID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SnapshotID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SnapshotID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ReadAllocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoAllocation((map[string]*Allocation)(x.ReadAllocs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ReadAllocs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ReadAllocs`) + } + r.WriteMapElemValue() + if x.ReadAllocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoAllocation((map[string]*Allocation)(x.ReadAllocs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.WriteAllocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoAllocation((map[string]*Allocation)(x.WriteAllocs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"WriteAllocs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `WriteAllocs`) + } + r.WriteMapElemValue() + if x.WriteAllocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoAllocation((map[string]*Allocation)(x.WriteAllocs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ReadClaims == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoCSIVolumeClaim((map[string]*CSIVolumeClaim)(x.ReadClaims), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ReadClaims\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ReadClaims`) + } + r.WriteMapElemValue() + if x.ReadClaims == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoCSIVolumeClaim((map[string]*CSIVolumeClaim)(x.ReadClaims), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.WriteClaims == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoCSIVolumeClaim((map[string]*CSIVolumeClaim)(x.WriteClaims), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"WriteClaims\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `WriteClaims`) + } + r.WriteMapElemValue() + if x.WriteClaims == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoCSIVolumeClaim((map[string]*CSIVolumeClaim)(x.WriteClaims), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.PastClaims == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoCSIVolumeClaim((map[string]*CSIVolumeClaim)(x.PastClaims), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PastClaims\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PastClaims`) + } + r.WriteMapElemValue() + if x.PastClaims == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoCSIVolumeClaim((map[string]*CSIVolumeClaim)(x.PastClaims), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Schedulable)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Schedulable\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Schedulable`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Schedulable)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PluginID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PluginID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Provider\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Provider`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ProviderVersion))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ProviderVersion)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ProviderVersion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ProviderVersion`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ProviderVersion))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ProviderVersion)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.ControllerRequired)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ControllerRequired\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ControllerRequired`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.ControllerRequired)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.ControllersHealthy)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ControllersHealthy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ControllersHealthy`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.ControllersHealthy)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.ControllersExpected)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ControllersExpected\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ControllersExpected`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.ControllersExpected)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.NodesHealthy)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodesHealthy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodesHealthy`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.NodesHealthy)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.NodesExpected)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodesExpected\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodesExpected`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.NodesExpected)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.ResourceExhausted) + } else if yyxt100 := z.Extension(z.I2Rtid(x.ResourceExhausted)); yyxt100 != nil { + z.EncExtension(x.ResourceExhausted, yyxt100) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.ResourceExhausted) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.ResourceExhausted) + } else { + z.EncFallback(x.ResourceExhausted) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ResourceExhausted\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ResourceExhausted`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.ResourceExhausted) + } else if yyxt101 := z.Extension(z.I2Rtid(x.ResourceExhausted)); yyxt101 != nil { + z.EncExtension(x.ResourceExhausted, yyxt101) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.ResourceExhausted) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.ResourceExhausted) + } else { + z.EncFallback(x.ResourceExhausted) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIVolume) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "ExternalID": + if r.TryDecodeAsNil() { + x.ExternalID = "" + } else { + x.ExternalID = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "RequestedTopologies": + if r.TryDecodeAsNil() { + if true && x.RequestedTopologies != nil { + x.RequestedTopologies = nil + } + } else { + if x.RequestedTopologies == nil { + x.RequestedTopologies = new(CSITopologyRequest) + } + + x.RequestedTopologies.CodecDecodeSelf(d) + } + case "Topologies": + if r.TryDecodeAsNil() { + x.Topologies = nil + } else { + if false { + } else { + h.decSlicePtrtoCSITopology((*[]*CSITopology)(&x.Topologies), d) + } + } + case "AccessMode": + if r.TryDecodeAsNil() { + x.AccessMode = "" + } else { + x.AccessMode.CodecDecodeSelf(d) + } + case "AttachmentMode": + if r.TryDecodeAsNil() { + x.AttachmentMode = "" + } else { + x.AttachmentMode.CodecDecodeSelf(d) + } + case "MountOptions": + if r.TryDecodeAsNil() { + if true && x.MountOptions != nil { + x.MountOptions = nil + } + } else { + if x.MountOptions == nil { + x.MountOptions = new(CSIMountOptions) + } + + x.MountOptions.CodecDecodeSelf(d) + } + case "Secrets": + if r.TryDecodeAsNil() { + x.Secrets = nil + } else { + x.Secrets.CodecDecodeSelf(d) + } + case "Parameters": + if r.TryDecodeAsNil() { + x.Parameters = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Parameters), d) + } + } + case "Context": + if r.TryDecodeAsNil() { + x.Context = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Context), d) + } + } + case "Capacity": + if r.TryDecodeAsNil() { + x.Capacity = 0 + } else { + x.Capacity = (int64)(r.DecodeInt64()) + } + case "RequestedCapacityMin": + if r.TryDecodeAsNil() { + x.RequestedCapacityMin = 0 + } else { + x.RequestedCapacityMin = (int64)(r.DecodeInt64()) + } + case "RequestedCapacityMax": + if r.TryDecodeAsNil() { + x.RequestedCapacityMax = 0 + } else { + x.RequestedCapacityMax = (int64)(r.DecodeInt64()) + } + case "RequestedCapabilities": + if r.TryDecodeAsNil() { + x.RequestedCapabilities = nil + } else { + if false { + } else { + h.decSlicePtrtoCSIVolumeCapability((*[]*CSIVolumeCapability)(&x.RequestedCapabilities), d) + } + } + case "CloneID": + if r.TryDecodeAsNil() { + x.CloneID = "" + } else { + x.CloneID = (string)(r.DecodeString()) + } + case "SnapshotID": + if r.TryDecodeAsNil() { + x.SnapshotID = "" + } else { + x.SnapshotID = (string)(r.DecodeString()) + } + case "ReadAllocs": + if r.TryDecodeAsNil() { + x.ReadAllocs = nil + } else { + if false { + } else { + h.decMapstringPtrtoAllocation((*map[string]*Allocation)(&x.ReadAllocs), d) + } + } + case "WriteAllocs": + if r.TryDecodeAsNil() { + x.WriteAllocs = nil + } else { + if false { + } else { + h.decMapstringPtrtoAllocation((*map[string]*Allocation)(&x.WriteAllocs), d) + } + } + case "ReadClaims": + if r.TryDecodeAsNil() { + x.ReadClaims = nil + } else { + if false { + } else { + h.decMapstringPtrtoCSIVolumeClaim((*map[string]*CSIVolumeClaim)(&x.ReadClaims), d) + } + } + case "WriteClaims": + if r.TryDecodeAsNil() { + x.WriteClaims = nil + } else { + if false { + } else { + h.decMapstringPtrtoCSIVolumeClaim((*map[string]*CSIVolumeClaim)(&x.WriteClaims), d) + } + } + case "PastClaims": + if r.TryDecodeAsNil() { + x.PastClaims = nil + } else { + if false { + } else { + h.decMapstringPtrtoCSIVolumeClaim((*map[string]*CSIVolumeClaim)(&x.PastClaims), d) + } + } + case "Schedulable": + if r.TryDecodeAsNil() { + x.Schedulable = false + } else { + x.Schedulable = (bool)(r.DecodeBool()) + } + case "PluginID": + if r.TryDecodeAsNil() { + x.PluginID = "" + } else { + x.PluginID = (string)(r.DecodeString()) + } + case "Provider": + if r.TryDecodeAsNil() { + x.Provider = "" + } else { + x.Provider = (string)(r.DecodeString()) + } + case "ProviderVersion": + if r.TryDecodeAsNil() { + x.ProviderVersion = "" + } else { + x.ProviderVersion = (string)(r.DecodeString()) + } + case "ControllerRequired": + if r.TryDecodeAsNil() { + x.ControllerRequired = false + } else { + x.ControllerRequired = (bool)(r.DecodeBool()) + } + case "ControllersHealthy": + if r.TryDecodeAsNil() { + x.ControllersHealthy = 0 + } else { + x.ControllersHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "ControllersExpected": + if r.TryDecodeAsNil() { + x.ControllersExpected = 0 + } else { + x.ControllersExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "NodesHealthy": + if r.TryDecodeAsNil() { + x.NodesHealthy = 0 + } else { + x.NodesHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "NodesExpected": + if r.TryDecodeAsNil() { + x.NodesExpected = 0 + } else { + x.NodesExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "ResourceExhausted": + if r.TryDecodeAsNil() { + x.ResourceExhausted = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.ResourceExhausted = r.DecodeTime() + } else if yyxt46 := z.Extension(z.I2Rtid(x.ResourceExhausted)); yyxt46 != nil { + z.DecExtension(x.ResourceExhausted, yyxt46) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.ResourceExhausted) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.ResourceExhausted) + } else { + z.DecFallback(&x.ResourceExhausted, false) + } + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + case "CreateTime": + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + case "ModifyTime": + if r.TryDecodeAsNil() { + x.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + 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 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ExternalID = "" + } else { + x.ExternalID = (string)(r.DecodeString()) + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.RequestedTopologies != nil { + x.RequestedTopologies = nil + } + } else { + if x.RequestedTopologies == nil { + x.RequestedTopologies = new(CSITopologyRequest) + } + + x.RequestedTopologies.CodecDecodeSelf(d) + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Topologies = nil + } else { + if false { + } else { + h.decSlicePtrtoCSITopology((*[]*CSITopology)(&x.Topologies), d) + } + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AccessMode = "" + } else { + x.AccessMode.CodecDecodeSelf(d) + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AttachmentMode = "" + } else { + x.AttachmentMode.CodecDecodeSelf(d) + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.MountOptions != nil { + x.MountOptions = nil + } + } else { + if x.MountOptions == nil { + x.MountOptions = new(CSIMountOptions) + } + + x.MountOptions.CodecDecodeSelf(d) + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Secrets = nil + } else { + x.Secrets.CodecDecodeSelf(d) + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Parameters = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Parameters), d) + } + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Context = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Context), d) + } + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Capacity = 0 + } else { + x.Capacity = (int64)(r.DecodeInt64()) + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RequestedCapacityMin = 0 + } else { + x.RequestedCapacityMin = (int64)(r.DecodeInt64()) + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RequestedCapacityMax = 0 + } else { + x.RequestedCapacityMax = (int64)(r.DecodeInt64()) + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RequestedCapabilities = nil + } else { + if false { + } else { + h.decSlicePtrtoCSIVolumeCapability((*[]*CSIVolumeCapability)(&x.RequestedCapabilities), d) + } + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CloneID = "" + } else { + x.CloneID = (string)(r.DecodeString()) + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SnapshotID = "" + } else { + x.SnapshotID = (string)(r.DecodeString()) + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ReadAllocs = nil + } else { + if false { + } else { + h.decMapstringPtrtoAllocation((*map[string]*Allocation)(&x.ReadAllocs), d) + } + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteAllocs = nil + } else { + if false { + } else { + h.decMapstringPtrtoAllocation((*map[string]*Allocation)(&x.WriteAllocs), d) + } + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ReadClaims = nil + } else { + if false { + } else { + h.decMapstringPtrtoCSIVolumeClaim((*map[string]*CSIVolumeClaim)(&x.ReadClaims), d) + } + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteClaims = nil + } else { + if false { + } else { + h.decMapstringPtrtoCSIVolumeClaim((*map[string]*CSIVolumeClaim)(&x.WriteClaims), d) + } + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PastClaims = nil + } else { + if false { + } else { + h.decMapstringPtrtoCSIVolumeClaim((*map[string]*CSIVolumeClaim)(&x.PastClaims), d) + } + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Schedulable = false + } else { + x.Schedulable = (bool)(r.DecodeBool()) + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PluginID = "" + } else { + x.PluginID = (string)(r.DecodeString()) + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Provider = "" + } else { + x.Provider = (string)(r.DecodeString()) + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ProviderVersion = "" + } else { + x.ProviderVersion = (string)(r.DecodeString()) + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ControllerRequired = false + } else { + x.ControllerRequired = (bool)(r.DecodeBool()) + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ControllersHealthy = 0 + } else { + x.ControllersHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ControllersExpected = 0 + } else { + x.ControllersExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodesHealthy = 0 + } else { + x.NodesHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodesExpected = 0 + } else { + x.NodesExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ResourceExhausted = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.ResourceExhausted = r.DecodeTime() + } else if yyxt94 := z.Extension(z.I2Rtid(x.ResourceExhausted)); yyxt94 != nil { + z.DecExtension(x.ResourceExhausted, yyxt94) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.ResourceExhausted) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.ResourceExhausted) + } else { + z.DecFallback(&x.ResourceExhausted, false) + } + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + for { + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj51-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIVolListStub) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(22) + } else { + r.WriteMapStart(22) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ExternalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ExternalID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ExternalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ExternalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ExternalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ExternalID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Topologies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoCSITopology(([]*CSITopology)(x.Topologies), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Topologies\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Topologies`) + } + r.WriteMapElemValue() + if x.Topologies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoCSITopology(([]*CSITopology)(x.Topologies), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.AccessMode.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AccessMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AccessMode`) + } + r.WriteMapElemValue() + x.AccessMode.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.AttachmentMode.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AttachmentMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AttachmentMode`) + } + r.WriteMapElemValue() + x.AttachmentMode.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CurrentReaders)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CurrentReaders\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CurrentReaders`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CurrentReaders)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CurrentWriters)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CurrentWriters\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CurrentWriters`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CurrentWriters)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Schedulable)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Schedulable\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Schedulable`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Schedulable)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PluginID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PluginID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Provider\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Provider`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.ControllerRequired)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ControllerRequired\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ControllerRequired`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.ControllerRequired)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.ControllersHealthy)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ControllersHealthy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ControllersHealthy`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.ControllersHealthy)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.ControllersExpected)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ControllersExpected\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ControllersExpected`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.ControllersExpected)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.NodesHealthy)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodesHealthy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodesHealthy`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.NodesHealthy)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.NodesExpected)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodesExpected\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodesExpected`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.NodesExpected)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.ResourceExhausted) + } else if yyxt55 := z.Extension(z.I2Rtid(x.ResourceExhausted)); yyxt55 != nil { + z.EncExtension(x.ResourceExhausted, yyxt55) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.ResourceExhausted) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.ResourceExhausted) + } else { + z.EncFallback(x.ResourceExhausted) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ResourceExhausted\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ResourceExhausted`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.ResourceExhausted) + } else if yyxt56 := z.Extension(z.I2Rtid(x.ResourceExhausted)); yyxt56 != nil { + z.EncExtension(x.ResourceExhausted, yyxt56) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.ResourceExhausted) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.ResourceExhausted) + } else { + z.EncFallback(x.ResourceExhausted) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIVolListStub) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIVolListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "ExternalID": + if r.TryDecodeAsNil() { + x.ExternalID = "" + } else { + x.ExternalID = (string)(r.DecodeString()) + } + case "Topologies": + if r.TryDecodeAsNil() { + x.Topologies = nil + } else { + if false { + } else { + h.decSlicePtrtoCSITopology((*[]*CSITopology)(&x.Topologies), d) + } + } + case "AccessMode": + if r.TryDecodeAsNil() { + x.AccessMode = "" + } else { + x.AccessMode.CodecDecodeSelf(d) + } + case "AttachmentMode": + if r.TryDecodeAsNil() { + x.AttachmentMode = "" + } else { + x.AttachmentMode.CodecDecodeSelf(d) + } + case "CurrentReaders": + if r.TryDecodeAsNil() { + x.CurrentReaders = 0 + } else { + x.CurrentReaders = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "CurrentWriters": + if r.TryDecodeAsNil() { + x.CurrentWriters = 0 + } else { + x.CurrentWriters = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Schedulable": + if r.TryDecodeAsNil() { + x.Schedulable = false + } else { + x.Schedulable = (bool)(r.DecodeBool()) + } + case "PluginID": + if r.TryDecodeAsNil() { + x.PluginID = "" + } else { + x.PluginID = (string)(r.DecodeString()) + } + case "Provider": + if r.TryDecodeAsNil() { + x.Provider = "" + } else { + x.Provider = (string)(r.DecodeString()) + } + case "ControllerRequired": + if r.TryDecodeAsNil() { + x.ControllerRequired = false + } else { + x.ControllerRequired = (bool)(r.DecodeBool()) + } + case "ControllersHealthy": + if r.TryDecodeAsNil() { + x.ControllersHealthy = 0 + } else { + x.ControllersHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "ControllersExpected": + if r.TryDecodeAsNil() { + x.ControllersExpected = 0 + } else { + x.ControllersExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "NodesHealthy": + if r.TryDecodeAsNil() { + x.NodesHealthy = 0 + } else { + x.NodesHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "NodesExpected": + if r.TryDecodeAsNil() { + x.NodesExpected = 0 + } else { + x.NodesExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "ResourceExhausted": + if r.TryDecodeAsNil() { + x.ResourceExhausted = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.ResourceExhausted = r.DecodeTime() + } else if yyxt23 := z.Extension(z.I2Rtid(x.ResourceExhausted)); yyxt23 != nil { + z.DecExtension(x.ResourceExhausted, yyxt23) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.ResourceExhausted) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.ResourceExhausted) + } else { + z.DecFallback(&x.ResourceExhausted, false) + } + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + case "CreateTime": + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + case "ModifyTime": + if r.TryDecodeAsNil() { + x.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIVolListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj28 int + var yyb28 bool + var yyhl28 bool = l >= 0 + yyj28++ + if yyhl28 { + yyb28 = yyj28 > l + } else { + yyb28 = r.CheckBreak() + } + if yyb28 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj28++ + if yyhl28 { + yyb28 = yyj28 > l + } else { + yyb28 = r.CheckBreak() + } + if yyb28 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj28++ + if yyhl28 { + yyb28 = yyj28 > l + } else { + yyb28 = r.CheckBreak() + } + if yyb28 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj28++ + if yyhl28 { + yyb28 = yyj28 > l + } else { + yyb28 = r.CheckBreak() + } + if yyb28 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ExternalID = "" + } else { + x.ExternalID = (string)(r.DecodeString()) + } + yyj28++ + if yyhl28 { + yyb28 = yyj28 > l + } else { + yyb28 = r.CheckBreak() + } + if yyb28 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Topologies = nil + } else { + if false { + } else { + h.decSlicePtrtoCSITopology((*[]*CSITopology)(&x.Topologies), d) + } + } + yyj28++ + if yyhl28 { + yyb28 = yyj28 > l + } else { + yyb28 = r.CheckBreak() + } + if yyb28 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AccessMode = "" + } else { + x.AccessMode.CodecDecodeSelf(d) + } + yyj28++ + if yyhl28 { + yyb28 = yyj28 > l + } else { + yyb28 = r.CheckBreak() + } + if yyb28 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AttachmentMode = "" + } else { + x.AttachmentMode.CodecDecodeSelf(d) + } + yyj28++ + if yyhl28 { + yyb28 = yyj28 > l + } else { + yyb28 = r.CheckBreak() + } + if yyb28 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CurrentReaders = 0 + } else { + x.CurrentReaders = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj28++ + if yyhl28 { + yyb28 = yyj28 > l + } else { + yyb28 = r.CheckBreak() + } + if yyb28 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CurrentWriters = 0 + } else { + x.CurrentWriters = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj28++ + if yyhl28 { + yyb28 = yyj28 > l + } else { + yyb28 = r.CheckBreak() + } + if yyb28 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Schedulable = false + } else { + x.Schedulable = (bool)(r.DecodeBool()) + } + yyj28++ + if yyhl28 { + yyb28 = yyj28 > l + } else { + yyb28 = r.CheckBreak() + } + if yyb28 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PluginID = "" + } else { + x.PluginID = (string)(r.DecodeString()) + } + yyj28++ + if yyhl28 { + yyb28 = yyj28 > l + } else { + yyb28 = r.CheckBreak() + } + if yyb28 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Provider = "" + } else { + x.Provider = (string)(r.DecodeString()) + } + yyj28++ + if yyhl28 { + yyb28 = yyj28 > l + } else { + yyb28 = r.CheckBreak() + } + if yyb28 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ControllerRequired = false + } else { + x.ControllerRequired = (bool)(r.DecodeBool()) + } + yyj28++ + if yyhl28 { + yyb28 = yyj28 > l + } else { + yyb28 = r.CheckBreak() + } + if yyb28 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ControllersHealthy = 0 + } else { + x.ControllersHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj28++ + if yyhl28 { + yyb28 = yyj28 > l + } else { + yyb28 = r.CheckBreak() + } + if yyb28 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ControllersExpected = 0 + } else { + x.ControllersExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj28++ + if yyhl28 { + yyb28 = yyj28 > l + } else { + yyb28 = r.CheckBreak() + } + if yyb28 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodesHealthy = 0 + } else { + x.NodesHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj28++ + if yyhl28 { + yyb28 = yyj28 > l + } else { + yyb28 = r.CheckBreak() + } + if yyb28 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodesExpected = 0 + } else { + x.NodesExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj28++ + if yyhl28 { + yyb28 = yyj28 > l + } else { + yyb28 = r.CheckBreak() + } + if yyb28 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ResourceExhausted = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.ResourceExhausted = r.DecodeTime() + } else if yyxt48 := z.Extension(z.I2Rtid(x.ResourceExhausted)); yyxt48 != nil { + z.DecExtension(x.ResourceExhausted, yyxt48) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.ResourceExhausted) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.ResourceExhausted) + } else { + z.DecFallback(&x.ResourceExhausted, false) + } + } + yyj28++ + if yyhl28 { + yyb28 = yyj28 > l + } else { + yyb28 = r.CheckBreak() + } + if yyb28 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj28++ + if yyhl28 { + yyb28 = yyj28 > l + } else { + yyb28 = r.CheckBreak() + } + if yyb28 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj28++ + if yyhl28 { + yyb28 = yyj28 > l + } else { + yyb28 = r.CheckBreak() + } + if yyb28 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + yyj28++ + if yyhl28 { + yyb28 = yyj28 > l + } else { + yyb28 = r.CheckBreak() + } + if yyb28 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + for { + yyj28++ + if yyhl28 { + yyb28 = yyj28 > l + } else { + yyb28 = r.CheckBreak() + } + if yyb28 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj28-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIVolumeRegisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Volumes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoCSIVolume(([]*CSIVolume)(x.Volumes), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Volumes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Volumes`) + } + r.WriteMapElemValue() + if x.Volumes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoCSIVolume(([]*CSIVolume)(x.Volumes), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Timestamp)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timestamp\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Timestamp`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Timestamp)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIVolumeRegisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIVolumeRegisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Volumes": + if r.TryDecodeAsNil() { + x.Volumes = nil + } else { + if false { + } else { + h.decSlicePtrtoCSIVolume((*[]*CSIVolume)(&x.Volumes), d) + } + } + case "Timestamp": + if r.TryDecodeAsNil() { + x.Timestamp = 0 + } else { + x.Timestamp = (int64)(r.DecodeInt64()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIVolumeRegisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Volumes = nil + } else { + if false { + } else { + h.decSlicePtrtoCSIVolume((*[]*CSIVolume)(&x.Volumes), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Timestamp = 0 + } else { + x.Timestamp = (int64)(r.DecodeInt64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIVolumeRegisterResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.EncExtension(x.LastContact, yyxt7) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.EncExtension(x.LastContact, yyxt8) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIVolumeRegisterResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIVolumeRegisterResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt6 := z.Extension(z.I2Rtid(x.LastContact)); yyxt6 != nil { + z.DecExtension(x.LastContact, yyxt6) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIVolumeRegisterResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt12 := z.Extension(z.I2Rtid(x.LastContact)); yyxt12 != nil { + z.DecExtension(x.LastContact, yyxt12) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIVolumeDeregisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.VolumeIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.VolumeIDs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VolumeIDs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `VolumeIDs`) + } + r.WriteMapElemValue() + if x.VolumeIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.VolumeIDs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Force)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Force\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Force`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Force)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIVolumeDeregisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIVolumeDeregisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "VolumeIDs": + if r.TryDecodeAsNil() { + x.VolumeIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.VolumeIDs), d) + } + } + case "Force": + if r.TryDecodeAsNil() { + x.Force = false + } else { + x.Force = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIVolumeDeregisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VolumeIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.VolumeIDs), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Force = false + } else { + x.Force = (bool)(r.DecodeBool()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIVolumeDeregisterResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.EncExtension(x.LastContact, yyxt7) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.EncExtension(x.LastContact, yyxt8) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIVolumeDeregisterResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIVolumeDeregisterResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt6 := z.Extension(z.I2Rtid(x.LastContact)); yyxt6 != nil { + z.DecExtension(x.LastContact, yyxt6) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIVolumeDeregisterResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt12 := z.Extension(z.I2Rtid(x.LastContact)); yyxt12 != nil { + z.DecExtension(x.LastContact, yyxt12) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIVolumeCreateRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Volumes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoCSIVolume(([]*CSIVolume)(x.Volumes), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Volumes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Volumes`) + } + r.WriteMapElemValue() + if x.Volumes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoCSIVolume(([]*CSIVolume)(x.Volumes), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Timestamp)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timestamp\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Timestamp`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Timestamp)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIVolumeCreateRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIVolumeCreateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Volumes": + if r.TryDecodeAsNil() { + x.Volumes = nil + } else { + if false { + } else { + h.decSlicePtrtoCSIVolume((*[]*CSIVolume)(&x.Volumes), d) + } + } + case "Timestamp": + if r.TryDecodeAsNil() { + x.Timestamp = 0 + } else { + x.Timestamp = (int64)(r.DecodeInt64()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIVolumeCreateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Volumes = nil + } else { + if false { + } else { + h.decSlicePtrtoCSIVolume((*[]*CSIVolume)(&x.Volumes), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Timestamp = 0 + } else { + x.Timestamp = (int64)(r.DecodeInt64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIVolumeCreateResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Volumes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoCSIVolume(([]*CSIVolume)(x.Volumes), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Volumes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Volumes`) + } + r.WriteMapElemValue() + if x.Volumes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoCSIVolume(([]*CSIVolume)(x.Volumes), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIVolumeCreateResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIVolumeCreateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Volumes": + if r.TryDecodeAsNil() { + x.Volumes = nil + } else { + if false { + } else { + h.decSlicePtrtoCSIVolume((*[]*CSIVolume)(&x.Volumes), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIVolumeCreateResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Volumes = nil + } else { + if false { + } else { + h.decSlicePtrtoCSIVolume((*[]*CSIVolume)(&x.Volumes), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIVolumeDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.VolumeIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.VolumeIDs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VolumeIDs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `VolumeIDs`) + } + r.WriteMapElemValue() + if x.VolumeIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.VolumeIDs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Secrets == nil { + r.EncodeNil() + } else { + x.Secrets.CodecEncodeSelf(e) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Secrets\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Secrets`) + } + r.WriteMapElemValue() + if x.Secrets == nil { + r.EncodeNil() + } else { + x.Secrets.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIVolumeDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIVolumeDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "VolumeIDs": + if r.TryDecodeAsNil() { + x.VolumeIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.VolumeIDs), d) + } + } + case "Secrets": + if r.TryDecodeAsNil() { + x.Secrets = nil + } else { + x.Secrets.CodecDecodeSelf(d) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIVolumeDeleteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VolumeIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.VolumeIDs), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Secrets = nil + } else { + x.Secrets.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIVolumeDeleteResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.EncExtension(x.LastContact, yyxt7) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.EncExtension(x.LastContact, yyxt8) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIVolumeDeleteResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIVolumeDeleteResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt6 := z.Extension(z.I2Rtid(x.LastContact)); yyxt6 != nil { + z.DecExtension(x.LastContact, yyxt6) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIVolumeDeleteResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt12 := z.Extension(z.I2Rtid(x.LastContact)); yyxt12 != nil { + z.DecExtension(x.LastContact, yyxt12) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIVolumeExpandRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.VolumeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VolumeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VolumeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `VolumeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.VolumeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VolumeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.RequestedCapacityMin)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RequestedCapacityMin\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RequestedCapacityMin`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.RequestedCapacityMin)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.RequestedCapacityMax)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RequestedCapacityMax\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RequestedCapacityMax`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.RequestedCapacityMax)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Secrets == nil { + r.EncodeNil() + } else { + x.Secrets.CodecEncodeSelf(e) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Secrets\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Secrets`) + } + r.WriteMapElemValue() + if x.Secrets == nil { + r.EncodeNil() + } else { + x.Secrets.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIVolumeExpandRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIVolumeExpandRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "VolumeID": + if r.TryDecodeAsNil() { + x.VolumeID = "" + } else { + x.VolumeID = (string)(r.DecodeString()) + } + case "RequestedCapacityMin": + if r.TryDecodeAsNil() { + x.RequestedCapacityMin = 0 + } else { + x.RequestedCapacityMin = (int64)(r.DecodeInt64()) + } + case "RequestedCapacityMax": + if r.TryDecodeAsNil() { + x.RequestedCapacityMax = 0 + } else { + x.RequestedCapacityMax = (int64)(r.DecodeInt64()) + } + case "Secrets": + if r.TryDecodeAsNil() { + x.Secrets = nil + } else { + x.Secrets.CodecDecodeSelf(d) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIVolumeExpandRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VolumeID = "" + } else { + x.VolumeID = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RequestedCapacityMin = 0 + } else { + x.RequestedCapacityMin = (int64)(r.DecodeInt64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RequestedCapacityMax = 0 + } else { + x.RequestedCapacityMax = (int64)(r.DecodeInt64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Secrets = nil + } else { + x.Secrets.CodecDecodeSelf(d) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIVolumeExpandResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CapacityBytes)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CapacityBytes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CapacityBytes`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CapacityBytes)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIVolumeExpandResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIVolumeExpandResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "CapacityBytes": + if r.TryDecodeAsNil() { + x.CapacityBytes = 0 + } else { + x.CapacityBytes = (int64)(r.DecodeInt64()) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIVolumeExpandResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CapacityBytes = 0 + } else { + x.CapacityBytes = (int64)(r.DecodeInt64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.DecExtension(x.LastContact, yyxt14) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x CSIVolumeClaimMode) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + r.EncodeInt(int64(x)) + } +} + +func (x *CSIVolumeClaimMode) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (CSIVolumeClaimMode)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } +} + +func (x *CSIVolumeClaimBatchRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Claims == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceCSIVolumeClaimRequest(([]CSIVolumeClaimRequest)(x.Claims), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Claims\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Claims`) + } + r.WriteMapElemValue() + if x.Claims == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceCSIVolumeClaimRequest(([]CSIVolumeClaimRequest)(x.Claims), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIVolumeClaimBatchRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIVolumeClaimBatchRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Claims": + if r.TryDecodeAsNil() { + x.Claims = nil + } else { + if false { + } else { + h.decSliceCSIVolumeClaimRequest((*[]CSIVolumeClaimRequest)(&x.Claims), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIVolumeClaimBatchRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Claims = nil + } else { + if false { + } else { + h.decSliceCSIVolumeClaimRequest((*[]CSIVolumeClaimRequest)(&x.Claims), d) + } + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIVolumeClaimRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(14) + } else { + r.WriteMapStart(14) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.VolumeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VolumeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VolumeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `VolumeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.VolumeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VolumeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocationID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocationID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocationID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocationID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocationID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocationID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ExternalNodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ExternalNodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ExternalNodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ExternalNodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ExternalNodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ExternalNodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Claim.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Claim\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Claim`) + } + r.WriteMapElemValue() + x.Claim.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.AccessMode.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AccessMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AccessMode`) + } + r.WriteMapElemValue() + x.AccessMode.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.AttachmentMode.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AttachmentMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AttachmentMode`) + } + r.WriteMapElemValue() + x.AttachmentMode.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.State.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"State\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `State`) + } + r.WriteMapElemValue() + x.State.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Timestamp)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timestamp\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Timestamp`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Timestamp)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIVolumeClaimRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIVolumeClaimRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "VolumeID": + if r.TryDecodeAsNil() { + x.VolumeID = "" + } else { + x.VolumeID = (string)(r.DecodeString()) + } + case "AllocationID": + if r.TryDecodeAsNil() { + x.AllocationID = "" + } else { + x.AllocationID = (string)(r.DecodeString()) + } + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "ExternalNodeID": + if r.TryDecodeAsNil() { + x.ExternalNodeID = "" + } else { + x.ExternalNodeID = (string)(r.DecodeString()) + } + case "Claim": + if r.TryDecodeAsNil() { + x.Claim = 0 + } else { + x.Claim.CodecDecodeSelf(d) + } + case "AccessMode": + if r.TryDecodeAsNil() { + x.AccessMode = "" + } else { + x.AccessMode.CodecDecodeSelf(d) + } + case "AttachmentMode": + if r.TryDecodeAsNil() { + x.AttachmentMode = "" + } else { + x.AttachmentMode.CodecDecodeSelf(d) + } + case "State": + if r.TryDecodeAsNil() { + x.State = 0 + } else { + x.State.CodecDecodeSelf(d) + } + case "Timestamp": + if r.TryDecodeAsNil() { + x.Timestamp = 0 + } else { + x.Timestamp = (int64)(r.DecodeInt64()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIVolumeClaimRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VolumeID = "" + } else { + x.VolumeID = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocationID = "" + } else { + x.AllocationID = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ExternalNodeID = "" + } else { + x.ExternalNodeID = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Claim = 0 + } else { + x.Claim.CodecDecodeSelf(d) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AccessMode = "" + } else { + x.AccessMode.CodecDecodeSelf(d) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AttachmentMode = "" + } else { + x.AttachmentMode.CodecDecodeSelf(d) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.State = 0 + } else { + x.State.CodecDecodeSelf(d) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Timestamp = 0 + } else { + x.Timestamp = (int64)(r.DecodeInt64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIVolumeClaimResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.PublishContext == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.PublishContext), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PublishContext\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PublishContext`) + } + r.WriteMapElemValue() + if x.PublishContext == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.PublishContext), e) + } + } + } + var yyn6 bool + if x.Volume == nil { + yyn6 = true + goto LABEL6 + } + LABEL6: + if yyr2 || yy2arr2 { + if yyn6 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Volume == nil { + r.EncodeNil() + } else { + x.Volume.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Volume\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Volume`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.Volume == nil { + r.EncodeNil() + } else { + x.Volume.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { + z.EncExtension(x.LastContact, yyxt13) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.EncExtension(x.LastContact, yyxt14) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIVolumeClaimResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIVolumeClaimResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "PublishContext": + if r.TryDecodeAsNil() { + x.PublishContext = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.PublishContext), d) + } + } + case "Volume": + if r.TryDecodeAsNil() { + if true && x.Volume != nil { + x.Volume = nil + } + } else { + if x.Volume == nil { + x.Volume = new(CSIVolume) + } + + x.Volume.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.LastContact)); yyxt9 != nil { + z.DecExtension(x.LastContact, yyxt9) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIVolumeClaimResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PublishContext = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.PublishContext), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Volume != nil { + x.Volume = nil + } + } else { + if x.Volume == nil { + x.Volume = new(CSIVolume) + } + + x.Volume.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt18 := z.Extension(z.I2Rtid(x.LastContact)); yyxt18 != nil { + z.DecExtension(x.LastContact, yyxt18) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIVolumeListRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(14) + } else { + r.WriteMapStart(14) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PluginID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PluginID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { + z.EncExtension(x.MaxQueryTime, yyxt19) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.EncExtension(x.MaxQueryTime, yyxt20) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIVolumeListRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIVolumeListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "PluginID": + if r.TryDecodeAsNil() { + x.PluginID = "" + } else { + x.PluginID = (string)(r.DecodeString()) + } + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIVolumeListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj19 int + var yyb19 bool + var yyhl19 bool = l >= 0 + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PluginID = "" + } else { + x.PluginID = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { + z.DecExtension(x.MaxQueryTime, yyxt26) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj19-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIVolumeListResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Volumes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoCSIVolListStub(([]*CSIVolListStub)(x.Volumes), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Volumes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Volumes`) + } + r.WriteMapElemValue() + if x.Volumes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoCSIVolListStub(([]*CSIVolListStub)(x.Volumes), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIVolumeListResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIVolumeListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Volumes": + if r.TryDecodeAsNil() { + x.Volumes = nil + } else { + if false { + } else { + h.decSlicePtrtoCSIVolListStub((*[]*CSIVolListStub)(&x.Volumes), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIVolumeListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Volumes = nil + } else { + if false { + } else { + h.decSlicePtrtoCSIVolListStub((*[]*CSIVolListStub)(&x.Volumes), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIVolumeExternalListRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PluginID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PluginID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIVolumeExternalListRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIVolumeExternalListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "PluginID": + if r.TryDecodeAsNil() { + x.PluginID = "" + } else { + x.PluginID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIVolumeExternalListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PluginID = "" + } else { + x.PluginID = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt24 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt24 != nil { + z.DecExtension(x.MaxQueryTime, yyxt24) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIVolumeExternalListResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Volumes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoCSIVolumeExternalStub(([]*CSIVolumeExternalStub)(x.Volumes), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Volumes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Volumes`) + } + r.WriteMapElemValue() + if x.Volumes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoCSIVolumeExternalStub(([]*CSIVolumeExternalStub)(x.Volumes), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { + z.EncExtension(x.LastContact, yyxt13) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.EncExtension(x.LastContact, yyxt14) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIVolumeExternalListResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIVolumeExternalListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Volumes": + if r.TryDecodeAsNil() { + x.Volumes = nil + } else { + if false { + } else { + h.decSlicePtrtoCSIVolumeExternalStub((*[]*CSIVolumeExternalStub)(&x.Volumes), d) + } + } + case "NextToken": + if r.TryDecodeAsNil() { + x.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.LastContact)); yyxt9 != nil { + z.DecExtension(x.LastContact, yyxt9) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIVolumeExternalListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Volumes = nil + } else { + if false { + } else { + h.decSlicePtrtoCSIVolumeExternalStub((*[]*CSIVolumeExternalStub)(&x.Volumes), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.LastContact)); yyxt17 != nil { + z.DecExtension(x.LastContact, yyxt17) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIVolumeExternalStub) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ExternalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ExternalID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ExternalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ExternalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ExternalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ExternalID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CapacityBytes)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CapacityBytes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CapacityBytes`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CapacityBytes)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.VolumeContext == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.VolumeContext), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VolumeContext\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `VolumeContext`) + } + r.WriteMapElemValue() + if x.VolumeContext == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.VolumeContext), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.CloneID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.CloneID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CloneID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CloneID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.CloneID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.CloneID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SnapshotID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SnapshotID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SnapshotID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SnapshotID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SnapshotID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SnapshotID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.PublishedExternalNodeIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.PublishedExternalNodeIDs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PublishedExternalNodeIDs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PublishedExternalNodeIDs`) + } + r.WriteMapElemValue() + if x.PublishedExternalNodeIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.PublishedExternalNodeIDs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.IsAbnormal)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IsAbnormal\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IsAbnormal`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.IsAbnormal)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Status\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIVolumeExternalStub) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIVolumeExternalStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ExternalID": + if r.TryDecodeAsNil() { + x.ExternalID = "" + } else { + x.ExternalID = (string)(r.DecodeString()) + } + case "CapacityBytes": + if r.TryDecodeAsNil() { + x.CapacityBytes = 0 + } else { + x.CapacityBytes = (int64)(r.DecodeInt64()) + } + case "VolumeContext": + if r.TryDecodeAsNil() { + x.VolumeContext = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.VolumeContext), d) + } + } + case "CloneID": + if r.TryDecodeAsNil() { + x.CloneID = "" + } else { + x.CloneID = (string)(r.DecodeString()) + } + case "SnapshotID": + if r.TryDecodeAsNil() { + x.SnapshotID = "" + } else { + x.SnapshotID = (string)(r.DecodeString()) + } + case "PublishedExternalNodeIDs": + if r.TryDecodeAsNil() { + x.PublishedExternalNodeIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.PublishedExternalNodeIDs), d) + } + } + case "IsAbnormal": + if r.TryDecodeAsNil() { + x.IsAbnormal = false + } else { + x.IsAbnormal = (bool)(r.DecodeBool()) + } + case "Status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIVolumeExternalStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj14 int + var yyb14 bool + var yyhl14 bool = l >= 0 + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ExternalID = "" + } else { + x.ExternalID = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CapacityBytes = 0 + } else { + x.CapacityBytes = (int64)(r.DecodeInt64()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VolumeContext = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.VolumeContext), d) + } + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CloneID = "" + } else { + x.CloneID = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SnapshotID = "" + } else { + x.SnapshotID = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PublishedExternalNodeIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.PublishedExternalNodeIDs), d) + } + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.IsAbnormal = false + } else { + x.IsAbnormal = (bool)(r.DecodeBool()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + for { + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj14-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIVolumeGetRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIVolumeGetRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIVolumeGetRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIVolumeGetRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt24 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt24 != nil { + z.DecExtension(x.MaxQueryTime, yyxt24) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIVolumeGetResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + var yyn3 bool + if x.Volume == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Volume == nil { + r.EncodeNil() + } else { + x.Volume.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Volume\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Volume`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Volume == nil { + r.EncodeNil() + } else { + x.Volume.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIVolumeGetResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIVolumeGetResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Volume": + if r.TryDecodeAsNil() { + if true && x.Volume != nil { + x.Volume = nil + } + } else { + if x.Volume == nil { + x.Volume = new(CSIVolume) + } + + x.Volume.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIVolumeGetResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Volume != nil { + x.Volume = nil + } + } else { + if x.Volume == nil { + x.Volume = new(CSIVolume) + } + + x.Volume.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.DecExtension(x.LastContact, yyxt14) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIVolumeUnpublishRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.VolumeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VolumeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VolumeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `VolumeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.VolumeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VolumeID)) + } + } + } + var yyn6 bool + if x.Claim == nil { + yyn6 = true + goto LABEL6 + } + LABEL6: + if yyr2 || yy2arr2 { + if yyn6 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Claim == nil { + r.EncodeNil() + } else { + x.Claim.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Claim\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Claim`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.Claim == nil { + r.EncodeNil() + } else { + x.Claim.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIVolumeUnpublishRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIVolumeUnpublishRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "VolumeID": + if r.TryDecodeAsNil() { + x.VolumeID = "" + } else { + x.VolumeID = (string)(r.DecodeString()) + } + case "Claim": + if r.TryDecodeAsNil() { + if true && x.Claim != nil { + x.Claim = nil + } + } else { + if x.Claim == nil { + x.Claim = new(CSIVolumeClaim) + } + + x.Claim.CodecDecodeSelf(d) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIVolumeUnpublishRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VolumeID = "" + } else { + x.VolumeID = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Claim != nil { + x.Claim = nil + } + } else { + if x.Claim == nil { + x.Claim = new(CSIVolumeClaim) + } + + x.Claim.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIVolumeUnpublishResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.EncExtension(x.LastContact, yyxt7) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.EncExtension(x.LastContact, yyxt8) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIVolumeUnpublishResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIVolumeUnpublishResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt6 := z.Extension(z.I2Rtid(x.LastContact)); yyxt6 != nil { + z.DecExtension(x.LastContact, yyxt6) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIVolumeUnpublishResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt12 := z.Extension(z.I2Rtid(x.LastContact)); yyxt12 != nil { + z.DecExtension(x.LastContact, yyxt12) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSISnapshot) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(10) + } else { + r.WriteMapStart(10) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ExternalSourceVolumeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ExternalSourceVolumeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ExternalSourceVolumeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ExternalSourceVolumeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ExternalSourceVolumeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ExternalSourceVolumeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.SizeBytes)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SizeBytes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SizeBytes`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.SizeBytes)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.IsReady)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IsReady\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IsReady`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.IsReady)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SourceVolumeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SourceVolumeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SourceVolumeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SourceVolumeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SourceVolumeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SourceVolumeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PluginID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PluginID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Secrets == nil { + r.EncodeNil() + } else { + x.Secrets.CodecEncodeSelf(e) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Secrets\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Secrets`) + } + r.WriteMapElemValue() + if x.Secrets == nil { + r.EncodeNil() + } else { + x.Secrets.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Parameters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Parameters), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Parameters\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Parameters`) + } + r.WriteMapElemValue() + if x.Parameters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Parameters), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSISnapshot) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSISnapshot) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "ExternalSourceVolumeID": + if r.TryDecodeAsNil() { + x.ExternalSourceVolumeID = "" + } else { + x.ExternalSourceVolumeID = (string)(r.DecodeString()) + } + case "SizeBytes": + if r.TryDecodeAsNil() { + x.SizeBytes = 0 + } else { + x.SizeBytes = (int64)(r.DecodeInt64()) + } + case "CreateTime": + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + case "IsReady": + if r.TryDecodeAsNil() { + x.IsReady = false + } else { + x.IsReady = (bool)(r.DecodeBool()) + } + case "SourceVolumeID": + if r.TryDecodeAsNil() { + x.SourceVolumeID = "" + } else { + x.SourceVolumeID = (string)(r.DecodeString()) + } + case "PluginID": + if r.TryDecodeAsNil() { + x.PluginID = "" + } else { + x.PluginID = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Secrets": + if r.TryDecodeAsNil() { + x.Secrets = nil + } else { + x.Secrets.CodecDecodeSelf(d) + } + case "Parameters": + if r.TryDecodeAsNil() { + x.Parameters = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Parameters), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSISnapshot) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj15 int + var yyb15 bool + var yyhl15 bool = l >= 0 + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ExternalSourceVolumeID = "" + } else { + x.ExternalSourceVolumeID = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SizeBytes = 0 + } else { + x.SizeBytes = (int64)(r.DecodeInt64()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.IsReady = false + } else { + x.IsReady = (bool)(r.DecodeBool()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SourceVolumeID = "" + } else { + x.SourceVolumeID = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PluginID = "" + } else { + x.PluginID = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Secrets = nil + } else { + x.Secrets.CodecDecodeSelf(d) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Parameters = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Parameters), d) + } + } + for { + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj15-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSISnapshotCreateRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Snapshots == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoCSISnapshot(([]*CSISnapshot)(x.Snapshots), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Snapshots\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Snapshots`) + } + r.WriteMapElemValue() + if x.Snapshots == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoCSISnapshot(([]*CSISnapshot)(x.Snapshots), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSISnapshotCreateRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSISnapshotCreateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Snapshots": + if r.TryDecodeAsNil() { + x.Snapshots = nil + } else { + if false { + } else { + h.decSlicePtrtoCSISnapshot((*[]*CSISnapshot)(&x.Snapshots), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSISnapshotCreateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Snapshots = nil + } else { + if false { + } else { + h.decSlicePtrtoCSISnapshot((*[]*CSISnapshot)(&x.Snapshots), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSISnapshotCreateResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Snapshots == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoCSISnapshot(([]*CSISnapshot)(x.Snapshots), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Snapshots\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Snapshots`) + } + r.WriteMapElemValue() + if x.Snapshots == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoCSISnapshot(([]*CSISnapshot)(x.Snapshots), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSISnapshotCreateResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSISnapshotCreateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Snapshots": + if r.TryDecodeAsNil() { + x.Snapshots = nil + } else { + if false { + } else { + h.decSlicePtrtoCSISnapshot((*[]*CSISnapshot)(&x.Snapshots), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSISnapshotCreateResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Snapshots = nil + } else { + if false { + } else { + h.decSlicePtrtoCSISnapshot((*[]*CSISnapshot)(&x.Snapshots), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSISnapshotDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Snapshots == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoCSISnapshot(([]*CSISnapshot)(x.Snapshots), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Snapshots\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Snapshots`) + } + r.WriteMapElemValue() + if x.Snapshots == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoCSISnapshot(([]*CSISnapshot)(x.Snapshots), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSISnapshotDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSISnapshotDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Snapshots": + if r.TryDecodeAsNil() { + x.Snapshots = nil + } else { + if false { + } else { + h.decSlicePtrtoCSISnapshot((*[]*CSISnapshot)(&x.Snapshots), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSISnapshotDeleteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Snapshots = nil + } else { + if false { + } else { + h.decSlicePtrtoCSISnapshot((*[]*CSISnapshot)(&x.Snapshots), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSISnapshotDeleteResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.EncExtension(x.LastContact, yyxt7) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.EncExtension(x.LastContact, yyxt8) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSISnapshotDeleteResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSISnapshotDeleteResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt6 := z.Extension(z.I2Rtid(x.LastContact)); yyxt6 != nil { + z.DecExtension(x.LastContact, yyxt6) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSISnapshotDeleteResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt12 := z.Extension(z.I2Rtid(x.LastContact)); yyxt12 != nil { + z.DecExtension(x.LastContact, yyxt12) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSISnapshotListRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(14) + } else { + r.WriteMapStart(14) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PluginID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PluginID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Secrets == nil { + r.EncodeNil() + } else { + x.Secrets.CodecEncodeSelf(e) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Secrets\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Secrets`) + } + r.WriteMapElemValue() + if x.Secrets == nil { + r.EncodeNil() + } else { + x.Secrets.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { + z.EncExtension(x.MaxQueryTime, yyxt19) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.EncExtension(x.MaxQueryTime, yyxt20) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSISnapshotListRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSISnapshotListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "PluginID": + if r.TryDecodeAsNil() { + x.PluginID = "" + } else { + x.PluginID = (string)(r.DecodeString()) + } + case "Secrets": + if r.TryDecodeAsNil() { + x.Secrets = nil + } else { + x.Secrets.CodecDecodeSelf(d) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSISnapshotListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj19 int + var yyb19 bool + var yyhl19 bool = l >= 0 + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PluginID = "" + } else { + x.PluginID = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Secrets = nil + } else { + x.Secrets.CodecDecodeSelf(d) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { + z.DecExtension(x.MaxQueryTime, yyxt26) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj19-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSISnapshotListResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Snapshots == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoCSISnapshot(([]*CSISnapshot)(x.Snapshots), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Snapshots\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Snapshots`) + } + r.WriteMapElemValue() + if x.Snapshots == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoCSISnapshot(([]*CSISnapshot)(x.Snapshots), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { + z.EncExtension(x.LastContact, yyxt13) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.EncExtension(x.LastContact, yyxt14) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSISnapshotListResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSISnapshotListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Snapshots": + if r.TryDecodeAsNil() { + x.Snapshots = nil + } else { + if false { + } else { + h.decSlicePtrtoCSISnapshot((*[]*CSISnapshot)(&x.Snapshots), d) + } + } + case "NextToken": + if r.TryDecodeAsNil() { + x.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.LastContact)); yyxt9 != nil { + z.DecExtension(x.LastContact, yyxt9) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSISnapshotListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Snapshots = nil + } else { + if false { + } else { + h.decSlicePtrtoCSISnapshot((*[]*CSISnapshot)(&x.Snapshots), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.LastContact)); yyxt17 != nil { + z.DecExtension(x.LastContact, yyxt17) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIPlugin) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(17) + } else { + r.WriteMapStart(17) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Provider\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Provider`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Version))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Version)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Version\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Version`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Version))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Version)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.ControllerRequired)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ControllerRequired\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ControllerRequired`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.ControllerRequired)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Controllers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoCSIInfo((map[string]*CSIInfo)(x.Controllers), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Controllers\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Controllers`) + } + r.WriteMapElemValue() + if x.Controllers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoCSIInfo((map[string]*CSIInfo)(x.Controllers), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Nodes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoCSIInfo((map[string]*CSIInfo)(x.Nodes), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Nodes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Nodes`) + } + r.WriteMapElemValue() + if x.Nodes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoCSIInfo((map[string]*CSIInfo)(x.Nodes), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Allocations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Allocations\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Allocations`) + } + r.WriteMapElemValue() + if x.Allocations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ControllerJobs == nil { + r.EncodeNil() + } else { + x.ControllerJobs.CodecEncodeSelf(e) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ControllerJobs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ControllerJobs`) + } + r.WriteMapElemValue() + if x.ControllerJobs == nil { + r.EncodeNil() + } else { + x.ControllerJobs.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.NodeJobs == nil { + r.EncodeNil() + } else { + x.NodeJobs.CodecEncodeSelf(e) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeJobs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeJobs`) + } + r.WriteMapElemValue() + if x.NodeJobs == nil { + r.EncodeNil() + } else { + x.NodeJobs.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.ControllersHealthy)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ControllersHealthy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ControllersHealthy`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.ControllersHealthy)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.ControllersExpected)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ControllersExpected\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ControllersExpected`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.ControllersExpected)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.NodesHealthy)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodesHealthy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodesHealthy`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.NodesHealthy)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.NodesExpected)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodesExpected\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodesExpected`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.NodesExpected)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIPlugin) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIPlugin) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Provider": + if r.TryDecodeAsNil() { + x.Provider = "" + } else { + x.Provider = (string)(r.DecodeString()) + } + case "Version": + if r.TryDecodeAsNil() { + x.Version = "" + } else { + x.Version = (string)(r.DecodeString()) + } + case "ControllerRequired": + if r.TryDecodeAsNil() { + x.ControllerRequired = false + } else { + x.ControllerRequired = (bool)(r.DecodeBool()) + } + case "Controllers": + if r.TryDecodeAsNil() { + x.Controllers = nil + } else { + if false { + } else { + h.decMapstringPtrtoCSIInfo((*map[string]*CSIInfo)(&x.Controllers), d) + } + } + case "Nodes": + if r.TryDecodeAsNil() { + x.Nodes = nil + } else { + if false { + } else { + h.decMapstringPtrtoCSIInfo((*map[string]*CSIInfo)(&x.Nodes), d) + } + } + case "Allocations": + if r.TryDecodeAsNil() { + x.Allocations = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.Allocations), d) + } + } + case "ControllerJobs": + if r.TryDecodeAsNil() { + x.ControllerJobs = nil + } else { + x.ControllerJobs.CodecDecodeSelf(d) + } + case "NodeJobs": + if r.TryDecodeAsNil() { + x.NodeJobs = nil + } else { + x.NodeJobs.CodecDecodeSelf(d) + } + case "ControllersHealthy": + if r.TryDecodeAsNil() { + x.ControllersHealthy = 0 + } else { + x.ControllersHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "ControllersExpected": + if r.TryDecodeAsNil() { + x.ControllersExpected = 0 + } else { + x.ControllersExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "NodesHealthy": + if r.TryDecodeAsNil() { + x.NodesHealthy = 0 + } else { + x.NodesHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "NodesExpected": + if r.TryDecodeAsNil() { + x.NodesExpected = 0 + } else { + x.NodesExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + case "CreateTime": + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + case "ModifyTime": + if r.TryDecodeAsNil() { + x.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIPlugin) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + 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 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Provider = "" + } else { + x.Provider = (string)(r.DecodeString()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Version = "" + } else { + x.Version = (string)(r.DecodeString()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ControllerRequired = false + } else { + x.ControllerRequired = (bool)(r.DecodeBool()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Controllers = nil + } else { + if false { + } else { + h.decMapstringPtrtoCSIInfo((*map[string]*CSIInfo)(&x.Controllers), d) + } + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Nodes = nil + } else { + if false { + } else { + h.decMapstringPtrtoCSIInfo((*map[string]*CSIInfo)(&x.Nodes), d) + } + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Allocations = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.Allocations), d) + } + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ControllerJobs = nil + } else { + x.ControllerJobs.CodecDecodeSelf(d) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeJobs = nil + } else { + x.NodeJobs.CodecDecodeSelf(d) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ControllersHealthy = 0 + } else { + x.ControllersHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ControllersExpected = 0 + } else { + x.ControllersExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodesHealthy = 0 + } else { + x.NodesHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodesExpected = 0 + } else { + x.NodesExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + for { + yyj24++ + if yyhl24 { + yyb24 = yyj24 > l + } else { + yyb24 = r.CheckBreak() + } + if yyb24 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj24-1, "") + } + r.ReadArrayEnd() +} + +func (x CSIControllerCapability) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + r.EncodeUint(uint64(x)) + } +} + +func (x *CSIControllerCapability) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (CSIControllerCapability)(z.C.UintV(r.DecodeUint64(), 8)) + } +} + +func (x CSINodeCapability) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + r.EncodeUint(uint64(x)) + } +} + +func (x *CSINodeCapability) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (CSINodeCapability)(z.C.UintV(r.DecodeUint64(), 8)) + } +} + +func (x *JobDescription) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Expected)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Expected\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Expected`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Expected)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobDescription) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobDescription) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Expected": + if r.TryDecodeAsNil() { + x.Expected = 0 + } else { + x.Expected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobDescription) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Expected = 0 + } else { + x.Expected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x JobNamespacedDescriptions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encJobNamespacedDescriptions((JobNamespacedDescriptions)(x), e) + } + } +} + +func (x *JobNamespacedDescriptions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + h.decJobNamespacedDescriptions((*JobNamespacedDescriptions)(x), d) + } +} + +func (x JobDescriptions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encJobDescriptions((JobDescriptions)(x), e) + } + } +} + +func (x *JobDescriptions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + h.decJobDescriptions((*JobDescriptions)(x), d) + } +} + +func (x *CSIPluginListStub) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Provider\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Provider`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.ControllerRequired)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ControllerRequired\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ControllerRequired`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.ControllerRequired)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.ControllersHealthy)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ControllersHealthy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ControllersHealthy`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.ControllersHealthy)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.ControllersExpected)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ControllersExpected\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ControllersExpected`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.ControllersExpected)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.NodesHealthy)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodesHealthy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodesHealthy`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.NodesHealthy)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.NodesExpected)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodesExpected\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodesExpected`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.NodesExpected)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIPluginListStub) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIPluginListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Provider": + if r.TryDecodeAsNil() { + x.Provider = "" + } else { + x.Provider = (string)(r.DecodeString()) + } + case "ControllerRequired": + if r.TryDecodeAsNil() { + x.ControllerRequired = false + } else { + x.ControllerRequired = (bool)(r.DecodeBool()) + } + case "ControllersHealthy": + if r.TryDecodeAsNil() { + x.ControllersHealthy = 0 + } else { + x.ControllersHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "ControllersExpected": + if r.TryDecodeAsNil() { + x.ControllersExpected = 0 + } else { + x.ControllersExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "NodesHealthy": + if r.TryDecodeAsNil() { + x.NodesHealthy = 0 + } else { + x.NodesHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "NodesExpected": + if r.TryDecodeAsNil() { + x.NodesExpected = 0 + } else { + x.NodesExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIPluginListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Provider = "" + } else { + x.Provider = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ControllerRequired = false + } else { + x.ControllerRequired = (bool)(r.DecodeBool()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ControllersHealthy = 0 + } else { + x.ControllersHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ControllersExpected = 0 + } else { + x.ControllersExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodesHealthy = 0 + } else { + x.NodesHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodesExpected = 0 + } else { + x.NodesExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIPluginListRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(12) + } else { + r.WriteMapStart(12) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.EncExtension(x.MaxQueryTime, yyxt13) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { + z.EncExtension(x.MaxQueryTime, yyxt14) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIPluginListRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIPluginListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { + z.DecExtension(x.MaxQueryTime, yyxt8) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIPluginListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { + z.DecExtension(x.MaxQueryTime, yyxt22) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIPluginListResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Plugins == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoCSIPluginListStub(([]*CSIPluginListStub)(x.Plugins), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Plugins\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Plugins`) + } + r.WriteMapElemValue() + if x.Plugins == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoCSIPluginListStub(([]*CSIPluginListStub)(x.Plugins), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIPluginListResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIPluginListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Plugins": + if r.TryDecodeAsNil() { + x.Plugins = nil + } else { + if false { + } else { + h.decSlicePtrtoCSIPluginListStub((*[]*CSIPluginListStub)(&x.Plugins), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIPluginListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Plugins = nil + } else { + if false { + } else { + h.decSlicePtrtoCSIPluginListStub((*[]*CSIPluginListStub)(&x.Plugins), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIPluginGetRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIPluginGetRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIPluginGetRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIPluginGetRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt24 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt24 != nil { + z.DecExtension(x.MaxQueryTime, yyxt24) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIPluginGetResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + var yyn3 bool + if x.Plugin == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Plugin == nil { + r.EncodeNil() + } else { + x.Plugin.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Plugin\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Plugin`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Plugin == nil { + r.EncodeNil() + } else { + x.Plugin.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIPluginGetResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIPluginGetResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Plugin": + if r.TryDecodeAsNil() { + if true && x.Plugin != nil { + x.Plugin = nil + } + } else { + if x.Plugin == nil { + x.Plugin = new(CSIPlugin) + } + + x.Plugin.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIPluginGetResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Plugin != nil { + x.Plugin = nil + } + } else { + if x.Plugin == nil { + x.Plugin = new(CSIPlugin) + } + + x.Plugin.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.DecExtension(x.LastContact, yyxt14) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIPluginDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIPluginDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIPluginDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIPluginDeleteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt24 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt24 != nil { + z.DecExtension(x.MaxQueryTime, yyxt24) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIPluginDeleteResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.EncExtension(x.LastContact, yyxt7) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.EncExtension(x.LastContact, yyxt8) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIPluginDeleteResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIPluginDeleteResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt6 := z.Extension(z.I2Rtid(x.LastContact)); yyxt6 != nil { + z.DecExtension(x.LastContact, yyxt6) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIPluginDeleteResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt12 := z.Extension(z.I2Rtid(x.LastContact)); yyxt12 != nil { + z.DecExtension(x.LastContact, yyxt12) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeviceAccounter) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Devices == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapDeviceIdTuplePtrtoDeviceAccounterInstance((map[DeviceIdTuple]*DeviceAccounterInstance)(x.Devices), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Devices\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Devices`) + } + r.WriteMapElemValue() + if x.Devices == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapDeviceIdTuplePtrtoDeviceAccounterInstance((map[DeviceIdTuple]*DeviceAccounterInstance)(x.Devices), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeviceAccounter) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeviceAccounter) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Devices": + if r.TryDecodeAsNil() { + x.Devices = nil + } else { + if false { + } else { + h.decMapDeviceIdTuplePtrtoDeviceAccounterInstance((*map[DeviceIdTuple]*DeviceAccounterInstance)(&x.Devices), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeviceAccounter) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Devices = nil + } else { + if false { + } else { + h.decMapDeviceIdTuplePtrtoDeviceAccounterInstance((*map[DeviceIdTuple]*DeviceAccounterInstance)(&x.Devices), d) + } + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeviceAccounterInstance) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + var yyn3 bool + if x.Device == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Device == nil { + r.EncodeNil() + } else { + x.Device.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Device\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Device`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Device == nil { + r.EncodeNil() + } else { + x.Device.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Instances == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringint((map[string]int)(x.Instances), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Instances\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Instances`) + } + r.WriteMapElemValue() + if x.Instances == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringint((map[string]int)(x.Instances), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeviceAccounterInstance) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeviceAccounterInstance) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Device": + if r.TryDecodeAsNil() { + if true && x.Device != nil { + x.Device = nil + } + } else { + if x.Device == nil { + x.Device = new(NodeDeviceResource) + } + + x.Device.CodecDecodeSelf(d) + } + case "Instances": + if r.TryDecodeAsNil() { + x.Instances = nil + } else { + if false { + } else { + h.decMapstringint((*map[string]int)(&x.Instances), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeviceAccounterInstance) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Device != nil { + x.Device = nil + } + } else { + if x.Device == nil { + x.Device = new(NodeDeviceResource) + } + + x.Device.CodecDecodeSelf(d) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Instances = nil + } else { + if false { + } else { + h.decMapstringint((*map[string]int)(&x.Instances), d) + } + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x DiffType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) + } + } +} + +func (x *DiffType) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (DiffType)(r.DecodeString()) + } +} + +func (x *JobDiff) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Type.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + x.Type.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Fields == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoFieldDiff(([]*FieldDiff)(x.Fields), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Fields\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Fields`) + } + r.WriteMapElemValue() + if x.Fields == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoFieldDiff(([]*FieldDiff)(x.Fields), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Objects == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoObjectDiff(([]*ObjectDiff)(x.Objects), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Objects\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Objects`) + } + r.WriteMapElemValue() + if x.Objects == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoObjectDiff(([]*ObjectDiff)(x.Objects), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.TaskGroups == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoTaskGroupDiff(([]*TaskGroupDiff)(x.TaskGroups), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskGroups\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroups`) + } + r.WriteMapElemValue() + if x.TaskGroups == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoTaskGroupDiff(([]*TaskGroupDiff)(x.TaskGroups), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobDiff) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobDiff) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type.CodecDecodeSelf(d) + } + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Fields": + if r.TryDecodeAsNil() { + x.Fields = nil + } else { + if false { + } else { + h.decSlicePtrtoFieldDiff((*[]*FieldDiff)(&x.Fields), d) + } + } + case "Objects": + if r.TryDecodeAsNil() { + x.Objects = nil + } else { + if false { + } else { + h.decSlicePtrtoObjectDiff((*[]*ObjectDiff)(&x.Objects), d) + } + } + case "TaskGroups": + if r.TryDecodeAsNil() { + x.TaskGroups = nil + } else { + if false { + } else { + h.decSlicePtrtoTaskGroupDiff((*[]*TaskGroupDiff)(&x.TaskGroups), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobDiff) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Fields = nil + } else { + if false { + } else { + h.decSlicePtrtoFieldDiff((*[]*FieldDiff)(&x.Fields), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Objects = nil + } else { + if false { + } else { + h.decSlicePtrtoObjectDiff((*[]*ObjectDiff)(&x.Objects), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskGroups = nil + } else { + if false { + } else { + h.decSlicePtrtoTaskGroupDiff((*[]*TaskGroupDiff)(&x.TaskGroups), d) + } + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *TaskGroupDiff) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Type.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + x.Type.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Fields == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoFieldDiff(([]*FieldDiff)(x.Fields), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Fields\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Fields`) + } + r.WriteMapElemValue() + if x.Fields == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoFieldDiff(([]*FieldDiff)(x.Fields), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Objects == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoObjectDiff(([]*ObjectDiff)(x.Objects), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Objects\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Objects`) + } + r.WriteMapElemValue() + if x.Objects == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoObjectDiff(([]*ObjectDiff)(x.Objects), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Tasks == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoTaskDiff(([]*TaskDiff)(x.Tasks), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Tasks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Tasks`) + } + r.WriteMapElemValue() + if x.Tasks == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoTaskDiff(([]*TaskDiff)(x.Tasks), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Updates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringuint64((map[string]uint64)(x.Updates), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Updates\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Updates`) + } + r.WriteMapElemValue() + if x.Updates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringuint64((map[string]uint64)(x.Updates), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *TaskGroupDiff) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *TaskGroupDiff) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type.CodecDecodeSelf(d) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Fields": + if r.TryDecodeAsNil() { + x.Fields = nil + } else { + if false { + } else { + h.decSlicePtrtoFieldDiff((*[]*FieldDiff)(&x.Fields), d) + } + } + case "Objects": + if r.TryDecodeAsNil() { + x.Objects = nil + } else { + if false { + } else { + h.decSlicePtrtoObjectDiff((*[]*ObjectDiff)(&x.Objects), d) + } + } + case "Tasks": + if r.TryDecodeAsNil() { + x.Tasks = nil + } else { + if false { + } else { + h.decSlicePtrtoTaskDiff((*[]*TaskDiff)(&x.Tasks), d) + } + } + case "Updates": + if r.TryDecodeAsNil() { + x.Updates = nil + } else { + if false { + } else { + h.decMapstringuint64((*map[string]uint64)(&x.Updates), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *TaskGroupDiff) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj14 int + var yyb14 bool + var yyhl14 bool = l >= 0 + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type.CodecDecodeSelf(d) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Fields = nil + } else { + if false { + } else { + h.decSlicePtrtoFieldDiff((*[]*FieldDiff)(&x.Fields), d) + } + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Objects = nil + } else { + if false { + } else { + h.decSlicePtrtoObjectDiff((*[]*ObjectDiff)(&x.Objects), d) + } + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Tasks = nil + } else { + if false { + } else { + h.decSlicePtrtoTaskDiff((*[]*TaskDiff)(&x.Tasks), d) + } + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Updates = nil + } else { + if false { + } else { + h.decMapstringuint64((*map[string]uint64)(&x.Updates), d) + } + } + for { + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj14-1, "") + } + r.ReadArrayEnd() +} + +func (x TaskGroupDiffs) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encTaskGroupDiffs((TaskGroupDiffs)(x), e) + } + } +} + +func (x *TaskGroupDiffs) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + h.decTaskGroupDiffs((*TaskGroupDiffs)(x), d) + } +} + +func (x *TaskDiff) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Type.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + x.Type.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Fields == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoFieldDiff(([]*FieldDiff)(x.Fields), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Fields\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Fields`) + } + r.WriteMapElemValue() + if x.Fields == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoFieldDiff(([]*FieldDiff)(x.Fields), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Objects == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoObjectDiff(([]*ObjectDiff)(x.Objects), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Objects\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Objects`) + } + r.WriteMapElemValue() + if x.Objects == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoObjectDiff(([]*ObjectDiff)(x.Objects), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Annotations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Annotations), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Annotations\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Annotations`) + } + r.WriteMapElemValue() + if x.Annotations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Annotations), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *TaskDiff) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *TaskDiff) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type.CodecDecodeSelf(d) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Fields": + if r.TryDecodeAsNil() { + x.Fields = nil + } else { + if false { + } else { + h.decSlicePtrtoFieldDiff((*[]*FieldDiff)(&x.Fields), d) + } + } + case "Objects": + if r.TryDecodeAsNil() { + x.Objects = nil + } else { + if false { + } else { + h.decSlicePtrtoObjectDiff((*[]*ObjectDiff)(&x.Objects), d) + } + } + case "Annotations": + if r.TryDecodeAsNil() { + x.Annotations = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Annotations), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *TaskDiff) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Fields = nil + } else { + if false { + } else { + h.decSlicePtrtoFieldDiff((*[]*FieldDiff)(&x.Fields), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Objects = nil + } else { + if false { + } else { + h.decSlicePtrtoObjectDiff((*[]*ObjectDiff)(&x.Objects), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Annotations = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Annotations), d) + } + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x TaskDiffs) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encTaskDiffs((TaskDiffs)(x), e) + } + } +} + +func (x *TaskDiffs) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + h.decTaskDiffs((*TaskDiffs)(x), d) + } +} + +func (x *ObjectDiff) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Type.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + x.Type.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Fields == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoFieldDiff(([]*FieldDiff)(x.Fields), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Fields\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Fields`) + } + r.WriteMapElemValue() + if x.Fields == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoFieldDiff(([]*FieldDiff)(x.Fields), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Objects == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoObjectDiff(([]*ObjectDiff)(x.Objects), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Objects\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Objects`) + } + r.WriteMapElemValue() + if x.Objects == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoObjectDiff(([]*ObjectDiff)(x.Objects), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ObjectDiff) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ObjectDiff) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type.CodecDecodeSelf(d) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Fields": + if r.TryDecodeAsNil() { + x.Fields = nil + } else { + if false { + } else { + h.decSlicePtrtoFieldDiff((*[]*FieldDiff)(&x.Fields), d) + } + } + case "Objects": + if r.TryDecodeAsNil() { + x.Objects = nil + } else { + if false { + } else { + h.decSlicePtrtoObjectDiff((*[]*ObjectDiff)(&x.Objects), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ObjectDiff) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Fields = nil + } else { + if false { + } else { + h.decSlicePtrtoFieldDiff((*[]*FieldDiff)(&x.Fields), d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Objects = nil + } else { + if false { + } else { + h.decSlicePtrtoObjectDiff((*[]*ObjectDiff)(&x.Objects), d) + } + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x ObjectDiffs) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encObjectDiffs((ObjectDiffs)(x), e) + } + } +} + +func (x *ObjectDiffs) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + h.decObjectDiffs((*ObjectDiffs)(x), d) + } +} + +func (x *FieldDiff) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Type.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + x.Type.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Old))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Old)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Old\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Old`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Old))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Old)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.New))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.New)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"New\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `New`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.New))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.New)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Annotations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Annotations), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Annotations\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Annotations`) + } + r.WriteMapElemValue() + if x.Annotations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Annotations), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *FieldDiff) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *FieldDiff) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type.CodecDecodeSelf(d) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Old": + if r.TryDecodeAsNil() { + x.Old = "" + } else { + x.Old = (string)(r.DecodeString()) + } + case "New": + if r.TryDecodeAsNil() { + x.New = "" + } else { + x.New = (string)(r.DecodeString()) + } + case "Annotations": + if r.TryDecodeAsNil() { + x.Annotations = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Annotations), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *FieldDiff) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Old = "" + } else { + x.Old = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.New = "" + } else { + x.New = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Annotations = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Annotations), d) + } + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x FieldDiffs) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encFieldDiffs((FieldDiffs)(x), e) + } + } +} + +func (x *FieldDiffs) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + h.decFieldDiffs((*FieldDiffs)(x), d) + } +} + +func (x *nomadJsonEncodingExtensions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(0) + } else { + r.WriteMapStart(0) + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *nomadJsonEncodingExtensions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *nomadJsonEncodingExtensions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *nomadJsonEncodingExtensions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4 int + var yyb4 bool + var yyhl4 bool = l >= 0 + for { + yyj4++ + if yyhl4 { + yyb4 = yyj4 > l + } else { + yyb4 = r.CheckBreak() + } + if yyb4 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj4-1, "") + } + r.ReadArrayEnd() +} + +func (x *EvalDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.EvalIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.EvalIDs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalIDs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalIDs`) + } + r.WriteMapElemValue() + if x.EvalIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.EvalIDs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EvalDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EvalDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "EvalIDs": + if r.TryDecodeAsNil() { + x.EvalIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.EvalIDs), d) + } + } + case "Filter": + if r.TryDecodeAsNil() { + x.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EvalDeleteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.EvalIDs), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *EvalDeleteResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Count)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Count\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Count`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Count)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EvalDeleteResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EvalDeleteResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Count": + if r.TryDecodeAsNil() { + x.Count = 0 + } else { + x.Count = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EvalDeleteResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Count = 0 + } else { + x.Count = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *EventStreamRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(14) + } else { + r.WriteMapStart(14) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Topics == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapTopicSlicestring((map[Topic][]string)(x.Topics), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Topics\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Topics`) + } + r.WriteMapElemValue() + if x.Topics == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapTopicSlicestring((map[Topic][]string)(x.Topics), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { + z.EncExtension(x.MaxQueryTime, yyxt19) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.EncExtension(x.MaxQueryTime, yyxt20) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EventStreamRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EventStreamRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Topics": + if r.TryDecodeAsNil() { + x.Topics = nil + } else { + if false { + } else { + h.decMapTopicSlicestring((*map[Topic][]string)(&x.Topics), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.Index = 0 + } else { + x.Index = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt11 != nil { + z.DecExtension(x.MaxQueryTime, yyxt11) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EventStreamRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj20 int + var yyb20 bool + var yyhl20 bool = l >= 0 + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Topics = nil + } else { + if false { + } else { + h.decMapTopicSlicestring((*map[Topic][]string)(&x.Topics), d) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Index = 0 + } else { + x.Index = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt28 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt28 != nil { + z.DecExtension(x.MaxQueryTime, yyxt28) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj20-1, "") + } + r.ReadArrayEnd() +} + +func (x *EventStreamWrapper) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + var yyn3 bool + if x.Error == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Error == nil { + r.EncodeNil() + } else { + x.Error.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Error\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Error`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Error == nil { + r.EncodeNil() + } else { + x.Error.CodecEncodeSelf(e) + } + } + } + var yyn6 bool + if x.Event == nil { + yyn6 = true + goto LABEL6 + } + LABEL6: + if yyr2 || yy2arr2 { + if yyn6 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Event == nil { + r.EncodeNil() + } else { + x.Event.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Event\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Event`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.Event == nil { + r.EncodeNil() + } else { + x.Event.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EventStreamWrapper) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EventStreamWrapper) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Error": + if r.TryDecodeAsNil() { + if true && x.Error != nil { + x.Error = nil + } + } else { + if x.Error == nil { + x.Error = new(RpcError) + } + + x.Error.CodecDecodeSelf(d) + } + case "Event": + if r.TryDecodeAsNil() { + if true && x.Event != nil { + x.Event = nil + } + } else { + if x.Event == nil { + x.Event = new(EventJson) + } + + x.Event.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EventStreamWrapper) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Error != nil { + x.Error = nil + } + } else { + if x.Error == nil { + x.Error = new(RpcError) + } + + x.Error.CodecDecodeSelf(d) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Event != nil { + x.Event = nil + } + } else { + if x.Event == nil { + x.Event = new(EventJson) + } + + x.Event.CodecDecodeSelf(d) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x Topic) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) + } + } +} + +func (x *Topic) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (Topic)(r.DecodeString()) + } +} + +func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Topic.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Topic\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Topic`) + } + r.WriteMapElemValue() + x.Topic.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Key))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Key)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Key\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Key`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Key))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Key)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.FilterKeys == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.FilterKeys), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FilterKeys\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `FilterKeys`) + } + r.WriteMapElemValue() + if x.FilterKeys == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.FilterKeys), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Payload == nil { + r.EncodeNil() + } else { + if false { + } else { + z.EncFallback(x.Payload) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Payload\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Payload`) + } + r.WriteMapElemValue() + if x.Payload == nil { + r.EncodeNil() + } else { + if false { + } else { + z.EncFallback(x.Payload) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Event) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Topic": + if r.TryDecodeAsNil() { + x.Topic = "" + } else { + x.Topic.CodecDecodeSelf(d) + } + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + case "Key": + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "FilterKeys": + if r.TryDecodeAsNil() { + x.FilterKeys = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.FilterKeys), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "Payload": + if r.TryDecodeAsNil() { + x.Payload = nil + } else { + if false { + } else { + z.DecFallback(&x.Payload, true) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Topic = "" + } else { + x.Topic.CodecDecodeSelf(d) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.FilterKeys = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.FilterKeys), d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Payload = nil + } else { + if false { + } else { + z.DecFallback(&x.Payload, true) + } + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *Events) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Events == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceEvent(([]Event)(x.Events), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Events\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Events`) + } + r.WriteMapElemValue() + if x.Events == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceEvent(([]Event)(x.Events), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Events) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Events) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Index": + if r.TryDecodeAsNil() { + x.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "Events": + if r.TryDecodeAsNil() { + x.Events = nil + } else { + if false { + } else { + h.decSliceEvent((*[]Event)(&x.Events), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Events) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Events = nil + } else { + if false { + } else { + h.decSliceEvent((*[]Event)(&x.Events), d) + } + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *EventJson) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Data == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Data)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Data\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Data`) + } + r.WriteMapElemValue() + if x.Data == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Data)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EventJson) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EventJson) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Data": + if r.TryDecodeAsNil() { + x.Data = nil + } else { + if false { + } else { + x.Data = r.DecodeBytes(([]byte)(x.Data), false) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EventJson) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Data = nil + } else { + if false { + } else { + x.Data = r.DecodeBytes(([]byte)(x.Data), false) + } + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobEvent) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + var yyn3 bool + if x.Job == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Job\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobEvent) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobEvent) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Job": + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *EvaluationEvent) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + var yyn3 bool + if x.Evaluation == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Evaluation == nil { + r.EncodeNil() + } else { + x.Evaluation.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Evaluation\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Evaluation`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Evaluation == nil { + r.EncodeNil() + } else { + x.Evaluation.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EvaluationEvent) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EvaluationEvent) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Evaluation": + if r.TryDecodeAsNil() { + if true && x.Evaluation != nil { + x.Evaluation = nil + } + } else { + if x.Evaluation == nil { + x.Evaluation = new(Evaluation) + } + + x.Evaluation.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EvaluationEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Evaluation != nil { + x.Evaluation = nil + } + } else { + if x.Evaluation == nil { + x.Evaluation = new(Evaluation) + } + + x.Evaluation.CodecDecodeSelf(d) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocationEvent) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + var yyn3 bool + if x.Allocation == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Allocation == nil { + r.EncodeNil() + } else { + x.Allocation.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Allocation\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Allocation`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Allocation == nil { + r.EncodeNil() + } else { + x.Allocation.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocationEvent) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocationEvent) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Allocation": + if r.TryDecodeAsNil() { + if true && x.Allocation != nil { + x.Allocation = nil + } + } else { + if x.Allocation == nil { + x.Allocation = new(Allocation) + } + + x.Allocation.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocationEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Allocation != nil { + x.Allocation = nil + } + } else { + if x.Allocation == nil { + x.Allocation = new(Allocation) + } + + x.Allocation.CodecDecodeSelf(d) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeploymentEvent) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + var yyn3 bool + if x.Deployment == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Deployment == nil { + r.EncodeNil() + } else { + x.Deployment.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Deployment\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Deployment`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Deployment == nil { + r.EncodeNil() + } else { + x.Deployment.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeploymentEvent) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeploymentEvent) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Deployment": + if r.TryDecodeAsNil() { + if true && x.Deployment != nil { + x.Deployment = nil + } + } else { + if x.Deployment == nil { + x.Deployment = new(Deployment) + } + + x.Deployment.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeploymentEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Deployment != nil { + x.Deployment = nil + } + } else { + if x.Deployment == nil { + x.Deployment = new(Deployment) + } + + x.Deployment.CodecDecodeSelf(d) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeStreamEvent) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + var yyn3 bool + if x.Node == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Node == nil { + r.EncodeNil() + } else { + x.Node.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Node\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Node`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Node == nil { + r.EncodeNil() + } else { + x.Node.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeStreamEvent) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeStreamEvent) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Node": + if r.TryDecodeAsNil() { + if true && x.Node != nil { + x.Node = nil + } + } else { + if x.Node == nil { + x.Node = new(Node) + } + + x.Node.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeStreamEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Node != nil { + x.Node = nil + } + } else { + if x.Node == nil { + x.Node = new(Node) + } + + x.Node.CodecDecodeSelf(d) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodePoolEvent) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + var yyn3 bool + if x.NodePool == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.NodePool == nil { + r.EncodeNil() + } else { + x.NodePool.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodePool\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodePool`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.NodePool == nil { + r.EncodeNil() + } else { + x.NodePool.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodePoolEvent) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodePoolEvent) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodePool": + if r.TryDecodeAsNil() { + if true && x.NodePool != nil { + x.NodePool = nil + } + } else { + if x.NodePool == nil { + x.NodePool = new(NodePool) + } + + x.NodePool.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodePoolEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.NodePool != nil { + x.NodePool = nil + } + } else { + if x.NodePool == nil { + x.NodePool = new(NodePool) + } + + x.NodePool.CodecDecodeSelf(d) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLTokenEvent) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + var yyn3 bool + if x.ACLToken == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ACLToken == nil { + r.EncodeNil() + } else { + x.ACLToken.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ACLToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ACLToken`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.ACLToken == nil { + r.EncodeNil() + } else { + x.ACLToken.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLTokenEvent) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLTokenEvent) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ACLToken": + if r.TryDecodeAsNil() { + if true && x.ACLToken != nil { + x.ACLToken = nil + } + } else { + if x.ACLToken == nil { + x.ACLToken = new(ACLToken) + } + + x.ACLToken.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLTokenEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ACLToken != nil { + x.ACLToken = nil + } + } else { + if x.ACLToken == nil { + x.ACLToken = new(ACLToken) + } + + x.ACLToken.CodecDecodeSelf(d) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *ServiceRegistrationStreamEvent) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + var yyn3 bool + if x.Service == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Service == nil { + r.EncodeNil() + } else { + x.Service.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Service\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Service`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Service == nil { + r.EncodeNil() + } else { + x.Service.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ServiceRegistrationStreamEvent) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ServiceRegistrationStreamEvent) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Service": + if r.TryDecodeAsNil() { + if true && x.Service != nil { + x.Service = nil + } + } else { + if x.Service == nil { + x.Service = new(ServiceRegistration) + } + + x.Service.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ServiceRegistrationStreamEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Service != nil { + x.Service = nil + } + } else { + if x.Service == nil { + x.Service = new(ServiceRegistration) + } + + x.Service.CodecDecodeSelf(d) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLPolicyEvent) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + var yyn3 bool + if x.ACLPolicy == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ACLPolicy == nil { + r.EncodeNil() + } else { + x.ACLPolicy.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ACLPolicy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ACLPolicy`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.ACLPolicy == nil { + r.EncodeNil() + } else { + x.ACLPolicy.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLPolicyEvent) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLPolicyEvent) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ACLPolicy": + if r.TryDecodeAsNil() { + if true && x.ACLPolicy != nil { + x.ACLPolicy = nil + } + } else { + if x.ACLPolicy == nil { + x.ACLPolicy = new(ACLPolicy) + } + + x.ACLPolicy.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLPolicyEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ACLPolicy != nil { + x.ACLPolicy = nil + } + } else { + if x.ACLPolicy == nil { + x.ACLPolicy = new(ACLPolicy) + } + + x.ACLPolicy.CodecDecodeSelf(d) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLRoleStreamEvent) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + var yyn3 bool + if x.ACLRole == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ACLRole == nil { + r.EncodeNil() + } else { + x.ACLRole.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ACLRole\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ACLRole`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.ACLRole == nil { + r.EncodeNil() + } else { + x.ACLRole.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLRoleStreamEvent) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLRoleStreamEvent) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ACLRole": + if r.TryDecodeAsNil() { + if true && x.ACLRole != nil { + x.ACLRole = nil + } + } else { + if x.ACLRole == nil { + x.ACLRole = new(ACLRole) + } + + x.ACLRole.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLRoleStreamEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ACLRole != nil { + x.ACLRole = nil + } + } else { + if x.ACLRole == nil { + x.ACLRole = new(ACLRole) + } + + x.ACLRole.CodecDecodeSelf(d) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLAuthMethodEvent) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + var yyn3 bool + if x.AuthMethod == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.AuthMethod == nil { + r.EncodeNil() + } else { + x.AuthMethod.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthMethod\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthMethod`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.AuthMethod == nil { + r.EncodeNil() + } else { + x.AuthMethod.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLAuthMethodEvent) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLAuthMethodEvent) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AuthMethod": + if r.TryDecodeAsNil() { + if true && x.AuthMethod != nil { + x.AuthMethod = nil + } + } else { + if x.AuthMethod == nil { + x.AuthMethod = new(ACLAuthMethod) + } + + x.AuthMethod.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLAuthMethodEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.AuthMethod != nil { + x.AuthMethod = nil + } + } else { + if x.AuthMethod == nil { + x.AuthMethod = new(ACLAuthMethod) + } + + x.AuthMethod.CodecDecodeSelf(d) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLBindingRuleEvent) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + var yyn3 bool + if x.ACLBindingRule == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ACLBindingRule == nil { + r.EncodeNil() + } else { + x.ACLBindingRule.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ACLBindingRule\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ACLBindingRule`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.ACLBindingRule == nil { + r.EncodeNil() + } else { + x.ACLBindingRule.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLBindingRuleEvent) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLBindingRuleEvent) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ACLBindingRule": + if r.TryDecodeAsNil() { + if true && x.ACLBindingRule != nil { + x.ACLBindingRule = nil + } + } else { + if x.ACLBindingRule == nil { + x.ACLBindingRule = new(ACLBindingRule) + } + + x.ACLBindingRule.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLBindingRuleEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ACLBindingRule != nil { + x.ACLBindingRule = nil + } + } else { + if x.ACLBindingRule == nil { + x.ACLBindingRule = new(ACLBindingRule) + } + + x.ACLBindingRule.CodecDecodeSelf(d) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *HostVolumeEvent) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + var yyn3 bool + if x.Volume == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Volume == nil { + r.EncodeNil() + } else { + x.Volume.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Volume\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Volume`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Volume == nil { + r.EncodeNil() + } else { + x.Volume.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *HostVolumeEvent) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *HostVolumeEvent) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Volume": + if r.TryDecodeAsNil() { + if true && x.Volume != nil { + x.Volume = nil + } + } else { + if x.Volume == nil { + x.Volume = new(HostVolume) + } + + x.Volume.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *HostVolumeEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Volume != nil { + x.Volume = nil + } + } else { + if x.Volume == nil { + x.Volume = new(HostVolume) + } + + x.Volume.CodecDecodeSelf(d) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIVolumeEvent) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + var yyn3 bool + if x.Volume == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Volume == nil { + r.EncodeNil() + } else { + x.Volume.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Volume\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Volume`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Volume == nil { + r.EncodeNil() + } else { + x.Volume.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIVolumeEvent) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIVolumeEvent) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Volume": + if r.TryDecodeAsNil() { + if true && x.Volume != nil { + x.Volume = nil + } + } else { + if x.Volume == nil { + x.Volume = new(CSIVolume) + } + + x.Volume.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIVolumeEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Volume != nil { + x.Volume = nil + } + } else { + if x.Volume == nil { + x.Volume = new(CSIVolume) + } + + x.Volume.CodecDecodeSelf(d) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIPluginEvent) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + var yyn3 bool + if x.Plugin == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Plugin == nil { + r.EncodeNil() + } else { + x.Plugin.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Plugin\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Plugin`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Plugin == nil { + r.EncodeNil() + } else { + x.Plugin.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIPluginEvent) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIPluginEvent) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Plugin": + if r.TryDecodeAsNil() { + if true && x.Plugin != nil { + x.Plugin = nil + } + } else { + if x.Plugin == nil { + x.Plugin = new(CSIPlugin) + } + + x.Plugin.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIPluginEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Plugin != nil { + x.Plugin = nil + } + } else { + if x.Plugin == nil { + x.Plugin = new(CSIPlugin) + } + + x.Plugin.CodecDecodeSelf(d) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x TerminalByNodeByName) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encTerminalByNodeByName((TerminalByNodeByName)(x), e) + } + } +} + +func (x *TerminalByNodeByName) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + h.decTerminalByNodeByName((*TerminalByNodeByName)(x), d) + } +} + +func (x *DisconnectStrategy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt4 := z.Extension(z.I2Rtid(x.LostAfter)); yyxt4 != nil { + z.EncExtension(x.LostAfter, yyxt4) + } else { + r.EncodeInt(int64(x.LostAfter)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LostAfter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LostAfter`) + } + r.WriteMapElemValue() + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.LostAfter)); yyxt5 != nil { + z.EncExtension(x.LostAfter, yyxt5) + } else { + r.EncodeInt(int64(x.LostAfter)) + } + } + var yyn6 bool + if x.StopOnClientAfter == nil { + yyn6 = true + goto LABEL6 + } + LABEL6: + if yyr2 || yy2arr2 { + if yyn6 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.StopOnClientAfter == nil { + r.EncodeNil() + } else { + yy7 := *x.StopOnClientAfter + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(yy7)); yyxt8 != nil { + z.EncExtension(yy7, yyxt8) + } else { + r.EncodeInt(int64(yy7)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"StopOnClientAfter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `StopOnClientAfter`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.StopOnClientAfter == nil { + r.EncodeNil() + } else { + yy9 := *x.StopOnClientAfter + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(yy9)); yyxt10 != nil { + z.EncExtension(yy9, yyxt10) + } else { + r.EncodeInt(int64(yy9)) + } + } + } + } + var yyn11 bool + if x.Replace == nil { + yyn11 = true + goto LABEL11 + } + LABEL11: + if yyr2 || yy2arr2 { + if yyn11 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Replace == nil { + r.EncodeNil() + } else { + yy12 := *x.Replace + if false { + } else { + r.EncodeBool(bool(yy12)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Replace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Replace`) + } + r.WriteMapElemValue() + if yyn11 { + r.EncodeNil() + } else { + if x.Replace == nil { + r.EncodeNil() + } else { + yy14 := *x.Replace + if false { + } else { + r.EncodeBool(bool(yy14)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Reconcile))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Reconcile)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reconcile\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reconcile`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Reconcile))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Reconcile)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DisconnectStrategy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DisconnectStrategy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "LostAfter": + if r.TryDecodeAsNil() { + x.LostAfter = 0 + } else { + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.LostAfter)); yyxt5 != nil { + z.DecExtension(x.LostAfter, yyxt5) + } else { + x.LostAfter = (time.Duration)(r.DecodeInt64()) + } + } + case "StopOnClientAfter": + if r.TryDecodeAsNil() { + if true && x.StopOnClientAfter != nil { + x.StopOnClientAfter = nil + } + } else { + if x.StopOnClientAfter == nil { + x.StopOnClientAfter = new(time.Duration) + } + + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.StopOnClientAfter)); yyxt7 != nil { + z.DecExtension(x.StopOnClientAfter, yyxt7) + } else { + *x.StopOnClientAfter = (time.Duration)(r.DecodeInt64()) + } + } + case "Replace": + if r.TryDecodeAsNil() { + if true && x.Replace != nil { + x.Replace = nil + } + } else { + if x.Replace == nil { + x.Replace = new(bool) + } + + if false { + } else { + *x.Replace = (bool)(r.DecodeBool()) + } + } + case "Reconcile": + if r.TryDecodeAsNil() { + x.Reconcile = "" + } else { + x.Reconcile = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DisconnectStrategy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LostAfter = 0 + } else { + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.LostAfter)); yyxt13 != nil { + z.DecExtension(x.LostAfter, yyxt13) + } else { + x.LostAfter = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.StopOnClientAfter != nil { + x.StopOnClientAfter = nil + } + } else { + if x.StopOnClientAfter == nil { + x.StopOnClientAfter = new(time.Duration) + } + + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.StopOnClientAfter)); yyxt15 != nil { + z.DecExtension(x.StopOnClientAfter, yyxt15) + } else { + *x.StopOnClientAfter = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Replace != nil { + x.Replace = nil + } + } else { + if x.Replace == nil { + x.Replace = new(bool) + } + + if false { + } else { + *x.Replace = (bool)(r.DecodeBool()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Reconcile = "" + } else { + x.Reconcile = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *HostVolume) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(19) + } else { + r.WriteMapStart(19) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PluginID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PluginID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodePool))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodePool)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodePool\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodePool`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodePool))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodePool)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Constraints == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Constraints\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Constraints`) + } + r.WriteMapElemValue() + if x.Constraints == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.RequestedCapacityMinBytes)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RequestedCapacityMinBytes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RequestedCapacityMinBytes`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.RequestedCapacityMinBytes)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.RequestedCapacityMaxBytes)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RequestedCapacityMaxBytes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RequestedCapacityMaxBytes`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.RequestedCapacityMaxBytes)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CapacityBytes)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CapacityBytes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CapacityBytes`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CapacityBytes)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.RequestedCapabilities == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoHostVolumeCapability(([]*HostVolumeCapability)(x.RequestedCapabilities), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RequestedCapabilities\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RequestedCapabilities`) + } + r.WriteMapElemValue() + if x.RequestedCapabilities == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoHostVolumeCapability(([]*HostVolumeCapability)(x.RequestedCapabilities), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Parameters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Parameters), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Parameters\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Parameters`) + } + r.WriteMapElemValue() + if x.Parameters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Parameters), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.HostPath))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HostPath)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HostPath\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HostPath`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.HostPath))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HostPath)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.State.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"State\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `State`) + } + r.WriteMapElemValue() + x.State.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Allocations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Allocations\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Allocations`) + } + r.WriteMapElemValue() + if x.Allocations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *HostVolume) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *HostVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "PluginID": + if r.TryDecodeAsNil() { + x.PluginID = "" + } else { + x.PluginID = (string)(r.DecodeString()) + } + case "NodePool": + if r.TryDecodeAsNil() { + x.NodePool = "" + } else { + x.NodePool = (string)(r.DecodeString()) + } + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "Constraints": + if r.TryDecodeAsNil() { + x.Constraints = nil + } else { + if false { + } else { + h.decSlicePtrtoConstraint((*[]*Constraint)(&x.Constraints), d) + } + } + case "RequestedCapacityMinBytes": + if r.TryDecodeAsNil() { + x.RequestedCapacityMinBytes = 0 + } else { + x.RequestedCapacityMinBytes = (int64)(r.DecodeInt64()) + } + case "RequestedCapacityMaxBytes": + if r.TryDecodeAsNil() { + x.RequestedCapacityMaxBytes = 0 + } else { + x.RequestedCapacityMaxBytes = (int64)(r.DecodeInt64()) + } + case "CapacityBytes": + if r.TryDecodeAsNil() { + x.CapacityBytes = 0 + } else { + x.CapacityBytes = (int64)(r.DecodeInt64()) + } + case "RequestedCapabilities": + if r.TryDecodeAsNil() { + x.RequestedCapabilities = nil + } else { + if false { + } else { + h.decSlicePtrtoHostVolumeCapability((*[]*HostVolumeCapability)(&x.RequestedCapabilities), d) + } + } + case "Parameters": + if r.TryDecodeAsNil() { + x.Parameters = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Parameters), d) + } + } + case "HostPath": + if r.TryDecodeAsNil() { + x.HostPath = "" + } else { + x.HostPath = (string)(r.DecodeString()) + } + case "State": + if r.TryDecodeAsNil() { + x.State = "" + } else { + x.State.CodecDecodeSelf(d) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "CreateTime": + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyTime": + if r.TryDecodeAsNil() { + x.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + case "Allocations": + if r.TryDecodeAsNil() { + x.Allocations = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.Allocations), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *HostVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj27 int + var yyb27 bool + var yyhl27 bool = l >= 0 + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PluginID = "" + } else { + x.PluginID = (string)(r.DecodeString()) + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodePool = "" + } else { + x.NodePool = (string)(r.DecodeString()) + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Constraints = nil + } else { + if false { + } else { + h.decSlicePtrtoConstraint((*[]*Constraint)(&x.Constraints), d) + } + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RequestedCapacityMinBytes = 0 + } else { + x.RequestedCapacityMinBytes = (int64)(r.DecodeInt64()) + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RequestedCapacityMaxBytes = 0 + } else { + x.RequestedCapacityMaxBytes = (int64)(r.DecodeInt64()) + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CapacityBytes = 0 + } else { + x.CapacityBytes = (int64)(r.DecodeInt64()) + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RequestedCapabilities = nil + } else { + if false { + } else { + h.decSlicePtrtoHostVolumeCapability((*[]*HostVolumeCapability)(&x.RequestedCapabilities), d) + } + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Parameters = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Parameters), d) + } + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HostPath = "" + } else { + x.HostPath = (string)(r.DecodeString()) + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.State = "" + } else { + x.State.CodecDecodeSelf(d) + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Allocations = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.Allocations), d) + } + } + for { + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = r.CheckBreak() + } + if yyb27 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj27-1, "") + } + r.ReadArrayEnd() +} + +func (x HostVolumeState) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) + } + } +} + +func (x *HostVolumeState) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (HostVolumeState)(r.DecodeString()) + } +} + +func (x *HostVolumeCapability) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.AttachmentMode.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AttachmentMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AttachmentMode`) + } + r.WriteMapElemValue() + x.AttachmentMode.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.AccessMode.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AccessMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AccessMode`) + } + r.WriteMapElemValue() + x.AccessMode.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *HostVolumeCapability) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *HostVolumeCapability) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AttachmentMode": + if r.TryDecodeAsNil() { + x.AttachmentMode = "" + } else { + x.AttachmentMode.CodecDecodeSelf(d) + } + case "AccessMode": + if r.TryDecodeAsNil() { + x.AccessMode = "" + } else { + x.AccessMode.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *HostVolumeCapability) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AttachmentMode = "" + } else { + x.AttachmentMode.CodecDecodeSelf(d) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AccessMode = "" + } else { + x.AccessMode.CodecDecodeSelf(d) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *HostVolumeStub) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(12) + } else { + r.WriteMapStart(12) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PluginID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PluginID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodePool))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodePool)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodePool\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodePool`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodePool))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodePool)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CapacityBytes)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CapacityBytes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CapacityBytes`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CapacityBytes)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.State.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"State\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `State`) + } + r.WriteMapElemValue() + x.State.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *HostVolumeStub) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *HostVolumeStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "PluginID": + if r.TryDecodeAsNil() { + x.PluginID = "" + } else { + x.PluginID = (string)(r.DecodeString()) + } + case "NodePool": + if r.TryDecodeAsNil() { + x.NodePool = "" + } else { + x.NodePool = (string)(r.DecodeString()) + } + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "CapacityBytes": + if r.TryDecodeAsNil() { + x.CapacityBytes = 0 + } else { + x.CapacityBytes = (int64)(r.DecodeInt64()) + } + case "State": + if r.TryDecodeAsNil() { + x.State = "" + } else { + x.State.CodecDecodeSelf(d) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "CreateTime": + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyTime": + if r.TryDecodeAsNil() { + x.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *HostVolumeStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj16 int + var yyb16 bool + var yyhl16 bool = l >= 0 + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PluginID = "" + } else { + x.PluginID = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodePool = "" + } else { + x.NodePool = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CapacityBytes = 0 + } else { + x.CapacityBytes = (int64)(r.DecodeInt64()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.State = "" + } else { + x.State.CodecDecodeSelf(d) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + for { + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj16-1, "") + } + r.ReadArrayEnd() +} + +func (x *HostVolumeCreateRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + var yyn3 bool + if x.Volume == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Volume == nil { + r.EncodeNil() + } else { + x.Volume.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Volume\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Volume`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Volume == nil { + r.EncodeNil() + } else { + x.Volume.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.PolicyOverride)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PolicyOverride\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PolicyOverride`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.PolicyOverride)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *HostVolumeCreateRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *HostVolumeCreateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Volume": + if r.TryDecodeAsNil() { + if true && x.Volume != nil { + x.Volume = nil + } + } else { + if x.Volume == nil { + x.Volume = new(HostVolume) + } + + x.Volume.CodecDecodeSelf(d) + } + case "PolicyOverride": + if r.TryDecodeAsNil() { + x.PolicyOverride = false + } else { + x.PolicyOverride = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *HostVolumeCreateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Volume != nil { + x.Volume = nil + } + } else { + if x.Volume == nil { + x.Volume = new(HostVolume) + } + + x.Volume.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PolicyOverride = false + } else { + x.PolicyOverride = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *HostVolumeCreateResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + var yyn3 bool + if x.Volume == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Volume == nil { + r.EncodeNil() + } else { + x.Volume.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Volume\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Volume`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Volume == nil { + r.EncodeNil() + } else { + x.Volume.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Warnings))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Warnings)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Warnings\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Warnings`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Warnings))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Warnings)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *HostVolumeCreateResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *HostVolumeCreateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Volume": + if r.TryDecodeAsNil() { + if true && x.Volume != nil { + x.Volume = nil + } + } else { + if x.Volume == nil { + x.Volume = new(HostVolume) + } + + x.Volume.CodecDecodeSelf(d) + } + case "Warnings": + if r.TryDecodeAsNil() { + x.Warnings = "" + } else { + x.Warnings = (string)(r.DecodeString()) + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *HostVolumeCreateResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Volume != nil { + x.Volume = nil + } + } else { + if x.Volume == nil { + x.Volume = new(HostVolume) + } + + x.Volume.CodecDecodeSelf(d) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Warnings = "" + } else { + x.Warnings = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *HostVolumeRegisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + var yyn3 bool + if x.Volume == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Volume == nil { + r.EncodeNil() + } else { + x.Volume.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Volume\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Volume`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Volume == nil { + r.EncodeNil() + } else { + x.Volume.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.PolicyOverride)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PolicyOverride\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PolicyOverride`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.PolicyOverride)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *HostVolumeRegisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *HostVolumeRegisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Volume": + if r.TryDecodeAsNil() { + if true && x.Volume != nil { + x.Volume = nil + } + } else { + if x.Volume == nil { + x.Volume = new(HostVolume) + } + + x.Volume.CodecDecodeSelf(d) + } + case "PolicyOverride": + if r.TryDecodeAsNil() { + x.PolicyOverride = false + } else { + x.PolicyOverride = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *HostVolumeRegisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Volume != nil { + x.Volume = nil + } + } else { + if x.Volume == nil { + x.Volume = new(HostVolume) + } + + x.Volume.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PolicyOverride = false + } else { + x.PolicyOverride = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *HostVolumeRegisterResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + var yyn3 bool + if x.Volume == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Volume == nil { + r.EncodeNil() + } else { + x.Volume.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Volume\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Volume`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Volume == nil { + r.EncodeNil() + } else { + x.Volume.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Warnings))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Warnings)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Warnings\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Warnings`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Warnings))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Warnings)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *HostVolumeRegisterResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *HostVolumeRegisterResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Volume": + if r.TryDecodeAsNil() { + if true && x.Volume != nil { + x.Volume = nil + } + } else { + if x.Volume == nil { + x.Volume = new(HostVolume) + } + + x.Volume.CodecDecodeSelf(d) + } + case "Warnings": + if r.TryDecodeAsNil() { + x.Warnings = "" + } else { + x.Warnings = (string)(r.DecodeString()) + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *HostVolumeRegisterResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Volume != nil { + x.Volume = nil + } + } else { + if x.Volume == nil { + x.Volume = new(HostVolume) + } + + x.Volume.CodecDecodeSelf(d) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Warnings = "" + } else { + x.Warnings = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *HostVolumeDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.VolumeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VolumeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VolumeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `VolumeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.VolumeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VolumeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Force)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Force\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Force`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Force)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *HostVolumeDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *HostVolumeDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "VolumeID": + if r.TryDecodeAsNil() { + x.VolumeID = "" + } else { + x.VolumeID = (string)(r.DecodeString()) + } + case "Force": + if r.TryDecodeAsNil() { + x.Force = false + } else { + x.Force = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *HostVolumeDeleteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VolumeID = "" + } else { + x.VolumeID = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Force = false + } else { + x.Force = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *HostVolumeDeleteResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *HostVolumeDeleteResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *HostVolumeDeleteResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *HostVolumeDeleteResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *HostVolumeGetRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *HostVolumeGetRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *HostVolumeGetRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *HostVolumeGetRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt24 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt24 != nil { + z.DecExtension(x.MaxQueryTime, yyxt24) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *HostVolumeGetResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + var yyn3 bool + if x.Volume == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Volume == nil { + r.EncodeNil() + } else { + x.Volume.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Volume\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Volume`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Volume == nil { + r.EncodeNil() + } else { + x.Volume.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *HostVolumeGetResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *HostVolumeGetResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Volume": + if r.TryDecodeAsNil() { + if true && x.Volume != nil { + x.Volume = nil + } + } else { + if x.Volume == nil { + x.Volume = new(HostVolume) + } + + x.Volume.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *HostVolumeGetResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Volume != nil { + x.Volume = nil + } + } else { + if x.Volume == nil { + x.Volume = new(HostVolume) + } + + x.Volume.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.DecExtension(x.LastContact, yyxt14) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *HostVolumeListRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(14) + } else { + r.WriteMapStart(14) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodePool))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodePool)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodePool\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodePool`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodePool))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodePool)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { + z.EncExtension(x.MaxQueryTime, yyxt19) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.EncExtension(x.MaxQueryTime, yyxt20) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *HostVolumeListRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *HostVolumeListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "NodePool": + if r.TryDecodeAsNil() { + x.NodePool = "" + } else { + x.NodePool = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *HostVolumeListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj19 int + var yyb19 bool + var yyhl19 bool = l >= 0 + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodePool = "" + } else { + x.NodePool = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { + z.DecExtension(x.MaxQueryTime, yyxt26) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj19-1, "") + } + r.ReadArrayEnd() +} + +func (x *HostVolumeListResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Volumes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoHostVolumeStub(([]*HostVolumeStub)(x.Volumes), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Volumes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Volumes`) + } + r.WriteMapElemValue() + if x.Volumes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoHostVolumeStub(([]*HostVolumeStub)(x.Volumes), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *HostVolumeListResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *HostVolumeListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Volumes": + if r.TryDecodeAsNil() { + x.Volumes = nil + } else { + if false { + } else { + h.decSlicePtrtoHostVolumeStub((*[]*HostVolumeStub)(&x.Volumes), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *HostVolumeListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Volumes = nil + } else { + if false { + } else { + h.decSlicePtrtoHostVolumeStub((*[]*HostVolumeStub)(&x.Volumes), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *TaskGroupHostVolumeClaim) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroupName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroupName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskGroupName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroupName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroupName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroupName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.VolumeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VolumeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VolumeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `VolumeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.VolumeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VolumeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.VolumeName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VolumeName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VolumeName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `VolumeName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.VolumeName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VolumeName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *TaskGroupHostVolumeClaim) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *TaskGroupHostVolumeClaim) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "TaskGroupName": + if r.TryDecodeAsNil() { + x.TaskGroupName = "" + } else { + x.TaskGroupName = (string)(r.DecodeString()) + } + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "VolumeID": + if r.TryDecodeAsNil() { + x.VolumeID = "" + } else { + x.VolumeID = (string)(r.DecodeString()) + } + case "VolumeName": + if r.TryDecodeAsNil() { + x.VolumeName = "" + } else { + x.VolumeName = (string)(r.DecodeString()) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *TaskGroupHostVolumeClaim) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskGroupName = "" + } else { + x.TaskGroupName = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VolumeID = "" + } else { + x.VolumeID = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VolumeName = "" + } else { + x.VolumeName = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *TaskGroupVolumeClaimListRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(15) + } else { + r.WriteMapStart(15) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroup))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroup)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskGroup\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroup`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroup))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroup)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.VolumeName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VolumeName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VolumeName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `VolumeName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.VolumeName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VolumeName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { + z.EncExtension(x.MaxQueryTime, yyxt22) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt23 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt23 != nil { + z.EncExtension(x.MaxQueryTime, yyxt23) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *TaskGroupVolumeClaimListRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *TaskGroupVolumeClaimListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "TaskGroup": + if r.TryDecodeAsNil() { + x.TaskGroup = "" + } else { + x.TaskGroup = (string)(r.DecodeString()) + } + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "VolumeName": + if r.TryDecodeAsNil() { + x.VolumeName = "" + } else { + x.VolumeName = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt11 != nil { + z.DecExtension(x.MaxQueryTime, yyxt11) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *TaskGroupVolumeClaimListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj20 int + var yyb20 bool + var yyhl20 bool = l >= 0 + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskGroup = "" + } else { + x.TaskGroup = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VolumeName = "" + } else { + x.VolumeName = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt28 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt28 != nil { + z.DecExtension(x.MaxQueryTime, yyxt28) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj20-1, "") + } + r.ReadArrayEnd() +} + +func (x *TaskGroupVolumeClaimListResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Claims == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoTaskGroupHostVolumeClaim(([]*TaskGroupHostVolumeClaim)(x.Claims), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Claims\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Claims`) + } + r.WriteMapElemValue() + if x.Claims == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoTaskGroupHostVolumeClaim(([]*TaskGroupHostVolumeClaim)(x.Claims), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *TaskGroupVolumeClaimListResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *TaskGroupVolumeClaimListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Claims": + if r.TryDecodeAsNil() { + x.Claims = nil + } else { + if false { + } else { + h.decSlicePtrtoTaskGroupHostVolumeClaim((*[]*TaskGroupHostVolumeClaim)(&x.Claims), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *TaskGroupVolumeClaimListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Claims = nil + } else { + if false { + } else { + h.decSlicePtrtoTaskGroupHostVolumeClaim((*[]*TaskGroupHostVolumeClaim)(&x.Claims), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *TaskGroupVolumeClaimDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClaimID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClaimID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ClaimID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ClaimID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClaimID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClaimID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *TaskGroupVolumeClaimDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *TaskGroupVolumeClaimDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ClaimID": + if r.TryDecodeAsNil() { + x.ClaimID = "" + } else { + x.ClaimID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *TaskGroupVolumeClaimDeleteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ClaimID = "" + } else { + x.ClaimID = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *TaskGroupVolumeClaimDeleteResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *TaskGroupVolumeClaimDeleteResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *TaskGroupVolumeClaimDeleteResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *TaskGroupVolumeClaimDeleteResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobBatchDeregisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Jobs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapNamespacedIDPtrtoJobDeregisterOptions((map[NamespacedID]*JobDeregisterOptions)(x.Jobs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Jobs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Jobs`) + } + r.WriteMapElemValue() + if x.Jobs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapNamespacedIDPtrtoJobDeregisterOptions((map[NamespacedID]*JobDeregisterOptions)(x.Jobs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.SubmitTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SubmitTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SubmitTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.SubmitTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobBatchDeregisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobBatchDeregisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Jobs": + if r.TryDecodeAsNil() { + x.Jobs = nil + } else { + if false { + } else { + h.decMapNamespacedIDPtrtoJobDeregisterOptions((*map[NamespacedID]*JobDeregisterOptions)(&x.Jobs), d) + } + } + case "SubmitTime": + if r.TryDecodeAsNil() { + x.SubmitTime = 0 + } else { + x.SubmitTime = (int64)(r.DecodeInt64()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobBatchDeregisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Jobs = nil + } else { + if false { + } else { + h.decMapNamespacedIDPtrtoJobDeregisterOptions((*map[NamespacedID]*JobDeregisterOptions)(&x.Jobs), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SubmitTime = 0 + } else { + x.SubmitTime = (int64)(r.DecodeInt64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobDeregisterOptions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Purge)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Purge\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Purge`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Purge)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobDeregisterOptions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobDeregisterOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Purge": + if r.TryDecodeAsNil() { + x.Purge = false + } else { + x.Purge = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobDeregisterOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Purge = false + } else { + x.Purge = (bool)(r.DecodeBool()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobBatchDeregisterResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.EncExtension(x.LastContact, yyxt7) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.EncExtension(x.LastContact, yyxt8) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobBatchDeregisterResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobBatchDeregisterResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt6 := z.Extension(z.I2Rtid(x.LastContact)); yyxt6 != nil { + z.DecExtension(x.LastContact, yyxt6) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobBatchDeregisterResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt12 := z.Extension(z.I2Rtid(x.LastContact)); yyxt12 != nil { + z.DecExtension(x.LastContact, yyxt12) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobStatusesRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(14) + } else { + r.WriteMapStart(14) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Jobs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceNamespacedID(([]NamespacedID)(x.Jobs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Jobs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Jobs`) + } + r.WriteMapElemValue() + if x.Jobs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceNamespacedID(([]NamespacedID)(x.Jobs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.IncludeChildren)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IncludeChildren\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IncludeChildren`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.IncludeChildren)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { + z.EncExtension(x.MaxQueryTime, yyxt19) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.EncExtension(x.MaxQueryTime, yyxt20) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobStatusesRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobStatusesRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Jobs": + if r.TryDecodeAsNil() { + x.Jobs = nil + } else { + if false { + } else { + h.decSliceNamespacedID((*[]NamespacedID)(&x.Jobs), d) + } + } + case "IncludeChildren": + if r.TryDecodeAsNil() { + x.IncludeChildren = false + } else { + x.IncludeChildren = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt11 != nil { + z.DecExtension(x.MaxQueryTime, yyxt11) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobStatusesRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj20 int + var yyb20 bool + var yyhl20 bool = l >= 0 + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Jobs = nil + } else { + if false { + } else { + h.decSliceNamespacedID((*[]NamespacedID)(&x.Jobs), d) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.IncludeChildren = false + } else { + x.IncludeChildren = (bool)(r.DecodeBool()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt28 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt28 != nil { + z.DecExtension(x.MaxQueryTime, yyxt28) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj20-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobStatusesResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Jobs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceJobStatusesJob(([]JobStatusesJob)(x.Jobs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Jobs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Jobs`) + } + r.WriteMapElemValue() + if x.Jobs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceJobStatusesJob(([]JobStatusesJob)(x.Jobs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobStatusesResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobStatusesResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Jobs": + if r.TryDecodeAsNil() { + x.Jobs = nil + } else { + if false { + } else { + h.decSliceJobStatusesJob((*[]JobStatusesJob)(&x.Jobs), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobStatusesResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Jobs = nil + } else { + if false { + } else { + h.decSliceJobStatusesJob((*[]JobStatusesJob)(&x.Jobs), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobStatusesJob) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(18) + } else { + r.WriteMapStart(18) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodePool))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodePool)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodePool\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodePool`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodePool))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodePool)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Datacenters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Datacenters), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Datacenters\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Datacenters`) + } + r.WriteMapElemValue() + if x.Datacenters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Datacenters), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Priority)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Priority\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Priority`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Priority)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Version)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Version\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Version`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Version)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.SubmitTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SubmitTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SubmitTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.SubmitTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Allocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceJobStatusesAlloc(([]JobStatusesAlloc)(x.Allocs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Allocs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Allocs`) + } + r.WriteMapElemValue() + if x.Allocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceJobStatusesAlloc(([]JobStatusesAlloc)(x.Allocs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.GroupCountSum)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"GroupCountSum\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `GroupCountSum`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.GroupCountSum)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ChildStatuses == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.ChildStatuses), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ChildStatuses\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ChildStatuses`) + } + r.WriteMapElemValue() + if x.ChildStatuses == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.ChildStatuses), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ParentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ParentID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ParentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ParentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ParentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ParentID)) + } + } + } + var yyn45 bool + if x.LatestDeployment == nil { + yyn45 = true + goto LABEL45 + } + LABEL45: + if yyr2 || yy2arr2 { + if yyn45 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.LatestDeployment == nil { + r.EncodeNil() + } else { + x.LatestDeployment.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LatestDeployment\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LatestDeployment`) + } + r.WriteMapElemValue() + if yyn45 { + r.EncodeNil() + } else { + if x.LatestDeployment == nil { + r.EncodeNil() + } else { + x.LatestDeployment.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Stop)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Stop\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Stop`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Stop)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.IsPack)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IsPack\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IsPack`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.IsPack)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Status\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobStatusesJob) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobStatusesJob) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.NamespacedID.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.NamespacedID.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + case "NodePool": + if r.TryDecodeAsNil() { + x.NodePool = "" + } else { + x.NodePool = (string)(r.DecodeString()) + } + case "Datacenters": + if r.TryDecodeAsNil() { + x.Datacenters = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Datacenters), d) + } + } + case "Priority": + if r.TryDecodeAsNil() { + x.Priority = 0 + } else { + x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Version": + if r.TryDecodeAsNil() { + x.Version = 0 + } else { + x.Version = (uint64)(r.DecodeUint64()) + } + case "SubmitTime": + if r.TryDecodeAsNil() { + x.SubmitTime = 0 + } else { + x.SubmitTime = (int64)(r.DecodeInt64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + case "Allocs": + if r.TryDecodeAsNil() { + x.Allocs = nil + } else { + if false { + } else { + h.decSliceJobStatusesAlloc((*[]JobStatusesAlloc)(&x.Allocs), d) + } + } + case "GroupCountSum": + if r.TryDecodeAsNil() { + x.GroupCountSum = 0 + } else { + x.GroupCountSum = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "ChildStatuses": + if r.TryDecodeAsNil() { + x.ChildStatuses = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.ChildStatuses), d) + } + } + case "ParentID": + if r.TryDecodeAsNil() { + x.ParentID = "" + } else { + x.ParentID = (string)(r.DecodeString()) + } + case "LatestDeployment": + if r.TryDecodeAsNil() { + if true && x.LatestDeployment != nil { + x.LatestDeployment = nil + } + } else { + if x.LatestDeployment == nil { + x.LatestDeployment = new(JobStatusesLatestDeployment) + } + + x.LatestDeployment.CodecDecodeSelf(d) + } + case "Stop": + if r.TryDecodeAsNil() { + x.Stop = false + } else { + x.Stop = (bool)(r.DecodeBool()) + } + case "IsPack": + if r.TryDecodeAsNil() { + x.IsPack = false + } else { + x.IsPack = (bool)(r.DecodeBool()) + } + case "Status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobStatusesJob) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj25 int + var yyb25 bool + var yyhl25 bool = l >= 0 + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NamespacedID.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NamespacedID.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodePool = "" + } else { + x.NodePool = (string)(r.DecodeString()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Datacenters = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Datacenters), d) + } + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Priority = 0 + } else { + x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Version = 0 + } else { + x.Version = (uint64)(r.DecodeUint64()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SubmitTime = 0 + } else { + x.SubmitTime = (int64)(r.DecodeInt64()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Allocs = nil + } else { + if false { + } else { + h.decSliceJobStatusesAlloc((*[]JobStatusesAlloc)(&x.Allocs), d) + } + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.GroupCountSum = 0 + } else { + x.GroupCountSum = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ChildStatuses = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.ChildStatuses), d) + } + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ParentID = "" + } else { + x.ParentID = (string)(r.DecodeString()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.LatestDeployment != nil { + x.LatestDeployment = nil + } + } else { + if x.LatestDeployment == nil { + x.LatestDeployment = new(JobStatusesLatestDeployment) + } + + x.LatestDeployment.CodecDecodeSelf(d) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Stop = false + } else { + x.Stop = (bool)(r.DecodeBool()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.IsPack = false + } else { + x.IsPack = (bool)(r.DecodeBool()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + for { + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj25-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobStatusesAlloc) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Group))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Group)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Group\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Group`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Group))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Group)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientStatus))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientStatus)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ClientStatus\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ClientStatus`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientStatus))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientStatus)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy16 := &x.DeploymentStatus + yy16.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentStatus\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentStatus`) + } + r.WriteMapElemValue() + yy18 := &x.DeploymentStatus + yy18.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobVersion)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobVersion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobVersion`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobVersion)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.FollowupEvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FollowupEvalID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FollowupEvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `FollowupEvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.FollowupEvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FollowupEvalID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.HasPausedTask)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HasPausedTask\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HasPausedTask`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.HasPausedTask)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobStatusesAlloc) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobStatusesAlloc) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Group": + if r.TryDecodeAsNil() { + x.Group = "" + } else { + x.Group = (string)(r.DecodeString()) + } + case "ClientStatus": + if r.TryDecodeAsNil() { + x.ClientStatus = "" + } else { + x.ClientStatus = (string)(r.DecodeString()) + } + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "DeploymentStatus": + if r.TryDecodeAsNil() { + x.DeploymentStatus = JobStatusesDeployment{} + } else { + x.DeploymentStatus.CodecDecodeSelf(d) + } + case "JobVersion": + if r.TryDecodeAsNil() { + x.JobVersion = 0 + } else { + x.JobVersion = (uint64)(r.DecodeUint64()) + } + case "FollowupEvalID": + if r.TryDecodeAsNil() { + x.FollowupEvalID = "" + } else { + x.FollowupEvalID = (string)(r.DecodeString()) + } + case "HasPausedTask": + if r.TryDecodeAsNil() { + x.HasPausedTask = false + } else { + x.HasPausedTask = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobStatusesAlloc) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Group = "" + } else { + x.Group = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ClientStatus = "" + } else { + x.ClientStatus = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentStatus = JobStatusesDeployment{} + } else { + x.DeploymentStatus.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobVersion = 0 + } else { + x.JobVersion = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.FollowupEvalID = "" + } else { + x.FollowupEvalID = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HasPausedTask = false + } else { + x.HasPausedTask = (bool)(r.DecodeBool()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobStatusesDeployment) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Canary)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Canary\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Canary`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Canary)) + } + } + var yyn6 bool + if x.Healthy == nil { + yyn6 = true + goto LABEL6 + } + LABEL6: + if yyr2 || yy2arr2 { + if yyn6 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Healthy == nil { + r.EncodeNil() + } else { + yy7 := *x.Healthy + if false { + } else { + r.EncodeBool(bool(yy7)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Healthy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Healthy`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.Healthy == nil { + r.EncodeNil() + } else { + yy9 := *x.Healthy + if false { + } else { + r.EncodeBool(bool(yy9)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobStatusesDeployment) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobStatusesDeployment) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Canary": + if r.TryDecodeAsNil() { + x.Canary = false + } else { + x.Canary = (bool)(r.DecodeBool()) + } + case "Healthy": + if r.TryDecodeAsNil() { + if true && x.Healthy != nil { + x.Healthy = nil + } + } else { + if x.Healthy == nil { + x.Healthy = new(bool) + } + + if false { + } else { + *x.Healthy = (bool)(r.DecodeBool()) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobStatusesDeployment) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Canary = false + } else { + x.Canary = (bool)(r.DecodeBool()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Healthy != nil { + x.Healthy = nil + } + } else { + if x.Healthy == nil { + x.Healthy = new(bool) + } + + if false { + } else { + *x.Healthy = (bool)(r.DecodeBool()) + } + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobStatusesLatestDeployment) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.IsActive)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IsActive\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IsActive`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.IsActive)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobVersion)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobVersion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobVersion`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobVersion)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Status\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"StatusDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `StatusDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllAutoPromote)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllAutoPromote\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllAutoPromote`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllAutoPromote)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.RequiresPromotion)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RequiresPromotion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RequiresPromotion`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.RequiresPromotion)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobStatusesLatestDeployment) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobStatusesLatestDeployment) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "IsActive": + if r.TryDecodeAsNil() { + x.IsActive = false + } else { + x.IsActive = (bool)(r.DecodeBool()) + } + case "JobVersion": + if r.TryDecodeAsNil() { + x.JobVersion = 0 + } else { + x.JobVersion = (uint64)(r.DecodeUint64()) + } + case "Status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + case "StatusDescription": + if r.TryDecodeAsNil() { + x.StatusDescription = "" + } else { + x.StatusDescription = (string)(r.DecodeString()) + } + case "AllAutoPromote": + if r.TryDecodeAsNil() { + x.AllAutoPromote = false + } else { + x.AllAutoPromote = (bool)(r.DecodeBool()) + } + case "RequiresPromotion": + if r.TryDecodeAsNil() { + x.RequiresPromotion = false + } else { + x.RequiresPromotion = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobStatusesLatestDeployment) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.IsActive = false + } else { + x.IsActive = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobVersion = 0 + } else { + x.JobVersion = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.StatusDescription = "" + } else { + x.StatusDescription = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllAutoPromote = false + } else { + x.AllAutoPromote = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RequiresPromotion = false + } else { + x.RequiresPromotion = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobServiceRegistrationsRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobServiceRegistrationsRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobServiceRegistrationsRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobServiceRegistrationsRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt24 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt24 != nil { + z.DecExtension(x.MaxQueryTime, yyxt24) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobServiceRegistrationsResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Services == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoServiceRegistration(([]*ServiceRegistration)(x.Services), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Services\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Services`) + } + r.WriteMapElemValue() + if x.Services == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoServiceRegistration(([]*ServiceRegistration)(x.Services), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobServiceRegistrationsResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobServiceRegistrationsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Services": + if r.TryDecodeAsNil() { + x.Services = nil + } else { + if false { + } else { + h.decSlicePtrtoServiceRegistration((*[]*ServiceRegistration)(&x.Services), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobServiceRegistrationsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Services = nil + } else { + if false { + } else { + h.decSlicePtrtoServiceRegistration((*[]*ServiceRegistration)(&x.Services), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *NativeServiceDiscoveryUsage) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + var yyn3 bool + if x.Basic == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Basic == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt4 := z.Extension(z.I2Rtid(x.Basic)); yyxt4 != nil { + z.EncExtension(x.Basic, yyxt4) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.Basic) + } else { + z.EncFallback(x.Basic) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Basic\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Basic`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Basic == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.Basic)); yyxt5 != nil { + z.EncExtension(x.Basic, yyxt5) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.Basic) + } else { + z.EncFallback(x.Basic) + } + } + } + } + var yyn6 bool + if x.Checks == nil { + yyn6 = true + goto LABEL6 + } + LABEL6: + if yyr2 || yy2arr2 { + if yyn6 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Checks == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.Checks)); yyxt7 != nil { + z.EncExtension(x.Checks, yyxt7) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.Checks) + } else { + z.EncFallback(x.Checks) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Checks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Checks`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.Checks == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.Checks)); yyxt8 != nil { + z.EncExtension(x.Checks, yyxt8) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.Checks) + } else { + z.EncFallback(x.Checks) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NativeServiceDiscoveryUsage) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NativeServiceDiscoveryUsage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Basic": + if r.TryDecodeAsNil() { + if true && x.Basic != nil { + x.Basic = nil + } + } else { + if x.Basic == nil { + x.Basic = new(pkg7_v3.Set[string]) + } + + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.Basic)); yyxt5 != nil { + z.DecExtension(x.Basic, yyxt5) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.Basic) + } else { + z.DecFallback(x.Basic, false) + } + } + case "Checks": + if r.TryDecodeAsNil() { + if true && x.Checks != nil { + x.Checks = nil + } + } else { + if x.Checks == nil { + x.Checks = new(pkg7_v3.Set[string]) + } + + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.Checks)); yyxt7 != nil { + z.DecExtension(x.Checks, yyxt7) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.Checks) + } else { + z.DecFallback(x.Checks, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NativeServiceDiscoveryUsage) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Basic != nil { + x.Basic = nil + } + } else { + if x.Basic == nil { + x.Basic = new(pkg7_v3.Set[string]) + } + + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.Basic)); yyxt10 != nil { + z.DecExtension(x.Basic, yyxt10) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.Basic) + } else { + z.DecFallback(x.Basic, false) + } + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Checks != nil { + x.Checks = nil + } + } else { + if x.Checks == nil { + x.Checks = new(pkg7_v3.Set[string]) + } + + if false { + } else if yyxt12 := z.Extension(z.I2Rtid(x.Checks)); yyxt12 != nil { + z.DecExtension(x.Checks, yyxt12) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.Checks) + } else { + z.DecFallback(x.Checks, false) + } + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *UnwrappedRootKey) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + var yyn3 bool + if x.Meta == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Meta == nil { + r.EncodeNil() + } else { + x.Meta.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Meta\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Meta == nil { + r.EncodeNil() + } else { + x.Meta.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Key == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Key)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Key\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Key`) + } + r.WriteMapElemValue() + if x.Key == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Key)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.RSAKey == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.RSAKey)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RSAKey\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RSAKey`) + } + r.WriteMapElemValue() + if x.RSAKey == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.RSAKey)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *UnwrappedRootKey) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *UnwrappedRootKey) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Meta": + if r.TryDecodeAsNil() { + if true && x.Meta != nil { + x.Meta = nil + } + } else { + if x.Meta == nil { + x.Meta = new(RootKeyMeta) + } + + x.Meta.CodecDecodeSelf(d) + } + case "Key": + if r.TryDecodeAsNil() { + x.Key = nil + } else { + if false { + } else { + x.Key = r.DecodeBytes(([]byte)(x.Key), false) + } + } + case "RSAKey": + if r.TryDecodeAsNil() { + x.RSAKey = nil + } else { + if false { + } else { + x.RSAKey = r.DecodeBytes(([]byte)(x.RSAKey), false) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *UnwrappedRootKey) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Meta != nil { + x.Meta = nil + } + } else { + if x.Meta == nil { + x.Meta = new(RootKeyMeta) + } + + x.Meta.CodecDecodeSelf(d) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Key = nil + } else { + if false { + } else { + x.Key = r.DecodeBytes(([]byte)(x.Key), false) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RSAKey = nil + } else { + if false { + } else { + x.RSAKey = r.DecodeBytes(([]byte)(x.RSAKey), false) + } + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *RootKey) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KeyID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KeyID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KeyID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KeyID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KeyID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KeyID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Algorithm.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Algorithm\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Algorithm`) + } + r.WriteMapElemValue() + x.Algorithm.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.State.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"State\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `State`) + } + r.WriteMapElemValue() + x.State.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PublishTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PublishTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PublishTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PublishTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.WrappedKeys == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoWrappedKey(([]*WrappedKey)(x.WrappedKeys), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"WrappedKeys\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `WrappedKeys`) + } + r.WriteMapElemValue() + if x.WrappedKeys == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoWrappedKey(([]*WrappedKey)(x.WrappedKeys), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *RootKey) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *RootKey) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "KeyID": + if r.TryDecodeAsNil() { + x.KeyID = "" + } else { + x.KeyID = (string)(r.DecodeString()) + } + case "Algorithm": + if r.TryDecodeAsNil() { + x.Algorithm = "" + } else { + x.Algorithm.CodecDecodeSelf(d) + } + case "CreateTime": + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + case "State": + if r.TryDecodeAsNil() { + x.State = "" + } else { + x.State.CodecDecodeSelf(d) + } + case "PublishTime": + if r.TryDecodeAsNil() { + x.PublishTime = 0 + } else { + x.PublishTime = (int64)(r.DecodeInt64()) + } + case "WrappedKeys": + if r.TryDecodeAsNil() { + x.WrappedKeys = nil + } else { + if false { + } else { + h.decSlicePtrtoWrappedKey((*[]*WrappedKey)(&x.WrappedKeys), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *RootKey) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.KeyID = "" + } else { + x.KeyID = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Algorithm = "" + } else { + x.Algorithm.CodecDecodeSelf(d) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.State = "" + } else { + x.State.CodecDecodeSelf(d) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PublishTime = 0 + } else { + x.PublishTime = (int64)(r.DecodeInt64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WrappedKeys = nil + } else { + if false { + } else { + h.decSlicePtrtoWrappedKey((*[]*WrappedKey)(&x.WrappedKeys), d) + } + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *WrappedKey) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Provider\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Provider`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ProviderID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ProviderID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ProviderID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ProviderID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ProviderID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ProviderID)) + } + } + } + var yyn9 bool + if x.WrappedDataEncryptionKey == nil { + yyn9 = true + goto LABEL9 + } + LABEL9: + if yyr2 || yy2arr2 { + if yyn9 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.WrappedDataEncryptionKey == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.WrappedDataEncryptionKey)); yyxt10 != nil { + z.EncExtension(x.WrappedDataEncryptionKey, yyxt10) + } else { + z.EncFallback(x.WrappedDataEncryptionKey) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"WrappedDataEncryptionKey\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `WrappedDataEncryptionKey`) + } + r.WriteMapElemValue() + if yyn9 { + r.EncodeNil() + } else { + if x.WrappedDataEncryptionKey == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.WrappedDataEncryptionKey)); yyxt11 != nil { + z.EncExtension(x.WrappedDataEncryptionKey, yyxt11) + } else { + z.EncFallback(x.WrappedDataEncryptionKey) + } + } + } + } + var yyn12 bool + if x.WrappedRSAKey == nil { + yyn12 = true + goto LABEL12 + } + LABEL12: + if yyr2 || yy2arr2 { + if yyn12 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.WrappedRSAKey == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.WrappedRSAKey)); yyxt13 != nil { + z.EncExtension(x.WrappedRSAKey, yyxt13) + } else { + z.EncFallback(x.WrappedRSAKey) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"WrappedRSAKey\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `WrappedRSAKey`) + } + r.WriteMapElemValue() + if yyn12 { + r.EncodeNil() + } else { + if x.WrappedRSAKey == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.WrappedRSAKey)); yyxt14 != nil { + z.EncExtension(x.WrappedRSAKey, yyxt14) + } else { + z.EncFallback(x.WrappedRSAKey) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.KeyEncryptionKey == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.KeyEncryptionKey)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KeyEncryptionKey\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KeyEncryptionKey`) + } + r.WriteMapElemValue() + if x.KeyEncryptionKey == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.KeyEncryptionKey)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *WrappedKey) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *WrappedKey) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Provider": + if r.TryDecodeAsNil() { + x.Provider = "" + } else { + x.Provider = (string)(r.DecodeString()) + } + case "ProviderID": + if r.TryDecodeAsNil() { + x.ProviderID = "" + } else { + x.ProviderID = (string)(r.DecodeString()) + } + case "WrappedDataEncryptionKey": + if r.TryDecodeAsNil() { + if true && x.WrappedDataEncryptionKey != nil { + x.WrappedDataEncryptionKey = nil + } + } else { + if x.WrappedDataEncryptionKey == nil { + x.WrappedDataEncryptionKey = new(pkg8_v2.BlobInfo) + } + + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.WrappedDataEncryptionKey)); yyxt7 != nil { + z.DecExtension(x.WrappedDataEncryptionKey, yyxt7) + } else { + z.DecFallback(x.WrappedDataEncryptionKey, false) + } + } + case "WrappedRSAKey": + if r.TryDecodeAsNil() { + if true && x.WrappedRSAKey != nil { + x.WrappedRSAKey = nil + } + } else { + if x.WrappedRSAKey == nil { + x.WrappedRSAKey = new(pkg8_v2.BlobInfo) + } + + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.WrappedRSAKey)); yyxt9 != nil { + z.DecExtension(x.WrappedRSAKey, yyxt9) + } else { + z.DecFallback(x.WrappedRSAKey, false) + } + } + case "KeyEncryptionKey": + if r.TryDecodeAsNil() { + x.KeyEncryptionKey = nil + } else { + if false { + } else { + x.KeyEncryptionKey = r.DecodeBytes(([]byte)(x.KeyEncryptionKey), false) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *WrappedKey) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Provider = "" + } else { + x.Provider = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ProviderID = "" + } else { + x.ProviderID = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.WrappedDataEncryptionKey != nil { + x.WrappedDataEncryptionKey = nil + } + } else { + if x.WrappedDataEncryptionKey == nil { + x.WrappedDataEncryptionKey = new(pkg8_v2.BlobInfo) + } + + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.WrappedDataEncryptionKey)); yyxt16 != nil { + z.DecExtension(x.WrappedDataEncryptionKey, yyxt16) + } else { + z.DecFallback(x.WrappedDataEncryptionKey, false) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.WrappedRSAKey != nil { + x.WrappedRSAKey = nil + } + } else { + if x.WrappedRSAKey == nil { + x.WrappedRSAKey = new(pkg8_v2.BlobInfo) + } + + if false { + } else if yyxt18 := z.Extension(z.I2Rtid(x.WrappedRSAKey)); yyxt18 != nil { + z.DecExtension(x.WrappedRSAKey, yyxt18) + } else { + z.DecFallback(x.WrappedRSAKey, false) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.KeyEncryptionKey = nil + } else { + if false { + } else { + x.KeyEncryptionKey = r.DecodeBytes(([]byte)(x.KeyEncryptionKey), false) + } + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *RootKeyMeta) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KeyID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KeyID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KeyID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KeyID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KeyID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KeyID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Algorithm.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Algorithm\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Algorithm`) + } + r.WriteMapElemValue() + x.Algorithm.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.State.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"State\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `State`) + } + r.WriteMapElemValue() + x.State.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PublishTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PublishTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PublishTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PublishTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *RootKeyMeta) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *RootKeyMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "KeyID": + if r.TryDecodeAsNil() { + x.KeyID = "" + } else { + x.KeyID = (string)(r.DecodeString()) + } + case "Algorithm": + if r.TryDecodeAsNil() { + x.Algorithm = "" + } else { + x.Algorithm.CodecDecodeSelf(d) + } + case "CreateTime": + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + case "State": + if r.TryDecodeAsNil() { + x.State = "" + } else { + x.State.CodecDecodeSelf(d) + } + case "PublishTime": + if r.TryDecodeAsNil() { + x.PublishTime = 0 + } else { + x.PublishTime = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *RootKeyMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.KeyID = "" + } else { + x.KeyID = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Algorithm = "" + } else { + x.Algorithm.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.State = "" + } else { + x.State.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PublishTime = 0 + } else { + x.PublishTime = (int64)(r.DecodeInt64()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x KEKProviderName) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) + } + } +} + +func (x *KEKProviderName) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (KEKProviderName)(r.DecodeString()) + } +} + +func (x *KEKProviderConfig) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Provider\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Provider`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Active)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Active\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Active`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Active)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Config == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Config), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Config\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Config`) + } + r.WriteMapElemValue() + if x.Config == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Config), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ExtraKeysHCL == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.ExtraKeysHCL), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ExtraKeysHCL\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ExtraKeysHCL`) + } + r.WriteMapElemValue() + if x.ExtraKeysHCL == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.ExtraKeysHCL), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *KEKProviderConfig) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *KEKProviderConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Provider": + if r.TryDecodeAsNil() { + x.Provider = "" + } else { + x.Provider = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Active": + if r.TryDecodeAsNil() { + x.Active = false + } else { + x.Active = (bool)(r.DecodeBool()) + } + case "Config": + if r.TryDecodeAsNil() { + x.Config = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Config), d) + } + } + case "ExtraKeysHCL": + if r.TryDecodeAsNil() { + x.ExtraKeysHCL = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.ExtraKeysHCL), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *KEKProviderConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Provider = "" + } else { + x.Provider = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Active = false + } else { + x.Active = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Config = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Config), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ExtraKeysHCL = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.ExtraKeysHCL), d) + } + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x RootKeyState) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) + } + } +} + +func (x *RootKeyState) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (RootKeyState)(r.DecodeString()) + } +} + +func (x EncryptionAlgorithm) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) + } + } +} + +func (x *EncryptionAlgorithm) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (EncryptionAlgorithm)(r.DecodeString()) + } +} + +func (x *KeyringRotateRootKeyRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Algorithm.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Algorithm\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Algorithm`) + } + r.WriteMapElemValue() + x.Algorithm.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Full)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Full\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Full`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Full)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PublishTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PublishTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PublishTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PublishTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *KeyringRotateRootKeyRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *KeyringRotateRootKeyRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Algorithm": + if r.TryDecodeAsNil() { + x.Algorithm = "" + } else { + x.Algorithm.CodecDecodeSelf(d) + } + case "Full": + if r.TryDecodeAsNil() { + x.Full = false + } else { + x.Full = (bool)(r.DecodeBool()) + } + case "PublishTime": + if r.TryDecodeAsNil() { + x.PublishTime = 0 + } else { + x.PublishTime = (int64)(r.DecodeInt64()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *KeyringRotateRootKeyRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Algorithm = "" + } else { + x.Algorithm.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Full = false + } else { + x.Full = (bool)(r.DecodeBool()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PublishTime = 0 + } else { + x.PublishTime = (int64)(r.DecodeInt64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *KeyringRotateRootKeyResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + var yyn3 bool + if x.Key == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Key == nil { + r.EncodeNil() + } else { + x.Key.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Key\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Key`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Key == nil { + r.EncodeNil() + } else { + x.Key.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *KeyringRotateRootKeyResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *KeyringRotateRootKeyResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Key": + if r.TryDecodeAsNil() { + if true && x.Key != nil { + x.Key = nil + } + } else { + if x.Key == nil { + x.Key = new(RootKeyMeta) + } + + x.Key.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *KeyringRotateRootKeyResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Key != nil { + x.Key = nil + } + } else { + if x.Key == nil { + x.Key = new(RootKeyMeta) + } + + x.Key.CodecDecodeSelf(d) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *KeyringListRootKeyMetaRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(12) + } else { + r.WriteMapStart(12) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.EncExtension(x.MaxQueryTime, yyxt13) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { + z.EncExtension(x.MaxQueryTime, yyxt14) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *KeyringListRootKeyMetaRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *KeyringListRootKeyMetaRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { + z.DecExtension(x.MaxQueryTime, yyxt8) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *KeyringListRootKeyMetaRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { + z.DecExtension(x.MaxQueryTime, yyxt22) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } + r.ReadArrayEnd() +} + +func (x *KeyringListRootKeyMetaResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Keys == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoRootKeyMeta(([]*RootKeyMeta)(x.Keys), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Keys\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Keys`) + } + r.WriteMapElemValue() + if x.Keys == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoRootKeyMeta(([]*RootKeyMeta)(x.Keys), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *KeyringListRootKeyMetaResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *KeyringListRootKeyMetaResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Keys": + if r.TryDecodeAsNil() { + x.Keys = nil + } else { + if false { + } else { + h.decSlicePtrtoRootKeyMeta((*[]*RootKeyMeta)(&x.Keys), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *KeyringListRootKeyMetaResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Keys = nil + } else { + if false { + } else { + h.decSlicePtrtoRootKeyMeta((*[]*RootKeyMeta)(&x.Keys), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *KeyringUpdateRootKeyRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + var yyn3 bool + if x.RootKey == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.RootKey == nil { + r.EncodeNil() + } else { + x.RootKey.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RootKey\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RootKey`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.RootKey == nil { + r.EncodeNil() + } else { + x.RootKey.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Rekey)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Rekey\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Rekey`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Rekey)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *KeyringUpdateRootKeyRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *KeyringUpdateRootKeyRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "RootKey": + if r.TryDecodeAsNil() { + if true && x.RootKey != nil { + x.RootKey = nil + } + } else { + if x.RootKey == nil { + x.RootKey = new(UnwrappedRootKey) + } + + x.RootKey.CodecDecodeSelf(d) + } + case "Rekey": + if r.TryDecodeAsNil() { + x.Rekey = false + } else { + x.Rekey = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *KeyringUpdateRootKeyRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.RootKey != nil { + x.RootKey = nil + } + } else { + if x.RootKey == nil { + x.RootKey = new(UnwrappedRootKey) + } + + x.RootKey.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Rekey = false + } else { + x.Rekey = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *KeyringUpdateRootKeyResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *KeyringUpdateRootKeyResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *KeyringUpdateRootKeyResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *KeyringUpdateRootKeyResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *KeyringUpsertWrappedRootKeyRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + var yyn3 bool + if x.WrappedRootKeys == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.WrappedRootKeys == nil { + r.EncodeNil() + } else { + x.WrappedRootKeys.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"WrappedRootKeys\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `WrappedRootKeys`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.WrappedRootKeys == nil { + r.EncodeNil() + } else { + x.WrappedRootKeys.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Rekey)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Rekey\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Rekey`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Rekey)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *KeyringUpsertWrappedRootKeyRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *KeyringUpsertWrappedRootKeyRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "WrappedRootKeys": + if r.TryDecodeAsNil() { + if true && x.WrappedRootKeys != nil { + x.WrappedRootKeys = nil + } + } else { + if x.WrappedRootKeys == nil { + x.WrappedRootKeys = new(RootKey) + } + + x.WrappedRootKeys.CodecDecodeSelf(d) + } + case "Rekey": + if r.TryDecodeAsNil() { + x.Rekey = false + } else { + x.Rekey = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *KeyringUpsertWrappedRootKeyRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.WrappedRootKeys != nil { + x.WrappedRootKeys = nil + } + } else { + if x.WrappedRootKeys == nil { + x.WrappedRootKeys = new(RootKey) + } + + x.WrappedRootKeys.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Rekey = false + } else { + x.Rekey = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *KeyringGetRootKeyRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KeyID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KeyID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KeyID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KeyID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KeyID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KeyID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *KeyringGetRootKeyRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *KeyringGetRootKeyRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "KeyID": + if r.TryDecodeAsNil() { + x.KeyID = "" + } else { + x.KeyID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *KeyringGetRootKeyRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.KeyID = "" + } else { + x.KeyID = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt24 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt24 != nil { + z.DecExtension(x.MaxQueryTime, yyxt24) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *KeyringGetRootKeyResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + var yyn3 bool + if x.Key == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Key == nil { + r.EncodeNil() + } else { + x.Key.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Key\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Key`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Key == nil { + r.EncodeNil() + } else { + x.Key.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *KeyringGetRootKeyResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *KeyringGetRootKeyResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Key": + if r.TryDecodeAsNil() { + if true && x.Key != nil { + x.Key = nil + } + } else { + if x.Key == nil { + x.Key = new(UnwrappedRootKey) + } + + x.Key.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *KeyringGetRootKeyResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Key != nil { + x.Key = nil + } + } else { + if x.Key == nil { + x.Key = new(UnwrappedRootKey) + } + + x.Key.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.DecExtension(x.LastContact, yyxt14) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *KeyringUpdateRootKeyMetaRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + var yyn3 bool + if x.RootKeyMeta == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.RootKeyMeta == nil { + r.EncodeNil() + } else { + x.RootKeyMeta.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RootKeyMeta\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RootKeyMeta`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.RootKeyMeta == nil { + r.EncodeNil() + } else { + x.RootKeyMeta.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Rekey)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Rekey\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Rekey`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Rekey)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *KeyringUpdateRootKeyMetaRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *KeyringUpdateRootKeyMetaRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "RootKeyMeta": + if r.TryDecodeAsNil() { + if true && x.RootKeyMeta != nil { + x.RootKeyMeta = nil + } + } else { + if x.RootKeyMeta == nil { + x.RootKeyMeta = new(RootKeyMeta) + } + + x.RootKeyMeta.CodecDecodeSelf(d) + } + case "Rekey": + if r.TryDecodeAsNil() { + x.Rekey = false + } else { + x.Rekey = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *KeyringUpdateRootKeyMetaRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.RootKeyMeta != nil { + x.RootKeyMeta = nil + } + } else { + if x.RootKeyMeta == nil { + x.RootKeyMeta = new(RootKeyMeta) + } + + x.RootKeyMeta.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Rekey = false + } else { + x.Rekey = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *KeyringUpdateRootKeyMetaResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *KeyringUpdateRootKeyMetaResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *KeyringUpdateRootKeyMetaResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *KeyringUpdateRootKeyMetaResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *KeyringDeleteRootKeyRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KeyID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KeyID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KeyID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KeyID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KeyID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KeyID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Force)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Force\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Force`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Force)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *KeyringDeleteRootKeyRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *KeyringDeleteRootKeyRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "KeyID": + if r.TryDecodeAsNil() { + x.KeyID = "" + } else { + x.KeyID = (string)(r.DecodeString()) + } + case "Force": + if r.TryDecodeAsNil() { + x.Force = false + } else { + x.Force = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *KeyringDeleteRootKeyRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.KeyID = "" + } else { + x.KeyID = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Force = false + } else { + x.Force = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *KeyringDeleteRootKeyResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *KeyringDeleteRootKeyResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *KeyringDeleteRootKeyResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *KeyringDeleteRootKeyResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *KeyringListPublicResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.PublicKeys == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoKeyringPublicKey(([]*KeyringPublicKey)(x.PublicKeys), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PublicKeys\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PublicKeys`) + } + r.WriteMapElemValue() + if x.PublicKeys == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoKeyringPublicKey(([]*KeyringPublicKey)(x.PublicKeys), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.RotationThreshold)); yyxt7 != nil { + z.EncExtension(x.RotationThreshold, yyxt7) + } else { + r.EncodeInt(int64(x.RotationThreshold)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RotationThreshold\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RotationThreshold`) + } + r.WriteMapElemValue() + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.RotationThreshold)); yyxt8 != nil { + z.EncExtension(x.RotationThreshold, yyxt8) + } else { + r.EncodeInt(int64(x.RotationThreshold)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { + z.EncExtension(x.LastContact, yyxt13) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.EncExtension(x.LastContact, yyxt14) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *KeyringListPublicResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *KeyringListPublicResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "PublicKeys": + if r.TryDecodeAsNil() { + x.PublicKeys = nil + } else { + if false { + } else { + h.decSlicePtrtoKeyringPublicKey((*[]*KeyringPublicKey)(&x.PublicKeys), d) + } + } + case "RotationThreshold": + if r.TryDecodeAsNil() { + x.RotationThreshold = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.RotationThreshold)); yyxt7 != nil { + z.DecExtension(x.RotationThreshold, yyxt7) + } else { + x.RotationThreshold = (time.Duration)(r.DecodeInt64()) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.DecExtension(x.LastContact, yyxt10) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *KeyringListPublicResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PublicKeys = nil + } else { + if false { + } else { + h.decSlicePtrtoKeyringPublicKey((*[]*KeyringPublicKey)(&x.PublicKeys), d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RotationThreshold = 0 + } else { + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.RotationThreshold)); yyxt17 != nil { + z.DecExtension(x.RotationThreshold, yyxt17) + } else { + x.RotationThreshold = (time.Duration)(r.DecodeInt64()) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.LastContact)); yyxt20 != nil { + z.DecExtension(x.LastContact, yyxt20) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *KeyringPublicKey) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KeyID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KeyID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KeyID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KeyID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KeyID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KeyID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.PublicKey == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.PublicKey)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PublicKey\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PublicKey`) + } + r.WriteMapElemValue() + if x.PublicKey == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.PublicKey)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Algorithm))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Algorithm)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Algorithm\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Algorithm`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Algorithm))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Algorithm)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Use))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Use)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Use\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Use`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Use))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Use)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *KeyringPublicKey) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *KeyringPublicKey) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "KeyID": + if r.TryDecodeAsNil() { + x.KeyID = "" + } else { + x.KeyID = (string)(r.DecodeString()) + } + case "PublicKey": + if r.TryDecodeAsNil() { + x.PublicKey = nil + } else { + if false { + } else { + x.PublicKey = r.DecodeBytes(([]byte)(x.PublicKey), false) + } + } + case "Algorithm": + if r.TryDecodeAsNil() { + x.Algorithm = "" + } else { + x.Algorithm = (string)(r.DecodeString()) + } + case "Use": + if r.TryDecodeAsNil() { + x.Use = "" + } else { + x.Use = (string)(r.DecodeString()) + } + case "CreateTime": + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *KeyringPublicKey) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.KeyID = "" + } else { + x.KeyID = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PublicKey = nil + } else { + if false { + } else { + x.PublicKey = r.DecodeBytes(([]byte)(x.PublicKey), false) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Algorithm = "" + } else { + x.Algorithm = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Use = "" + } else { + x.Use = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *KeyringGetConfigResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + var yyn3 bool + if x.OIDCDiscovery == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.OIDCDiscovery == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt4 := z.Extension(z.I2Rtid(x.OIDCDiscovery)); yyxt4 != nil { + z.EncExtension(x.OIDCDiscovery, yyxt4) + } else { + z.EncFallback(x.OIDCDiscovery) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"OIDCDiscovery\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `OIDCDiscovery`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.OIDCDiscovery == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.OIDCDiscovery)); yyxt5 != nil { + z.EncExtension(x.OIDCDiscovery, yyxt5) + } else { + z.EncFallback(x.OIDCDiscovery) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *KeyringGetConfigResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *KeyringGetConfigResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "OIDCDiscovery": + if r.TryDecodeAsNil() { + if true && x.OIDCDiscovery != nil { + x.OIDCDiscovery = nil + } + } else { + if x.OIDCDiscovery == nil { + x.OIDCDiscovery = new(OIDCDiscoveryConfig) + } + + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.OIDCDiscovery)); yyxt5 != nil { + z.DecExtension(x.OIDCDiscovery, yyxt5) + } else { + z.DecFallback(x.OIDCDiscovery, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *KeyringGetConfigResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.OIDCDiscovery != nil { + x.OIDCDiscovery = nil + } + } else { + if x.OIDCDiscovery == nil { + x.OIDCDiscovery = new(OIDCDiscoveryConfig) + } + + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.OIDCDiscovery)); yyxt8 != nil { + z.DecExtension(x.OIDCDiscovery, yyxt8) + } else { + z.DecFallback(x.OIDCDiscovery, false) + } + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *NamespaceVaultConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Default))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Default)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Default\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Default`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Default))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Default)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Allowed == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Allowed), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Allowed\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Allowed`) + } + r.WriteMapElemValue() + if x.Allowed == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Allowed), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Denied == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Denied), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Denied\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Denied`) + } + r.WriteMapElemValue() + if x.Denied == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Denied), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NamespaceVaultConfiguration) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NamespaceVaultConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Default": + if r.TryDecodeAsNil() { + x.Default = "" + } else { + x.Default = (string)(r.DecodeString()) + } + case "Allowed": + if r.TryDecodeAsNil() { + x.Allowed = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Allowed), d) + } + } + case "Denied": + if r.TryDecodeAsNil() { + x.Denied = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Denied), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NamespaceVaultConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Default = "" + } else { + x.Default = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Allowed = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Allowed), d) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Denied = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Denied), d) + } + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *NamespaceConsulConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Default))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Default)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Default\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Default`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Default))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Default)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Allowed == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Allowed), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Allowed\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Allowed`) + } + r.WriteMapElemValue() + if x.Allowed == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Allowed), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Denied == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Denied), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Denied\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Denied`) + } + r.WriteMapElemValue() + if x.Denied == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Denied), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NamespaceConsulConfiguration) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NamespaceConsulConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Default": + if r.TryDecodeAsNil() { + x.Default = "" + } else { + x.Default = (string)(r.DecodeString()) + } + case "Allowed": + if r.TryDecodeAsNil() { + x.Allowed = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Allowed), d) + } + } + case "Denied": + if r.TryDecodeAsNil() { + x.Denied = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Denied), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NamespaceConsulConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Default = "" + } else { + x.Default = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Allowed = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Allowed), d) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Denied = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Denied), d) + } + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *NetworkIndex) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.TaskNetworks == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNetworkResource(([]*NetworkResource)(x.TaskNetworks), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskNetworks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskNetworks`) + } + r.WriteMapElemValue() + if x.TaskNetworks == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNetworkResource(([]*NetworkResource)(x.TaskNetworks), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.GroupNetworks == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeNetworkResource(([]*NodeNetworkResource)(x.GroupNetworks), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"GroupNetworks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `GroupNetworks`) + } + r.WriteMapElemValue() + if x.GroupNetworks == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeNetworkResource(([]*NodeNetworkResource)(x.GroupNetworks), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.HostNetworks == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSliceNodeNetworkAddress((map[string][]NodeNetworkAddress)(x.HostNetworks), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HostNetworks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HostNetworks`) + } + r.WriteMapElemValue() + if x.HostNetworks == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSliceNodeNetworkAddress((map[string][]NodeNetworkAddress)(x.HostNetworks), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.UsedPorts == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringBitmap((map[string]Bitmap)(x.UsedPorts), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"UsedPorts\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `UsedPorts`) + } + r.WriteMapElemValue() + if x.UsedPorts == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringBitmap((map[string]Bitmap)(x.UsedPorts), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.AvailBandwidth == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringint((map[string]int)(x.AvailBandwidth), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AvailBandwidth\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AvailBandwidth`) + } + r.WriteMapElemValue() + if x.AvailBandwidth == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringint((map[string]int)(x.AvailBandwidth), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.UsedBandwidth == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringint((map[string]int)(x.UsedBandwidth), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"UsedBandwidth\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `UsedBandwidth`) + } + r.WriteMapElemValue() + if x.UsedBandwidth == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringint((map[string]int)(x.UsedBandwidth), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.MinDynamicPort)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinDynamicPort\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinDynamicPort`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.MinDynamicPort)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.MaxDynamicPort)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxDynamicPort\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxDynamicPort`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.MaxDynamicPort)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NetworkIndex) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NetworkIndex) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "TaskNetworks": + if r.TryDecodeAsNil() { + x.TaskNetworks = nil + } else { + if false { + } else { + h.decSlicePtrtoNetworkResource((*[]*NetworkResource)(&x.TaskNetworks), d) + } + } + case "GroupNetworks": + if r.TryDecodeAsNil() { + x.GroupNetworks = nil + } else { + if false { + } else { + h.decSlicePtrtoNodeNetworkResource((*[]*NodeNetworkResource)(&x.GroupNetworks), d) + } + } + case "HostNetworks": + if r.TryDecodeAsNil() { + x.HostNetworks = nil + } else { + if false { + } else { + h.decMapstringSliceNodeNetworkAddress((*map[string][]NodeNetworkAddress)(&x.HostNetworks), d) + } + } + case "UsedPorts": + if r.TryDecodeAsNil() { + x.UsedPorts = nil + } else { + if false { + } else { + h.decMapstringBitmap((*map[string]Bitmap)(&x.UsedPorts), d) + } + } + case "AvailBandwidth": + if r.TryDecodeAsNil() { + x.AvailBandwidth = nil + } else { + if false { + } else { + h.decMapstringint((*map[string]int)(&x.AvailBandwidth), d) + } + } + case "UsedBandwidth": + if r.TryDecodeAsNil() { + x.UsedBandwidth = nil + } else { + if false { + } else { + h.decMapstringint((*map[string]int)(&x.UsedBandwidth), d) + } + } + case "MinDynamicPort": + if r.TryDecodeAsNil() { + x.MinDynamicPort = 0 + } else { + x.MinDynamicPort = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "MaxDynamicPort": + if r.TryDecodeAsNil() { + x.MaxDynamicPort = 0 + } else { + x.MaxDynamicPort = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NetworkIndex) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskNetworks = nil + } else { + if false { + } else { + h.decSlicePtrtoNetworkResource((*[]*NetworkResource)(&x.TaskNetworks), d) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.GroupNetworks = nil + } else { + if false { + } else { + h.decSlicePtrtoNodeNetworkResource((*[]*NodeNetworkResource)(&x.GroupNetworks), d) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HostNetworks = nil + } else { + if false { + } else { + h.decMapstringSliceNodeNetworkAddress((*map[string][]NodeNetworkAddress)(&x.HostNetworks), d) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.UsedPorts = nil + } else { + if false { + } else { + h.decMapstringBitmap((*map[string]Bitmap)(&x.UsedPorts), d) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AvailBandwidth = nil + } else { + if false { + } else { + h.decMapstringint((*map[string]int)(&x.AvailBandwidth), d) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.UsedBandwidth = nil + } else { + if false { + } else { + h.decMapstringint((*map[string]int)(&x.UsedBandwidth), d) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MinDynamicPort = 0 + } else { + x.MinDynamicPort = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MaxDynamicPort = 0 + } else { + x.MaxDynamicPort = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *ClientHostNetworkConfig) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.CIDR))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.CIDR)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CIDR\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CIDR`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.CIDR))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.CIDR)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Interface))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Interface)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Interface\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Interface`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Interface))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Interface)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ReservedPorts))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ReservedPorts)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ReservedPorts\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ReservedPorts`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ReservedPorts))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ReservedPorts)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ClientHostNetworkConfig) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ClientHostNetworkConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "CIDR": + if r.TryDecodeAsNil() { + x.CIDR = "" + } else { + x.CIDR = (string)(r.DecodeString()) + } + case "Interface": + if r.TryDecodeAsNil() { + x.Interface = "" + } else { + x.Interface = (string)(r.DecodeString()) + } + case "ReservedPorts": + if r.TryDecodeAsNil() { + x.ReservedPorts = "" + } else { + x.ReservedPorts = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ClientHostNetworkConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CIDR = "" + } else { + x.CIDR = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Interface = "" + } else { + x.Interface = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ReservedPorts = "" + } else { + x.ReservedPorts = (string)(r.DecodeString()) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSITopology) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Segments == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Segments), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Segments\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Segments`) + } + r.WriteMapElemValue() + if x.Segments == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Segments), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSITopology) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSITopology) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Segments": + if r.TryDecodeAsNil() { + x.Segments = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Segments), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSITopology) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Segments = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Segments), d) + } + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSITopologyRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Required == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoCSITopology(([]*CSITopology)(x.Required), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Required\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Required`) + } + r.WriteMapElemValue() + if x.Required == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoCSITopology(([]*CSITopology)(x.Required), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Preferred == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoCSITopology(([]*CSITopology)(x.Preferred), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Preferred\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Preferred`) + } + r.WriteMapElemValue() + if x.Preferred == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoCSITopology(([]*CSITopology)(x.Preferred), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSITopologyRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSITopologyRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Required": + if r.TryDecodeAsNil() { + x.Required = nil + } else { + if false { + } else { + h.decSlicePtrtoCSITopology((*[]*CSITopology)(&x.Required), d) + } + } + case "Preferred": + if r.TryDecodeAsNil() { + x.Preferred = nil + } else { + if false { + } else { + h.decSlicePtrtoCSITopology((*[]*CSITopology)(&x.Preferred), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSITopologyRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Required = nil + } else { + if false { + } else { + h.decSlicePtrtoCSITopology((*[]*CSITopology)(&x.Required), d) + } + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Preferred = nil + } else { + if false { + } else { + h.decSlicePtrtoCSITopology((*[]*CSITopology)(&x.Preferred), d) + } + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSINodeInfo) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.MaxVolumes)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxVolumes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxVolumes`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.MaxVolumes)) + } + } + var yyn9 bool + if x.AccessibleTopology == nil { + yyn9 = true + goto LABEL9 + } + LABEL9: + if yyr2 || yy2arr2 { + if yyn9 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.AccessibleTopology == nil { + r.EncodeNil() + } else { + x.AccessibleTopology.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AccessibleTopology\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AccessibleTopology`) + } + r.WriteMapElemValue() + if yyn9 { + r.EncodeNil() + } else { + if x.AccessibleTopology == nil { + r.EncodeNil() + } else { + x.AccessibleTopology.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.RequiresNodeStageVolume)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RequiresNodeStageVolume\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RequiresNodeStageVolume`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.RequiresNodeStageVolume)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.SupportsStats)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SupportsStats\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SupportsStats`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.SupportsStats)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.SupportsExpand)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SupportsExpand\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SupportsExpand`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.SupportsExpand)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.SupportsCondition)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SupportsCondition\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SupportsCondition`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.SupportsCondition)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSINodeInfo) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSINodeInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "MaxVolumes": + if r.TryDecodeAsNil() { + x.MaxVolumes = 0 + } else { + x.MaxVolumes = (int64)(r.DecodeInt64()) + } + case "AccessibleTopology": + if r.TryDecodeAsNil() { + if true && x.AccessibleTopology != nil { + x.AccessibleTopology = nil + } + } else { + if x.AccessibleTopology == nil { + x.AccessibleTopology = new(CSITopology) + } + + x.AccessibleTopology.CodecDecodeSelf(d) + } + case "RequiresNodeStageVolume": + if r.TryDecodeAsNil() { + x.RequiresNodeStageVolume = false + } else { + x.RequiresNodeStageVolume = (bool)(r.DecodeBool()) + } + case "SupportsStats": + if r.TryDecodeAsNil() { + x.SupportsStats = false + } else { + x.SupportsStats = (bool)(r.DecodeBool()) + } + case "SupportsExpand": + if r.TryDecodeAsNil() { + x.SupportsExpand = false + } else { + x.SupportsExpand = (bool)(r.DecodeBool()) + } + case "SupportsCondition": + if r.TryDecodeAsNil() { + x.SupportsCondition = false + } else { + x.SupportsCondition = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSINodeInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MaxVolumes = 0 + } else { + x.MaxVolumes = (int64)(r.DecodeInt64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.AccessibleTopology != nil { + x.AccessibleTopology = nil + } + } else { + if x.AccessibleTopology == nil { + x.AccessibleTopology = new(CSITopology) + } + + x.AccessibleTopology.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RequiresNodeStageVolume = false + } else { + x.RequiresNodeStageVolume = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SupportsStats = false + } else { + x.SupportsStats = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SupportsExpand = false + } else { + x.SupportsExpand = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SupportsCondition = false + } else { + x.SupportsCondition = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIControllerInfo) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(12) + } else { + r.WriteMapStart(12) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.SupportsCreateDelete)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SupportsCreateDelete\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SupportsCreateDelete`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.SupportsCreateDelete)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.SupportsAttachDetach)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SupportsAttachDetach\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SupportsAttachDetach`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.SupportsAttachDetach)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.SupportsListVolumes)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SupportsListVolumes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SupportsListVolumes`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.SupportsListVolumes)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.SupportsGetCapacity)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SupportsGetCapacity\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SupportsGetCapacity`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.SupportsGetCapacity)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.SupportsCreateDeleteSnapshot)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SupportsCreateDeleteSnapshot\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SupportsCreateDeleteSnapshot`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.SupportsCreateDeleteSnapshot)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.SupportsListSnapshots)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SupportsListSnapshots\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SupportsListSnapshots`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.SupportsListSnapshots)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.SupportsClone)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SupportsClone\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SupportsClone`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.SupportsClone)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.SupportsReadOnlyAttach)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SupportsReadOnlyAttach\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SupportsReadOnlyAttach`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.SupportsReadOnlyAttach)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.SupportsExpand)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SupportsExpand\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SupportsExpand`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.SupportsExpand)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.SupportsListVolumesAttachedNodes)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SupportsListVolumesAttachedNodes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SupportsListVolumesAttachedNodes`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.SupportsListVolumesAttachedNodes)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.SupportsCondition)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SupportsCondition\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SupportsCondition`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.SupportsCondition)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.SupportsGet)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SupportsGet\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SupportsGet`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.SupportsGet)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIControllerInfo) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIControllerInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "SupportsCreateDelete": + if r.TryDecodeAsNil() { + x.SupportsCreateDelete = false + } else { + x.SupportsCreateDelete = (bool)(r.DecodeBool()) + } + case "SupportsAttachDetach": + if r.TryDecodeAsNil() { + x.SupportsAttachDetach = false + } else { + x.SupportsAttachDetach = (bool)(r.DecodeBool()) + } + case "SupportsListVolumes": + if r.TryDecodeAsNil() { + x.SupportsListVolumes = false + } else { + x.SupportsListVolumes = (bool)(r.DecodeBool()) + } + case "SupportsGetCapacity": + if r.TryDecodeAsNil() { + x.SupportsGetCapacity = false + } else { + x.SupportsGetCapacity = (bool)(r.DecodeBool()) + } + case "SupportsCreateDeleteSnapshot": + if r.TryDecodeAsNil() { + x.SupportsCreateDeleteSnapshot = false + } else { + x.SupportsCreateDeleteSnapshot = (bool)(r.DecodeBool()) + } + case "SupportsListSnapshots": + if r.TryDecodeAsNil() { + x.SupportsListSnapshots = false + } else { + x.SupportsListSnapshots = (bool)(r.DecodeBool()) + } + case "SupportsClone": + if r.TryDecodeAsNil() { + x.SupportsClone = false + } else { + x.SupportsClone = (bool)(r.DecodeBool()) + } + case "SupportsReadOnlyAttach": + if r.TryDecodeAsNil() { + x.SupportsReadOnlyAttach = false + } else { + x.SupportsReadOnlyAttach = (bool)(r.DecodeBool()) + } + case "SupportsExpand": + if r.TryDecodeAsNil() { + x.SupportsExpand = false + } else { + x.SupportsExpand = (bool)(r.DecodeBool()) + } + case "SupportsListVolumesAttachedNodes": + if r.TryDecodeAsNil() { + x.SupportsListVolumesAttachedNodes = false + } else { + x.SupportsListVolumesAttachedNodes = (bool)(r.DecodeBool()) + } + case "SupportsCondition": + if r.TryDecodeAsNil() { + x.SupportsCondition = false + } else { + x.SupportsCondition = (bool)(r.DecodeBool()) + } + case "SupportsGet": + if r.TryDecodeAsNil() { + x.SupportsGet = false + } else { + x.SupportsGet = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIControllerInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj16 int + var yyb16 bool + var yyhl16 bool = l >= 0 + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SupportsCreateDelete = false + } else { + x.SupportsCreateDelete = (bool)(r.DecodeBool()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SupportsAttachDetach = false + } else { + x.SupportsAttachDetach = (bool)(r.DecodeBool()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SupportsListVolumes = false + } else { + x.SupportsListVolumes = (bool)(r.DecodeBool()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SupportsGetCapacity = false + } else { + x.SupportsGetCapacity = (bool)(r.DecodeBool()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SupportsCreateDeleteSnapshot = false + } else { + x.SupportsCreateDeleteSnapshot = (bool)(r.DecodeBool()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SupportsListSnapshots = false + } else { + x.SupportsListSnapshots = (bool)(r.DecodeBool()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SupportsClone = false + } else { + x.SupportsClone = (bool)(r.DecodeBool()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SupportsReadOnlyAttach = false + } else { + x.SupportsReadOnlyAttach = (bool)(r.DecodeBool()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SupportsExpand = false + } else { + x.SupportsExpand = (bool)(r.DecodeBool()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SupportsListVolumesAttachedNodes = false + } else { + x.SupportsListVolumesAttachedNodes = (bool)(r.DecodeBool()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SupportsCondition = false + } else { + x.SupportsCondition = (bool)(r.DecodeBool()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SupportsGet = false + } else { + x.SupportsGet = (bool)(r.DecodeBool()) + } + for { + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj16-1, "") + } + r.ReadArrayEnd() +} + +func (x *CSIInfo) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(11) + } else { + r.WriteMapStart(11) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PluginID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PluginID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Healthy)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Healthy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Healthy`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Healthy)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.HealthDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthDescription)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HealthDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HealthDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.HealthDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthDescription)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.UpdateTime) + } else if yyxt16 := z.Extension(z.I2Rtid(x.UpdateTime)); yyxt16 != nil { + z.EncExtension(x.UpdateTime, yyxt16) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.UpdateTime) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.UpdateTime) + } else { + z.EncFallback(x.UpdateTime) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"UpdateTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `UpdateTime`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.UpdateTime) + } else if yyxt17 := z.Extension(z.I2Rtid(x.UpdateTime)); yyxt17 != nil { + z.EncExtension(x.UpdateTime, yyxt17) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.UpdateTime) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.UpdateTime) + } else { + z.EncFallback(x.UpdateTime) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Provider\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Provider`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ProviderVersion))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ProviderVersion)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ProviderVersion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ProviderVersion`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ProviderVersion))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ProviderVersion)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.RequiresControllerPlugin)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RequiresControllerPlugin\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RequiresControllerPlugin`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.RequiresControllerPlugin)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.RequiresTopologies)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RequiresTopologies\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RequiresTopologies`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.RequiresTopologies)) + } + } + var yyn30 bool + if x.ControllerInfo == nil { + yyn30 = true + goto LABEL30 + } + LABEL30: + if yyr2 || yy2arr2 { + if yyn30 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ControllerInfo == nil { + r.EncodeNil() + } else { + x.ControllerInfo.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ControllerInfo\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ControllerInfo`) + } + r.WriteMapElemValue() + if yyn30 { + r.EncodeNil() + } else { + if x.ControllerInfo == nil { + r.EncodeNil() + } else { + x.ControllerInfo.CodecEncodeSelf(e) + } + } + } + var yyn33 bool + if x.NodeInfo == nil { + yyn33 = true + goto LABEL33 + } + LABEL33: + if yyr2 || yy2arr2 { + if yyn33 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.NodeInfo == nil { + r.EncodeNil() + } else { + x.NodeInfo.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeInfo\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeInfo`) + } + r.WriteMapElemValue() + if yyn33 { + r.EncodeNil() + } else { + if x.NodeInfo == nil { + r.EncodeNil() + } else { + x.NodeInfo.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CSIInfo) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CSIInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "PluginID": + if r.TryDecodeAsNil() { + x.PluginID = "" + } else { + x.PluginID = (string)(r.DecodeString()) + } + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "Healthy": + if r.TryDecodeAsNil() { + x.Healthy = false + } else { + x.Healthy = (bool)(r.DecodeBool()) + } + case "HealthDescription": + if r.TryDecodeAsNil() { + x.HealthDescription = "" + } else { + x.HealthDescription = (string)(r.DecodeString()) + } + case "UpdateTime": + if r.TryDecodeAsNil() { + x.UpdateTime = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.UpdateTime = r.DecodeTime() + } else if yyxt9 := z.Extension(z.I2Rtid(x.UpdateTime)); yyxt9 != nil { + z.DecExtension(x.UpdateTime, yyxt9) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.UpdateTime) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.UpdateTime) + } else { + z.DecFallback(&x.UpdateTime, false) + } + } + case "Provider": + if r.TryDecodeAsNil() { + x.Provider = "" + } else { + x.Provider = (string)(r.DecodeString()) + } + case "ProviderVersion": + if r.TryDecodeAsNil() { + x.ProviderVersion = "" + } else { + x.ProviderVersion = (string)(r.DecodeString()) + } + case "RequiresControllerPlugin": + if r.TryDecodeAsNil() { + x.RequiresControllerPlugin = false + } else { + x.RequiresControllerPlugin = (bool)(r.DecodeBool()) + } + case "RequiresTopologies": + if r.TryDecodeAsNil() { + x.RequiresTopologies = false + } else { + x.RequiresTopologies = (bool)(r.DecodeBool()) + } + case "ControllerInfo": + if r.TryDecodeAsNil() { + if true && x.ControllerInfo != nil { + x.ControllerInfo = nil + } + } else { + if x.ControllerInfo == nil { + x.ControllerInfo = new(CSIControllerInfo) + } + + x.ControllerInfo.CodecDecodeSelf(d) + } + case "NodeInfo": + if r.TryDecodeAsNil() { + if true && x.NodeInfo != nil { + x.NodeInfo = nil + } + } else { + if x.NodeInfo == nil { + x.NodeInfo = new(CSINodeInfo) + } + + x.NodeInfo.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CSIInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj16 int + var yyb16 bool + var yyhl16 bool = l >= 0 + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PluginID = "" + } else { + x.PluginID = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Healthy = false + } else { + x.Healthy = (bool)(r.DecodeBool()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HealthDescription = "" + } else { + x.HealthDescription = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.UpdateTime = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.UpdateTime = r.DecodeTime() + } else if yyxt22 := z.Extension(z.I2Rtid(x.UpdateTime)); yyxt22 != nil { + z.DecExtension(x.UpdateTime, yyxt22) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.UpdateTime) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.UpdateTime) + } else { + z.DecFallback(&x.UpdateTime, false) + } + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Provider = "" + } else { + x.Provider = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ProviderVersion = "" + } else { + x.ProviderVersion = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RequiresControllerPlugin = false + } else { + x.RequiresControllerPlugin = (bool)(r.DecodeBool()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RequiresTopologies = false + } else { + x.RequiresTopologies = (bool)(r.DecodeBool()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ControllerInfo != nil { + x.ControllerInfo = nil + } + } else { + if x.ControllerInfo == nil { + x.ControllerInfo = new(CSIControllerInfo) + } + + x.ControllerInfo.CodecDecodeSelf(d) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.NodeInfo != nil { + x.NodeInfo = nil + } + } else { + if x.NodeInfo == nil { + x.NodeInfo = new(CSINodeInfo) + } + + x.NodeInfo.CodecDecodeSelf(d) + } + for { + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj16-1, "") + } + r.ReadArrayEnd() +} + +func (x *DriverInfo) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Attributes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Attributes), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Attributes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Attributes`) + } + r.WriteMapElemValue() + if x.Attributes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Attributes), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Detected)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Detected\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Detected`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Detected)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Healthy)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Healthy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Healthy`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Healthy)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.HealthDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthDescription)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HealthDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HealthDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.HealthDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthDescription)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.UpdateTime) + } else if yyxt16 := z.Extension(z.I2Rtid(x.UpdateTime)); yyxt16 != nil { + z.EncExtension(x.UpdateTime, yyxt16) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.UpdateTime) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.UpdateTime) + } else { + z.EncFallback(x.UpdateTime) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"UpdateTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `UpdateTime`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.UpdateTime) + } else if yyxt17 := z.Extension(z.I2Rtid(x.UpdateTime)); yyxt17 != nil { + z.EncExtension(x.UpdateTime, yyxt17) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.UpdateTime) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.UpdateTime) + } else { + z.EncFallback(x.UpdateTime) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DriverInfo) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DriverInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Attributes": + if r.TryDecodeAsNil() { + x.Attributes = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Attributes), d) + } + } + case "Detected": + if r.TryDecodeAsNil() { + x.Detected = false + } else { + x.Detected = (bool)(r.DecodeBool()) + } + case "Healthy": + if r.TryDecodeAsNil() { + x.Healthy = false + } else { + x.Healthy = (bool)(r.DecodeBool()) + } + case "HealthDescription": + if r.TryDecodeAsNil() { + x.HealthDescription = "" + } else { + x.HealthDescription = (string)(r.DecodeString()) + } + case "UpdateTime": + if r.TryDecodeAsNil() { + x.UpdateTime = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.UpdateTime = r.DecodeTime() + } else if yyxt10 := z.Extension(z.I2Rtid(x.UpdateTime)); yyxt10 != nil { + z.DecExtension(x.UpdateTime, yyxt10) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.UpdateTime) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.UpdateTime) + } else { + z.DecFallback(&x.UpdateTime, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DriverInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Attributes = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Attributes), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Detected = false + } else { + x.Detected = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Healthy = false + } else { + x.Healthy = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HealthDescription = "" + } else { + x.HealthDescription = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.UpdateTime = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.UpdateTime = r.DecodeTime() + } else if yyxt18 := z.Extension(z.I2Rtid(x.UpdateTime)); yyxt18 != nil { + z.DecExtension(x.UpdateTime, yyxt18) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.UpdateTime) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.UpdateTime) + } else { + z.DecFallback(&x.UpdateTime, false) + } + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *ScheduleStateApplyRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(16) + } else { + r.WriteMapStart(16) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.EncExtension(x.MaxQueryTime, yyxt13) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { + z.EncExtension(x.MaxQueryTime, yyxt14) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.ScheduleState.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ScheduleState\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ScheduleState`) + } + r.WriteMapElemValue() + x.ScheduleState.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ScheduleStateApplyRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ScheduleStateApplyRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { + z.DecExtension(x.MaxQueryTime, yyxt8) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "TaskName": + if r.TryDecodeAsNil() { + x.TaskName = "" + } else { + x.TaskName = (string)(r.DecodeString()) + } + case "ScheduleState": + if r.TryDecodeAsNil() { + x.ScheduleState = "" + } else { + x.ScheduleState.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ScheduleStateApplyRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj21 int + var yyb21 bool + var yyhl21 bool = l >= 0 + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { + z.DecExtension(x.MaxQueryTime, yyxt26) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskName = "" + } else { + x.TaskName = (string)(r.DecodeString()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ScheduleState = "" + } else { + x.ScheduleState.CodecDecodeSelf(d) + } + for { + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj21-1, "") + } + r.ReadArrayEnd() +} + +func (x *ScheduleStateReadRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(15) + } else { + r.WriteMapStart(15) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.EncExtension(x.MaxQueryTime, yyxt13) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { + z.EncExtension(x.MaxQueryTime, yyxt14) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ScheduleStateReadRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ScheduleStateReadRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { + z.DecExtension(x.MaxQueryTime, yyxt8) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "TaskName": + if r.TryDecodeAsNil() { + x.TaskName = "" + } else { + x.TaskName = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ScheduleStateReadRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj20 int + var yyb20 bool + var yyhl20 bool = l >= 0 + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt25 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt25 != nil { + z.DecExtension(x.MaxQueryTime, yyxt25) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskName = "" + } else { + x.TaskName = (string)(r.DecodeString()) + } + for { + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj20-1, "") + } + r.ReadArrayEnd() +} + +func (x *ScheduleStateResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.ScheduleState.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ScheduleState\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ScheduleState`) + } + r.WriteMapElemValue() + x.ScheduleState.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ScheduleStateResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ScheduleStateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ScheduleState": + if r.TryDecodeAsNil() { + x.ScheduleState = "" + } else { + x.ScheduleState.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ScheduleStateResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ScheduleState = "" + } else { + x.ScheduleState.CodecDecodeSelf(d) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeMetaApplyRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(14) + } else { + r.WriteMapStart(14) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.EncExtension(x.MaxQueryTime, yyxt13) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { + z.EncExtension(x.MaxQueryTime, yyxt14) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtostring((map[string]*string)(x.Meta), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Meta\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) + } + r.WriteMapElemValue() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtostring((map[string]*string)(x.Meta), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeMetaApplyRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeMetaApplyRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { + z.DecExtension(x.MaxQueryTime, yyxt8) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "Meta": + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringPtrtostring((*map[string]*string)(&x.Meta), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeMetaApplyRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj20 int + var yyb20 bool + var yyhl20 bool = l >= 0 + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt25 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt25 != nil { + z.DecExtension(x.MaxQueryTime, yyxt25) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringPtrtostring((*map[string]*string)(&x.Meta), d) + } + } + for { + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj20-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeMetaResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Meta), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Meta\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) + } + r.WriteMapElemValue() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Meta), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Dynamic == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtostring((map[string]*string)(x.Dynamic), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Dynamic\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Dynamic`) + } + r.WriteMapElemValue() + if x.Dynamic == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtostring((map[string]*string)(x.Dynamic), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Static == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Static), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Static\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Static`) + } + r.WriteMapElemValue() + if x.Static == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Static), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeMetaResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeMetaResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Meta": + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Meta), d) + } + } + case "Dynamic": + if r.TryDecodeAsNil() { + x.Dynamic = nil + } else { + if false { + } else { + h.decMapstringPtrtostring((*map[string]*string)(&x.Dynamic), d) + } + } + case "Static": + if r.TryDecodeAsNil() { + x.Static = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Static), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeMetaResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Meta), d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Dynamic = nil + } else { + if false { + } else { + h.decMapstringPtrtostring((*map[string]*string)(&x.Dynamic), d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Static = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Static), d) + } + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodePool) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Description\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Description`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Meta), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Meta\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) + } + r.WriteMapElemValue() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Meta), e) + } + } + } + var yyn12 bool + if x.SchedulerConfiguration == nil { + yyn12 = true + goto LABEL12 + } + LABEL12: + if yyr2 || yy2arr2 { + if yyn12 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.SchedulerConfiguration == nil { + r.EncodeNil() + } else { + x.SchedulerConfiguration.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SchedulerConfiguration\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SchedulerConfiguration`) + } + r.WriteMapElemValue() + if yyn12 { + r.EncodeNil() + } else { + if x.SchedulerConfiguration == nil { + r.EncodeNil() + } else { + x.SchedulerConfiguration.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Hash\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Hash`) + } + r.WriteMapElemValue() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodePool) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodePool) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Description": + if r.TryDecodeAsNil() { + x.Description = "" + } else { + x.Description = (string)(r.DecodeString()) + } + case "Meta": + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Meta), d) + } + } + case "SchedulerConfiguration": + if r.TryDecodeAsNil() { + if true && x.SchedulerConfiguration != nil { + x.SchedulerConfiguration = nil + } + } else { + if x.SchedulerConfiguration == nil { + x.SchedulerConfiguration = new(NodePoolSchedulerConfiguration) + } + + x.SchedulerConfiguration.CodecDecodeSelf(d) + } + case "Hash": + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodePool) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Description = "" + } else { + x.Description = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Meta), d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.SchedulerConfiguration != nil { + x.SchedulerConfiguration = nil + } + } else { + if x.SchedulerConfiguration == nil { + x.SchedulerConfiguration = new(NodePoolSchedulerConfiguration) + } + + x.SchedulerConfiguration.CodecDecodeSelf(d) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodePoolSchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.SchedulerAlgorithm.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SchedulerAlgorithm\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SchedulerAlgorithm`) + } + r.WriteMapElemValue() + x.SchedulerAlgorithm.CodecEncodeSelf(e) + } + var yyn6 bool + if x.MemoryOversubscriptionEnabled == nil { + yyn6 = true + goto LABEL6 + } + LABEL6: + if yyr2 || yy2arr2 { + if yyn6 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.MemoryOversubscriptionEnabled == nil { + r.EncodeNil() + } else { + yy7 := *x.MemoryOversubscriptionEnabled + if false { + } else { + r.EncodeBool(bool(yy7)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MemoryOversubscriptionEnabled\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MemoryOversubscriptionEnabled`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.MemoryOversubscriptionEnabled == nil { + r.EncodeNil() + } else { + yy9 := *x.MemoryOversubscriptionEnabled + if false { + } else { + r.EncodeBool(bool(yy9)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodePoolSchedulerConfiguration) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodePoolSchedulerConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "SchedulerAlgorithm": + if r.TryDecodeAsNil() { + x.SchedulerAlgorithm = "" + } else { + x.SchedulerAlgorithm.CodecDecodeSelf(d) + } + case "MemoryOversubscriptionEnabled": + if r.TryDecodeAsNil() { + if true && x.MemoryOversubscriptionEnabled != nil { + x.MemoryOversubscriptionEnabled = nil + } + } else { + if x.MemoryOversubscriptionEnabled == nil { + x.MemoryOversubscriptionEnabled = new(bool) + } + + if false { + } else { + *x.MemoryOversubscriptionEnabled = (bool)(r.DecodeBool()) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodePoolSchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SchedulerAlgorithm = "" + } else { + x.SchedulerAlgorithm.CodecDecodeSelf(d) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.MemoryOversubscriptionEnabled != nil { + x.MemoryOversubscriptionEnabled = nil + } + } else { + if x.MemoryOversubscriptionEnabled == nil { + x.MemoryOversubscriptionEnabled = new(bool) + } + + if false { + } else { + *x.MemoryOversubscriptionEnabled = (bool)(r.DecodeBool()) + } + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodePoolListRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(12) + } else { + r.WriteMapStart(12) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.EncExtension(x.MaxQueryTime, yyxt13) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { + z.EncExtension(x.MaxQueryTime, yyxt14) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodePoolListRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodePoolListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { + z.DecExtension(x.MaxQueryTime, yyxt8) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodePoolListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { + z.DecExtension(x.MaxQueryTime, yyxt22) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodePoolListResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.NodePools == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodePool(([]*NodePool)(x.NodePools), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodePools\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodePools`) + } + r.WriteMapElemValue() + if x.NodePools == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodePool(([]*NodePool)(x.NodePools), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodePoolListResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodePoolListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodePools": + if r.TryDecodeAsNil() { + x.NodePools = nil + } else { + if false { + } else { + h.decSlicePtrtoNodePool((*[]*NodePool)(&x.NodePools), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodePoolListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodePools = nil + } else { + if false { + } else { + h.decSlicePtrtoNodePool((*[]*NodePool)(&x.NodePools), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodePoolSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodePoolSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodePoolSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodePoolSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt24 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt24 != nil { + z.DecExtension(x.MaxQueryTime, yyxt24) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *SingleNodePoolResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + var yyn3 bool + if x.NodePool == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.NodePool == nil { + r.EncodeNil() + } else { + x.NodePool.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodePool\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodePool`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.NodePool == nil { + r.EncodeNil() + } else { + x.NodePool.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SingleNodePoolResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SingleNodePoolResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodePool": + if r.TryDecodeAsNil() { + if true && x.NodePool != nil { + x.NodePool = nil + } + } else { + if x.NodePool == nil { + x.NodePool = new(NodePool) + } + + x.NodePool.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SingleNodePoolResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.NodePool != nil { + x.NodePool = nil + } + } else { + if x.NodePool == nil { + x.NodePool = new(NodePool) + } + + x.NodePool.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.DecExtension(x.LastContact, yyxt14) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodePoolUpsertRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.NodePools == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodePool(([]*NodePool)(x.NodePools), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodePools\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodePools`) + } + r.WriteMapElemValue() + if x.NodePools == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodePool(([]*NodePool)(x.NodePools), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodePoolUpsertRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodePoolUpsertRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodePools": + if r.TryDecodeAsNil() { + x.NodePools = nil + } else { + if false { + } else { + h.decSlicePtrtoNodePool((*[]*NodePool)(&x.NodePools), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodePoolUpsertRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodePools = nil + } else { + if false { + } else { + h.decSlicePtrtoNodePool((*[]*NodePool)(&x.NodePools), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodePoolDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Names == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Names), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Names\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Names`) + } + r.WriteMapElemValue() + if x.Names == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Names), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodePoolDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodePoolDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Names": + if r.TryDecodeAsNil() { + x.Names = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Names), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodePoolDeleteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Names = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Names), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodePoolNodesRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(14) + } else { + r.WriteMapStart(14) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + var yyn6 bool + if x.Fields == nil { + yyn6 = true + goto LABEL6 + } + LABEL6: + if yyr2 || yy2arr2 { + if yyn6 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Fields == nil { + r.EncodeNil() + } else { + x.Fields.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Fields\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Fields`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.Fields == nil { + r.EncodeNil() + } else { + x.Fields.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { + z.EncExtension(x.MaxQueryTime, yyxt19) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.EncExtension(x.MaxQueryTime, yyxt20) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodePoolNodesRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodePoolNodesRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Fields": + if r.TryDecodeAsNil() { + if true && x.Fields != nil { + x.Fields = nil + } + } else { + if x.Fields == nil { + x.Fields = new(NodeStubFields) + } + + x.Fields.CodecDecodeSelf(d) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodePoolNodesRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj19 int + var yyb19 bool + var yyhl19 bool = l >= 0 + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Fields != nil { + x.Fields = nil + } + } else { + if x.Fields == nil { + x.Fields = new(NodeStubFields) + } + + x.Fields.CodecDecodeSelf(d) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { + z.DecExtension(x.MaxQueryTime, yyxt26) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj19-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodePoolNodesResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Nodes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeListStub(([]*NodeListStub)(x.Nodes), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Nodes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Nodes`) + } + r.WriteMapElemValue() + if x.Nodes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeListStub(([]*NodeListStub)(x.Nodes), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodePoolNodesResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodePoolNodesResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Nodes": + if r.TryDecodeAsNil() { + x.Nodes = nil + } else { + if false { + } else { + h.decSlicePtrtoNodeListStub((*[]*NodeListStub)(&x.Nodes), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodePoolNodesResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Nodes = nil + } else { + if false { + } else { + h.decSlicePtrtoNodeListStub((*[]*NodeListStub)(&x.Nodes), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodePoolJobsRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(14) + } else { + r.WriteMapStart(14) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + var yyn6 bool + if x.Fields == nil { + yyn6 = true + goto LABEL6 + } + LABEL6: + if yyr2 || yy2arr2 { + if yyn6 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Fields == nil { + r.EncodeNil() + } else { + x.Fields.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Fields\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Fields`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.Fields == nil { + r.EncodeNil() + } else { + x.Fields.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { + z.EncExtension(x.MaxQueryTime, yyxt19) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.EncExtension(x.MaxQueryTime, yyxt20) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodePoolJobsRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodePoolJobsRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Fields": + if r.TryDecodeAsNil() { + if true && x.Fields != nil { + x.Fields = nil + } + } else { + if x.Fields == nil { + x.Fields = new(JobStubFields) + } + + x.Fields.CodecDecodeSelf(d) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodePoolJobsRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj19 int + var yyb19 bool + var yyhl19 bool = l >= 0 + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Fields != nil { + x.Fields = nil + } + } else { + if x.Fields == nil { + x.Fields = new(JobStubFields) + } + + x.Fields.CodecDecodeSelf(d) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { + z.DecExtension(x.MaxQueryTime, yyxt26) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj19-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodePoolJobsResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Jobs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoJobListStub(([]*JobListStub)(x.Jobs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Jobs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Jobs`) + } + r.WriteMapElemValue() + if x.Jobs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoJobListStub(([]*JobListStub)(x.Jobs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodePoolJobsResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodePoolJobsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Jobs": + if r.TryDecodeAsNil() { + x.Jobs = nil + } else { + if false { + } else { + h.decSlicePtrtoJobListStub((*[]*JobListStub)(&x.Jobs), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodePoolJobsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Jobs = nil + } else { + if false { + } else { + h.decSlicePtrtoJobListStub((*[]*JobListStub)(&x.Jobs), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *NUMA) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Affinity))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Affinity)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Affinity\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Affinity`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Affinity))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Affinity)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Devices == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Devices), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Devices\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Devices`) + } + r.WriteMapElemValue() + if x.Devices == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Devices), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NUMA) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NUMA) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Affinity": + if r.TryDecodeAsNil() { + x.Affinity = "" + } else { + x.Affinity = (string)(r.DecodeString()) + } + case "Devices": + if r.TryDecodeAsNil() { + x.Devices = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Devices), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NUMA) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Affinity = "" + } else { + x.Affinity = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Devices = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Devices), d) + } + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *LegacyNodeCpuResources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CpuShares)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CpuShares\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CpuShares`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CpuShares)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.TotalCpuCores)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TotalCpuCores\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TotalCpuCores`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.TotalCpuCores)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ReservableCpuCores == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceuint16(([]uint16)(x.ReservableCpuCores), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ReservableCpuCores\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ReservableCpuCores`) + } + r.WriteMapElemValue() + if x.ReservableCpuCores == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceuint16(([]uint16)(x.ReservableCpuCores), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *LegacyNodeCpuResources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *LegacyNodeCpuResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "CpuShares": + if r.TryDecodeAsNil() { + x.CpuShares = 0 + } else { + x.CpuShares = (int64)(r.DecodeInt64()) + } + case "TotalCpuCores": + if r.TryDecodeAsNil() { + x.TotalCpuCores = 0 + } else { + x.TotalCpuCores = (uint16)(z.C.UintV(r.DecodeUint64(), 16)) + } + case "ReservableCpuCores": + if r.TryDecodeAsNil() { + x.ReservableCpuCores = nil + } else { + if false { + } else { + h.decSliceuint16((*[]uint16)(&x.ReservableCpuCores), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *LegacyNodeCpuResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CpuShares = 0 + } else { + x.CpuShares = (int64)(r.DecodeInt64()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TotalCpuCores = 0 + } else { + x.TotalCpuCores = (uint16)(z.C.UintV(r.DecodeUint64(), 16)) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ReservableCpuCores = nil + } else { + if false { + } else { + h.decSliceuint16((*[]uint16)(&x.ReservableCpuCores), d) + } + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeProcessorResources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + var yyn3 bool + if x.Topology == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Topology == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt4 := z.Extension(z.I2Rtid(x.Topology)); yyxt4 != nil { + z.EncExtension(x.Topology, yyxt4) + } else { + z.EncFallback(x.Topology) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Topology\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Topology`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Topology == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.Topology)); yyxt5 != nil { + z.EncExtension(x.Topology, yyxt5) + } else { + z.EncFallback(x.Topology) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeProcessorResources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeProcessorResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Topology": + if r.TryDecodeAsNil() { + if true && x.Topology != nil { + x.Topology = nil + } + } else { + if x.Topology == nil { + x.Topology = new(pkg4_numalib.Topology) + } + + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.Topology)); yyxt5 != nil { + z.DecExtension(x.Topology, yyxt5) + } else { + z.DecFallback(x.Topology, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeProcessorResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Topology != nil { + x.Topology = nil + } + } else { + if x.Topology == nil { + x.Topology = new(pkg4_numalib.Topology) + } + + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.Topology)); yyxt8 != nil { + z.DecExtension(x.Topology, yyxt8) + } else { + z.DecFallback(x.Topology, false) + } + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *RaftServer) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt4 := z.Extension(z.I2Rtid(x.ID)); yyxt4 != nil { + z.EncExtension(x.ID, yyxt4) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.ID)); yyxt5 != nil { + z.EncExtension(x.ID, yyxt5) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Node))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Node)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Node\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Node`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Node))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Node)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.Address)); yyxt10 != nil { + z.EncExtension(x.Address, yyxt10) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Address\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Address`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.Address)); yyxt11 != nil { + z.EncExtension(x.Address, yyxt11) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Leader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Leader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Leader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Leader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Voter)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Voter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Voter`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Voter)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RaftProtocol))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RaftProtocol)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RaftProtocol\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RaftProtocol`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RaftProtocol))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RaftProtocol)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *RaftServer) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *RaftServer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.ID)); yyxt5 != nil { + z.DecExtension(x.ID, yyxt5) + } else { + x.ID = (pkg10_raft.ServerID)(r.DecodeString()) + } + } + case "Node": + if r.TryDecodeAsNil() { + x.Node = "" + } else { + x.Node = (string)(r.DecodeString()) + } + case "Address": + if r.TryDecodeAsNil() { + x.Address = "" + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.Address)); yyxt8 != nil { + z.DecExtension(x.Address, yyxt8) + } else { + x.Address = (pkg10_raft.ServerAddress)(r.DecodeString()) + } + } + case "Leader": + if r.TryDecodeAsNil() { + x.Leader = false + } else { + x.Leader = (bool)(r.DecodeBool()) + } + case "Voter": + if r.TryDecodeAsNil() { + x.Voter = false + } else { + x.Voter = (bool)(r.DecodeBool()) + } + case "RaftProtocol": + if r.TryDecodeAsNil() { + x.RaftProtocol = "" + } else { + x.RaftProtocol = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *RaftServer) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.ID)); yyxt14 != nil { + z.DecExtension(x.ID, yyxt14) + } else { + x.ID = (pkg10_raft.ServerID)(r.DecodeString()) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Node = "" + } else { + x.Node = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Address = "" + } else { + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.Address)); yyxt17 != nil { + z.DecExtension(x.Address, yyxt17) + } else { + x.Address = (pkg10_raft.ServerAddress)(r.DecodeString()) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Leader = false + } else { + x.Leader = (bool)(r.DecodeBool()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Voter = false + } else { + x.Voter = (bool)(r.DecodeBool()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RaftProtocol = "" + } else { + x.RaftProtocol = (string)(r.DecodeString()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *RaftConfigurationResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Servers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoRaftServer(([]*RaftServer)(x.Servers), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Servers\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Servers`) + } + r.WriteMapElemValue() + if x.Servers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoRaftServer(([]*RaftServer)(x.Servers), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *RaftConfigurationResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *RaftConfigurationResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Servers": + if r.TryDecodeAsNil() { + x.Servers = nil + } else { + if false { + } else { + h.decSlicePtrtoRaftServer((*[]*RaftServer)(&x.Servers), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *RaftConfigurationResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Servers = nil + } else { + if false { + } else { + h.decSlicePtrtoRaftServer((*[]*RaftServer)(&x.Servers), d) + } + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *RaftPeerByAddressRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt4 := z.Extension(z.I2Rtid(x.Address)); yyxt4 != nil { + z.EncExtension(x.Address, yyxt4) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Address\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Address`) + } + r.WriteMapElemValue() + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.Address)); yyxt5 != nil { + z.EncExtension(x.Address, yyxt5) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *RaftPeerByAddressRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *RaftPeerByAddressRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Address": + if r.TryDecodeAsNil() { + x.Address = "" + } else { + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.Address)); yyxt5 != nil { + z.DecExtension(x.Address, yyxt5) + } else { + x.Address = (pkg10_raft.ServerAddress)(r.DecodeString()) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *RaftPeerByAddressRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Address = "" + } else { + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.Address)); yyxt13 != nil { + z.DecExtension(x.Address, yyxt13) + } else { + x.Address = (pkg10_raft.ServerAddress)(r.DecodeString()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *RaftPeerByIDRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt4 := z.Extension(z.I2Rtid(x.ID)); yyxt4 != nil { + z.EncExtension(x.ID, yyxt4) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.ID)); yyxt5 != nil { + z.EncExtension(x.ID, yyxt5) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *RaftPeerByIDRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *RaftPeerByIDRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.ID)); yyxt5 != nil { + z.DecExtension(x.ID, yyxt5) + } else { + x.ID = (pkg10_raft.ServerID)(r.DecodeString()) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *RaftPeerByIDRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.ID)); yyxt13 != nil { + z.DecExtension(x.ID, yyxt13) + } else { + x.ID = (pkg10_raft.ServerID)(r.DecodeString()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *RaftPeerRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt4 := z.Extension(z.I2Rtid(x.Address)); yyxt4 != nil { + z.EncExtension(x.Address, yyxt4) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Address\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Address`) + } + r.WriteMapElemValue() + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.Address)); yyxt5 != nil { + z.EncExtension(x.Address, yyxt5) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.ID)); yyxt7 != nil { + z.EncExtension(x.ID, yyxt7) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.ID)); yyxt8 != nil { + z.EncExtension(x.ID, yyxt8) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *RaftPeerRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *RaftPeerRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Address": + if r.TryDecodeAsNil() { + x.RaftIDAddress.Address = "" + } else { + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.Address)); yyxt5 != nil { + z.DecExtension(x.Address, yyxt5) + } else { + x.Address = (pkg10_raft.ServerAddress)(r.DecodeString()) + } + } + case "ID": + if r.TryDecodeAsNil() { + x.RaftIDAddress.ID = "" + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.ID)); yyxt7 != nil { + z.DecExtension(x.ID, yyxt7) + } else { + x.ID = (pkg10_raft.ServerID)(r.DecodeString()) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *RaftPeerRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RaftIDAddress.Address = "" + } else { + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.Address)); yyxt15 != nil { + z.DecExtension(x.Address, yyxt15) + } else { + x.Address = (pkg10_raft.ServerAddress)(r.DecodeString()) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RaftIDAddress.ID = "" + } else { + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.ID)); yyxt17 != nil { + z.DecExtension(x.ID, yyxt17) + } else { + x.ID = (pkg10_raft.ServerID)(r.DecodeString()) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *LeadershipTransferResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy4 := &x.From + yy4.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"From\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `From`) + } + r.WriteMapElemValue() + yy6 := &x.From + yy6.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy9 := &x.To + yy9.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"To\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `To`) + } + r.WriteMapElemValue() + yy11 := &x.To + yy11.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Noop)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Noop\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Noop`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Noop)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Err == nil { + r.EncodeNil() + } else { + if false { + } else { + z.EncFallback(x.Err) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Err\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Err`) + } + r.WriteMapElemValue() + if x.Err == nil { + r.EncodeNil() + } else { + if false { + } else { + z.EncFallback(x.Err) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *LeadershipTransferResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *LeadershipTransferResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "From": + if r.TryDecodeAsNil() { + x.From = RaftIDAddress{} + } else { + x.From.CodecDecodeSelf(d) + } + case "To": + if r.TryDecodeAsNil() { + x.To = RaftIDAddress{} + } else { + x.To.CodecDecodeSelf(d) + } + case "Noop": + if r.TryDecodeAsNil() { + x.Noop = false + } else { + x.Noop = (bool)(r.DecodeBool()) + } + case "Err": + if r.TryDecodeAsNil() { + x.Err = nil + } else { + if false { + } else { + z.DecFallback(&x.Err, true) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *LeadershipTransferResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.From = RaftIDAddress{} + } else { + x.From.CodecDecodeSelf(d) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.To = RaftIDAddress{} + } else { + x.To.CodecDecodeSelf(d) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Noop = false + } else { + x.Noop = (bool)(r.DecodeBool()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Err = nil + } else { + if false { + } else { + z.DecFallback(&x.Err, true) + } + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *RaftIDAddress) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt4 := z.Extension(z.I2Rtid(x.Address)); yyxt4 != nil { + z.EncExtension(x.Address, yyxt4) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Address\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Address`) + } + r.WriteMapElemValue() + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.Address)); yyxt5 != nil { + z.EncExtension(x.Address, yyxt5) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.ID)); yyxt7 != nil { + z.EncExtension(x.ID, yyxt7) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.ID)); yyxt8 != nil { + z.EncExtension(x.ID, yyxt8) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *RaftIDAddress) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *RaftIDAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Address": + if r.TryDecodeAsNil() { + x.Address = "" + } else { + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.Address)); yyxt5 != nil { + z.DecExtension(x.Address, yyxt5) + } else { + x.Address = (pkg10_raft.ServerAddress)(r.DecodeString()) + } + } + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.ID)); yyxt7 != nil { + z.DecExtension(x.ID, yyxt7) + } else { + x.ID = (pkg10_raft.ServerID)(r.DecodeString()) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *RaftIDAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Address = "" + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.Address)); yyxt10 != nil { + z.DecExtension(x.Address, yyxt10) + } else { + x.Address = (pkg10_raft.ServerAddress)(r.DecodeString()) + } + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + if false { + } else if yyxt12 := z.Extension(z.I2Rtid(x.ID)); yyxt12 != nil { + z.DecExtension(x.ID, yyxt12) + } else { + x.ID = (pkg10_raft.ServerID)(r.DecodeString()) + } + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *AutopilotSetConfigRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Datacenter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Datacenter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy7 := &x.Config + yy7.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Config\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Config`) + } + r.WriteMapElemValue() + yy9 := &x.Config + yy9.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.CAS)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CAS\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CAS`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.CAS)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AutopilotSetConfigRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AutopilotSetConfigRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Datacenter": + if r.TryDecodeAsNil() { + x.Datacenter = "" + } else { + x.Datacenter = (string)(r.DecodeString()) + } + case "Config": + if r.TryDecodeAsNil() { + x.Config = AutopilotConfig{} + } else { + x.Config.CodecDecodeSelf(d) + } + case "CAS": + if r.TryDecodeAsNil() { + x.CAS = false + } else { + x.CAS = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AutopilotSetConfigRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Datacenter = "" + } else { + x.Datacenter = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Config = AutopilotConfig{} + } else { + x.Config.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CAS = false + } else { + x.CAS = (bool)(r.DecodeBool()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *AutopilotConfig) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(10) + } else { + r.WriteMapStart(10) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.CleanupDeadServers)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CleanupDeadServers\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CleanupDeadServers`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.CleanupDeadServers)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.ServerStabilizationTime)); yyxt7 != nil { + z.EncExtension(x.ServerStabilizationTime, yyxt7) + } else { + r.EncodeInt(int64(x.ServerStabilizationTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ServerStabilizationTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ServerStabilizationTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.ServerStabilizationTime)); yyxt8 != nil { + z.EncExtension(x.ServerStabilizationTime, yyxt8) + } else { + r.EncodeInt(int64(x.ServerStabilizationTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContactThreshold)); yyxt10 != nil { + z.EncExtension(x.LastContactThreshold, yyxt10) + } else { + r.EncodeInt(int64(x.LastContactThreshold)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContactThreshold\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContactThreshold`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContactThreshold)); yyxt11 != nil { + z.EncExtension(x.LastContactThreshold, yyxt11) + } else { + r.EncodeInt(int64(x.LastContactThreshold)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MaxTrailingLogs)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxTrailingLogs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxTrailingLogs`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MaxTrailingLogs)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQuorum)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQuorum\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQuorum`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQuorum)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.EnableRedundancyZones)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EnableRedundancyZones\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EnableRedundancyZones`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.EnableRedundancyZones)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.DisableUpgradeMigration)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DisableUpgradeMigration\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DisableUpgradeMigration`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.DisableUpgradeMigration)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.EnableCustomUpgrades)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EnableCustomUpgrades\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EnableCustomUpgrades`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.EnableCustomUpgrades)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AutopilotConfig) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AutopilotConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "CleanupDeadServers": + if r.TryDecodeAsNil() { + x.CleanupDeadServers = false + } else { + x.CleanupDeadServers = (bool)(r.DecodeBool()) + } + case "ServerStabilizationTime": + if r.TryDecodeAsNil() { + x.ServerStabilizationTime = 0 + } else { + if false { + } else if yyxt6 := z.Extension(z.I2Rtid(x.ServerStabilizationTime)); yyxt6 != nil { + z.DecExtension(x.ServerStabilizationTime, yyxt6) + } else { + x.ServerStabilizationTime = (time.Duration)(r.DecodeInt64()) + } + } + case "LastContactThreshold": + if r.TryDecodeAsNil() { + x.LastContactThreshold = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContactThreshold)); yyxt8 != nil { + z.DecExtension(x.LastContactThreshold, yyxt8) + } else { + x.LastContactThreshold = (time.Duration)(r.DecodeInt64()) + } + } + case "MaxTrailingLogs": + if r.TryDecodeAsNil() { + x.MaxTrailingLogs = 0 + } else { + x.MaxTrailingLogs = (uint64)(r.DecodeUint64()) + } + case "MinQuorum": + if r.TryDecodeAsNil() { + x.MinQuorum = 0 + } else { + x.MinQuorum = (uint)(z.C.UintV(r.DecodeUint64(), codecSelferBitsize100)) + } + case "EnableRedundancyZones": + if r.TryDecodeAsNil() { + x.EnableRedundancyZones = false + } else { + x.EnableRedundancyZones = (bool)(r.DecodeBool()) + } + case "DisableUpgradeMigration": + if r.TryDecodeAsNil() { + x.DisableUpgradeMigration = false + } else { + x.DisableUpgradeMigration = (bool)(r.DecodeBool()) + } + case "EnableCustomUpgrades": + if r.TryDecodeAsNil() { + x.EnableCustomUpgrades = false + } else { + x.EnableCustomUpgrades = (bool)(r.DecodeBool()) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AutopilotConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj16 int + var yyb16 bool + var yyhl16 bool = l >= 0 + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CleanupDeadServers = false + } else { + x.CleanupDeadServers = (bool)(r.DecodeBool()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ServerStabilizationTime = 0 + } else { + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.ServerStabilizationTime)); yyxt19 != nil { + z.DecExtension(x.ServerStabilizationTime, yyxt19) + } else { + x.ServerStabilizationTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LastContactThreshold = 0 + } else { + if false { + } else if yyxt21 := z.Extension(z.I2Rtid(x.LastContactThreshold)); yyxt21 != nil { + z.DecExtension(x.LastContactThreshold, yyxt21) + } else { + x.LastContactThreshold = (time.Duration)(r.DecodeInt64()) + } + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MaxTrailingLogs = 0 + } else { + x.MaxTrailingLogs = (uint64)(r.DecodeUint64()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MinQuorum = 0 + } else { + x.MinQuorum = (uint)(z.C.UintV(r.DecodeUint64(), codecSelferBitsize100)) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EnableRedundancyZones = false + } else { + x.EnableRedundancyZones = (bool)(r.DecodeBool()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DisableUpgradeMigration = false + } else { + x.DisableUpgradeMigration = (bool)(r.DecodeBool()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EnableCustomUpgrades = false + } else { + x.EnableCustomUpgrades = (bool)(r.DecodeBool()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj16-1, "") + } + r.ReadArrayEnd() +} + +func (x SchedulerAlgorithm) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) + } + } +} + +func (x *SchedulerAlgorithm) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (SchedulerAlgorithm)(r.DecodeString()) + } +} + +func (x *SchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.SchedulerAlgorithm.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SchedulerAlgorithm\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SchedulerAlgorithm`) + } + r.WriteMapElemValue() + x.SchedulerAlgorithm.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy7 := &x.PreemptionConfig + yy7.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PreemptionConfig\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptionConfig`) + } + r.WriteMapElemValue() + yy9 := &x.PreemptionConfig + yy9.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.MemoryOversubscriptionEnabled)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MemoryOversubscriptionEnabled\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MemoryOversubscriptionEnabled`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.MemoryOversubscriptionEnabled)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.RejectJobRegistration)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RejectJobRegistration\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RejectJobRegistration`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.RejectJobRegistration)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.PauseEvalBroker)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PauseEvalBroker\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PauseEvalBroker`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.PauseEvalBroker)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SchedulerConfiguration) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SchedulerConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "SchedulerAlgorithm": + if r.TryDecodeAsNil() { + x.SchedulerAlgorithm = "" + } else { + x.SchedulerAlgorithm.CodecDecodeSelf(d) + } + case "PreemptionConfig": + if r.TryDecodeAsNil() { + x.PreemptionConfig = PreemptionConfig{} + } else { + x.PreemptionConfig.CodecDecodeSelf(d) + } + case "MemoryOversubscriptionEnabled": + if r.TryDecodeAsNil() { + x.MemoryOversubscriptionEnabled = false + } else { + x.MemoryOversubscriptionEnabled = (bool)(r.DecodeBool()) + } + case "RejectJobRegistration": + if r.TryDecodeAsNil() { + x.RejectJobRegistration = false + } else { + x.RejectJobRegistration = (bool)(r.DecodeBool()) + } + case "PauseEvalBroker": + if r.TryDecodeAsNil() { + x.PauseEvalBroker = false + } else { + x.PauseEvalBroker = (bool)(r.DecodeBool()) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SchedulerAlgorithm = "" + } else { + x.SchedulerAlgorithm.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PreemptionConfig = PreemptionConfig{} + } else { + x.PreemptionConfig.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MemoryOversubscriptionEnabled = false + } else { + x.MemoryOversubscriptionEnabled = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RejectJobRegistration = false + } else { + x.RejectJobRegistration = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PauseEvalBroker = false + } else { + x.PauseEvalBroker = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *SchedulerConfigurationResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + var yyn3 bool + if x.SchedulerConfig == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.SchedulerConfig == nil { + r.EncodeNil() + } else { + x.SchedulerConfig.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SchedulerConfig\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SchedulerConfig`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.SchedulerConfig == nil { + r.EncodeNil() + } else { + x.SchedulerConfig.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SchedulerConfigurationResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SchedulerConfigurationResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "SchedulerConfig": + if r.TryDecodeAsNil() { + if true && x.SchedulerConfig != nil { + x.SchedulerConfig = nil + } + } else { + if x.SchedulerConfig == nil { + x.SchedulerConfig = new(SchedulerConfiguration) + } + + x.SchedulerConfig.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SchedulerConfigurationResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.SchedulerConfig != nil { + x.SchedulerConfig = nil + } + } else { + if x.SchedulerConfig == nil { + x.SchedulerConfig = new(SchedulerConfiguration) + } + + x.SchedulerConfig.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.DecExtension(x.LastContact, yyxt14) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *SchedulerSetConfigurationResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Updated)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Updated\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Updated`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Updated)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SchedulerSetConfigurationResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SchedulerSetConfigurationResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Updated": + if r.TryDecodeAsNil() { + x.Updated = false + } else { + x.Updated = (bool)(r.DecodeBool()) + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SchedulerSetConfigurationResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Updated = false + } else { + x.Updated = (bool)(r.DecodeBool()) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *PreemptionConfig) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.SystemSchedulerEnabled)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SystemSchedulerEnabled\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SystemSchedulerEnabled`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.SystemSchedulerEnabled)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.SysBatchSchedulerEnabled)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SysBatchSchedulerEnabled\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SysBatchSchedulerEnabled`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.SysBatchSchedulerEnabled)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.BatchSchedulerEnabled)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"BatchSchedulerEnabled\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `BatchSchedulerEnabled`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.BatchSchedulerEnabled)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.ServiceSchedulerEnabled)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ServiceSchedulerEnabled\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ServiceSchedulerEnabled`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.ServiceSchedulerEnabled)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *PreemptionConfig) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *PreemptionConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "SystemSchedulerEnabled": + if r.TryDecodeAsNil() { + x.SystemSchedulerEnabled = false + } else { + x.SystemSchedulerEnabled = (bool)(r.DecodeBool()) + } + case "SysBatchSchedulerEnabled": + if r.TryDecodeAsNil() { + x.SysBatchSchedulerEnabled = false + } else { + x.SysBatchSchedulerEnabled = (bool)(r.DecodeBool()) + } + case "BatchSchedulerEnabled": + if r.TryDecodeAsNil() { + x.BatchSchedulerEnabled = false + } else { + x.BatchSchedulerEnabled = (bool)(r.DecodeBool()) + } + case "ServiceSchedulerEnabled": + if r.TryDecodeAsNil() { + x.ServiceSchedulerEnabled = false + } else { + x.ServiceSchedulerEnabled = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *PreemptionConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SystemSchedulerEnabled = false + } else { + x.SystemSchedulerEnabled = (bool)(r.DecodeBool()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SysBatchSchedulerEnabled = false + } else { + x.SysBatchSchedulerEnabled = (bool)(r.DecodeBool()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.BatchSchedulerEnabled = false + } else { + x.BatchSchedulerEnabled = (bool)(r.DecodeBool()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ServiceSchedulerEnabled = false + } else { + x.ServiceSchedulerEnabled = (bool)(r.DecodeBool()) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *SchedulerSetConfigRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy4 := &x.Config + yy4.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Config\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Config`) + } + r.WriteMapElemValue() + yy6 := &x.Config + yy6.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.CAS)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CAS\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CAS`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.CAS)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SchedulerSetConfigRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SchedulerSetConfigRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Config": + if r.TryDecodeAsNil() { + x.Config = SchedulerConfiguration{} + } else { + x.Config.CodecDecodeSelf(d) + } + case "CAS": + if r.TryDecodeAsNil() { + x.CAS = false + } else { + x.CAS = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SchedulerSetConfigRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Config = SchedulerConfiguration{} + } else { + x.Config.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CAS = false + } else { + x.CAS = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *SnapshotSaveRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(12) + } else { + r.WriteMapStart(12) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.EncExtension(x.MaxQueryTime, yyxt13) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { + z.EncExtension(x.MaxQueryTime, yyxt14) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SnapshotSaveRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SnapshotSaveRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { + z.DecExtension(x.MaxQueryTime, yyxt8) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SnapshotSaveRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { + z.DecExtension(x.MaxQueryTime, yyxt22) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } + r.ReadArrayEnd() +} + +func (x *SnapshotSaveResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyq2 = [7]bool{ // should field at this index be written? + true, // SnapshotChecksum + x.ErrorCode != 0, // ErrorCode + x.ErrorMsg != "", // ErrorMsg + true, // Index + true, // LastContact + true, // KnownLeader + true, // NextToken + } + _ = yyq2 + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + var yynn2 int + for _, b := range yyq2 { + if b { + yynn2++ + } + } + r.WriteMapStart(yynn2) + yynn2 = 0 + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SnapshotChecksum))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SnapshotChecksum)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SnapshotChecksum\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SnapshotChecksum`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SnapshotChecksum))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SnapshotChecksum)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[1] { + if false { + } else { + r.EncodeInt(int64(x.ErrorCode)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2[1] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ErrorCode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ErrorCode`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.ErrorCode)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[2] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ErrorMsg))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ErrorMsg)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[2] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ErrorMsg\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ErrorMsg`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ErrorMsg))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ErrorMsg)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.EncExtension(x.LastContact, yyxt16) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.LastContact)); yyxt17 != nil { + z.EncExtension(x.LastContact, yyxt17) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SnapshotSaveResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SnapshotSaveResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "SnapshotChecksum": + if r.TryDecodeAsNil() { + x.SnapshotChecksum = "" + } else { + x.SnapshotChecksum = (string)(r.DecodeString()) + } + case "ErrorCode": + if r.TryDecodeAsNil() { + x.ErrorCode = 0 + } else { + x.ErrorCode = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "ErrorMsg": + if r.TryDecodeAsNil() { + x.ErrorMsg = "" + } else { + x.ErrorMsg = (string)(r.DecodeString()) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.LastContact)); yyxt9 != nil { + z.DecExtension(x.LastContact, yyxt9) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SnapshotSaveResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SnapshotChecksum = "" + } else { + x.SnapshotChecksum = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ErrorCode = 0 + } else { + x.ErrorCode = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ErrorMsg = "" + } else { + x.ErrorMsg = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt18 := z.Extension(z.I2Rtid(x.LastContact)); yyxt18 != nil { + z.DecExtension(x.LastContact, yyxt18) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *SnapshotRestoreRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SnapshotRestoreRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SnapshotRestoreRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SnapshotRestoreRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *SnapshotRestoreResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyq2 = [6]bool{ // should field at this index be written? + x.ErrorCode != 0, // ErrorCode + x.ErrorMsg != "", // ErrorMsg + true, // Index + true, // LastContact + true, // KnownLeader + true, // NextToken + } + _ = yyq2 + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + var yynn2 int + for _, b := range yyq2 { + if b { + yynn2++ + } + } + r.WriteMapStart(yynn2) + yynn2 = 0 + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[0] { + if false { + } else { + r.EncodeInt(int64(x.ErrorCode)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2[0] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ErrorCode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ErrorCode`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.ErrorCode)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[1] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ErrorMsg))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ErrorMsg)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[1] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ErrorMsg\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ErrorMsg`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ErrorMsg))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ErrorMsg)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { + z.EncExtension(x.LastContact, yyxt13) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.EncExtension(x.LastContact, yyxt14) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SnapshotRestoreResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SnapshotRestoreResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ErrorCode": + if r.TryDecodeAsNil() { + x.ErrorCode = 0 + } else { + x.ErrorCode = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "ErrorMsg": + if r.TryDecodeAsNil() { + x.ErrorMsg = "" + } else { + x.ErrorMsg = (string)(r.DecodeString()) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SnapshotRestoreResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ErrorCode = 0 + } else { + x.ErrorCode = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ErrorMsg = "" + } else { + x.ErrorMsg = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *UpgradeCheckVaultWorkloadIdentityRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(12) + } else { + r.WriteMapStart(12) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.EncExtension(x.MaxQueryTime, yyxt13) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { + z.EncExtension(x.MaxQueryTime, yyxt14) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *UpgradeCheckVaultWorkloadIdentityRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *UpgradeCheckVaultWorkloadIdentityRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { + z.DecExtension(x.MaxQueryTime, yyxt8) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *UpgradeCheckVaultWorkloadIdentityRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { + z.DecExtension(x.MaxQueryTime, yyxt22) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } + r.ReadArrayEnd() +} + +func (x *UpgradeCheckVaultWorkloadIdentityResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.JobsWithoutVaultIdentity == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoJobListStub(([]*JobListStub)(x.JobsWithoutVaultIdentity), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobsWithoutVaultIdentity\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobsWithoutVaultIdentity`) + } + r.WriteMapElemValue() + if x.JobsWithoutVaultIdentity == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoJobListStub(([]*JobListStub)(x.JobsWithoutVaultIdentity), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.OutdatedNodes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeListStub(([]*NodeListStub)(x.OutdatedNodes), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"OutdatedNodes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `OutdatedNodes`) + } + r.WriteMapElemValue() + if x.OutdatedNodes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeListStub(([]*NodeListStub)(x.OutdatedNodes), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.VaultTokens == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoVaultAccessor(([]*VaultAccessor)(x.VaultTokens), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VaultTokens\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `VaultTokens`) + } + r.WriteMapElemValue() + if x.VaultTokens == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoVaultAccessor(([]*VaultAccessor)(x.VaultTokens), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.EncExtension(x.LastContact, yyxt16) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.LastContact)); yyxt17 != nil { + z.EncExtension(x.LastContact, yyxt17) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *UpgradeCheckVaultWorkloadIdentityResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *UpgradeCheckVaultWorkloadIdentityResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobsWithoutVaultIdentity": + if r.TryDecodeAsNil() { + x.JobsWithoutVaultIdentity = nil + } else { + if false { + } else { + h.decSlicePtrtoJobListStub((*[]*JobListStub)(&x.JobsWithoutVaultIdentity), d) + } + } + case "OutdatedNodes": + if r.TryDecodeAsNil() { + x.OutdatedNodes = nil + } else { + if false { + } else { + h.decSlicePtrtoNodeListStub((*[]*NodeListStub)(&x.OutdatedNodes), d) + } + } + case "VaultTokens": + if r.TryDecodeAsNil() { + x.VaultTokens = nil + } else { + if false { + } else { + h.decSlicePtrtoVaultAccessor((*[]*VaultAccessor)(&x.VaultTokens), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt12 := z.Extension(z.I2Rtid(x.LastContact)); yyxt12 != nil { + z.DecExtension(x.LastContact, yyxt12) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *UpgradeCheckVaultWorkloadIdentityResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj15 int + var yyb15 bool + var yyhl15 bool = l >= 0 + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobsWithoutVaultIdentity = nil + } else { + if false { + } else { + h.decSlicePtrtoJobListStub((*[]*JobListStub)(&x.JobsWithoutVaultIdentity), d) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.OutdatedNodes = nil + } else { + if false { + } else { + h.decSlicePtrtoNodeListStub((*[]*NodeListStub)(&x.OutdatedNodes), d) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VaultTokens = nil + } else { + if false { + } else { + h.decSlicePtrtoVaultAccessor((*[]*VaultAccessor)(&x.VaultTokens), d) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt24 := z.Extension(z.I2Rtid(x.LastContact)); yyxt24 != nil { + z.DecExtension(x.LastContact, yyxt24) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj15-1, "") + } + r.ReadArrayEnd() +} + +func (x Context) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) + } + } +} + +func (x *Context) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (Context)(r.DecodeString()) + } +} + +func (x *SearchConfig) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.FuzzyEnabled)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FuzzyEnabled\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `FuzzyEnabled`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.FuzzyEnabled)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.LimitQuery)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LimitQuery\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LimitQuery`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.LimitQuery)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.LimitResults)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LimitResults\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LimitResults`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.LimitResults)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.MinTermLength)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinTermLength\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinTermLength`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.MinTermLength)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SearchConfig) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SearchConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "FuzzyEnabled": + if r.TryDecodeAsNil() { + x.FuzzyEnabled = false + } else { + x.FuzzyEnabled = (bool)(r.DecodeBool()) + } + case "LimitQuery": + if r.TryDecodeAsNil() { + x.LimitQuery = 0 + } else { + x.LimitQuery = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "LimitResults": + if r.TryDecodeAsNil() { + x.LimitResults = 0 + } else { + x.LimitResults = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "MinTermLength": + if r.TryDecodeAsNil() { + x.MinTermLength = 0 + } else { + x.MinTermLength = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SearchConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.FuzzyEnabled = false + } else { + x.FuzzyEnabled = (bool)(r.DecodeBool()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LimitQuery = 0 + } else { + x.LimitQuery = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LimitResults = 0 + } else { + x.LimitResults = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MinTermLength = 0 + } else { + x.MinTermLength = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *SearchResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Matches == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapContextSlicestring((map[Context][]string)(x.Matches), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Matches\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Matches`) + } + r.WriteMapElemValue() + if x.Matches == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapContextSlicestring((map[Context][]string)(x.Matches), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Truncations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapContextbool((map[Context]bool)(x.Truncations), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Truncations\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Truncations`) + } + r.WriteMapElemValue() + if x.Truncations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapContextbool((map[Context]bool)(x.Truncations), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { + z.EncExtension(x.LastContact, yyxt13) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.EncExtension(x.LastContact, yyxt14) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SearchResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SearchResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Matches": + if r.TryDecodeAsNil() { + x.Matches = nil + } else { + if false { + } else { + h.decMapContextSlicestring((*map[Context][]string)(&x.Matches), d) + } + } + case "Truncations": + if r.TryDecodeAsNil() { + x.Truncations = nil + } else { + if false { + } else { + h.decMapContextbool((*map[Context]bool)(&x.Truncations), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.DecExtension(x.LastContact, yyxt10) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SearchResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Matches = nil + } else { + if false { + } else { + h.decMapContextSlicestring((*map[Context][]string)(&x.Matches), d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Truncations = nil + } else { + if false { + } else { + h.decMapContextbool((*map[Context]bool)(&x.Truncations), d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.LastContact)); yyxt20 != nil { + z.DecExtension(x.LastContact, yyxt20) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *SearchRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Context.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Context\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Context`) + } + r.WriteMapElemValue() + x.Context.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { + z.EncExtension(x.MaxQueryTime, yyxt19) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.EncExtension(x.MaxQueryTime, yyxt20) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SearchRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SearchRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Prefix": + if r.TryDecodeAsNil() { + x.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "Context": + if r.TryDecodeAsNil() { + x.Context = "" + } else { + x.Context.CodecDecodeSelf(d) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SearchRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Context = "" + } else { + x.Context.CodecDecodeSelf(d) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt25 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt25 != nil { + z.DecExtension(x.MaxQueryTime, yyxt25) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *FuzzyMatch) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Scope == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Scope), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Scope\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Scope`) + } + r.WriteMapElemValue() + if x.Scope == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Scope), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *FuzzyMatch) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *FuzzyMatch) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Scope": + if r.TryDecodeAsNil() { + x.Scope = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Scope), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *FuzzyMatch) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Scope = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Scope), d) + } + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *FuzzySearchResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Matches == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapContextSliceFuzzyMatch((map[Context][]FuzzyMatch)(x.Matches), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Matches\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Matches`) + } + r.WriteMapElemValue() + if x.Matches == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapContextSliceFuzzyMatch((map[Context][]FuzzyMatch)(x.Matches), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Truncations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapContextbool((map[Context]bool)(x.Truncations), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Truncations\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Truncations`) + } + r.WriteMapElemValue() + if x.Truncations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapContextbool((map[Context]bool)(x.Truncations), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { + z.EncExtension(x.LastContact, yyxt13) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.EncExtension(x.LastContact, yyxt14) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *FuzzySearchResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *FuzzySearchResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Matches": + if r.TryDecodeAsNil() { + x.Matches = nil + } else { + if false { + } else { + h.decMapContextSliceFuzzyMatch((*map[Context][]FuzzyMatch)(&x.Matches), d) + } + } + case "Truncations": + if r.TryDecodeAsNil() { + x.Truncations = nil + } else { + if false { + } else { + h.decMapContextbool((*map[Context]bool)(&x.Truncations), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.DecExtension(x.LastContact, yyxt10) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *FuzzySearchResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Matches = nil + } else { + if false { + } else { + h.decMapContextSliceFuzzyMatch((*map[Context][]FuzzyMatch)(&x.Matches), d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Truncations = nil + } else { + if false { + } else { + h.decMapContextbool((*map[Context]bool)(&x.Truncations), d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.LastContact)); yyxt20 != nil { + z.DecExtension(x.LastContact, yyxt20) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *FuzzySearchRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(14) + } else { + r.WriteMapStart(14) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Text))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Text)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Text\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Text`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Text))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Text)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Context.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Context\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Context`) + } + r.WriteMapElemValue() + x.Context.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { + z.EncExtension(x.MaxQueryTime, yyxt19) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.EncExtension(x.MaxQueryTime, yyxt20) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *FuzzySearchRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *FuzzySearchRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Text": + if r.TryDecodeAsNil() { + x.Text = "" + } else { + x.Text = (string)(r.DecodeString()) + } + case "Context": + if r.TryDecodeAsNil() { + x.Context = "" + } else { + x.Context.CodecDecodeSelf(d) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *FuzzySearchRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj19 int + var yyb19 bool + var yyhl19 bool = l >= 0 + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Text = "" + } else { + x.Text = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Context = "" + } else { + x.Context.CodecDecodeSelf(d) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { + z.DecExtension(x.MaxQueryTime, yyxt26) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj19-1, "") + } + r.ReadArrayEnd() +} + +func (x *SITokenAccessor) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ConsulNamespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ConsulNamespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ConsulNamespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ConsulNamespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ConsulNamespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ConsulNamespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AccessorID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AccessorID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SITokenAccessor) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SITokenAccessor) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ConsulNamespace": + if r.TryDecodeAsNil() { + x.ConsulNamespace = "" + } else { + x.ConsulNamespace = (string)(r.DecodeString()) + } + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "AccessorID": + if r.TryDecodeAsNil() { + x.AccessorID = "" + } else { + x.AccessorID = (string)(r.DecodeString()) + } + case "TaskName": + if r.TryDecodeAsNil() { + x.TaskName = "" + } else { + x.TaskName = (string)(r.DecodeString()) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SITokenAccessor) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ConsulNamespace = "" + } else { + x.ConsulNamespace = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AccessorID = "" + } else { + x.AccessorID = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskName = "" + } else { + x.TaskName = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *ServiceRegistration) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(12) + } else { + r.WriteMapStart(12) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ServiceName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServiceName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ServiceName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ServiceName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ServiceName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServiceName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Datacenter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Datacenter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Tags == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Tags), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Tags\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Tags`) + } + r.WriteMapElemValue() + if x.Tags == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Tags), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Address\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Address`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Port)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Port\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Port`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Port)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ServiceRegistration) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ServiceRegistration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "ServiceName": + if r.TryDecodeAsNil() { + x.ServiceName = "" + } else { + x.ServiceName = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "Datacenter": + if r.TryDecodeAsNil() { + x.Datacenter = "" + } else { + x.Datacenter = (string)(r.DecodeString()) + } + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "Tags": + if r.TryDecodeAsNil() { + x.Tags = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Tags), d) + } + } + case "Address": + if r.TryDecodeAsNil() { + x.Address = "" + } else { + x.Address = (string)(r.DecodeString()) + } + case "Port": + if r.TryDecodeAsNil() { + x.Port = 0 + } else { + x.Port = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ServiceRegistration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ServiceName = "" + } else { + x.ServiceName = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Datacenter = "" + } else { + x.Datacenter = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Tags = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Tags), d) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Address = "" + } else { + x.Address = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Port = 0 + } else { + x.Port = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } + r.ReadArrayEnd() +} + +func (x *ServiceRegistrationUpsertRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Services == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoServiceRegistration(([]*ServiceRegistration)(x.Services), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Services\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Services`) + } + r.WriteMapElemValue() + if x.Services == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoServiceRegistration(([]*ServiceRegistration)(x.Services), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ServiceRegistrationUpsertRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ServiceRegistrationUpsertRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Services": + if r.TryDecodeAsNil() { + x.Services = nil + } else { + if false { + } else { + h.decSlicePtrtoServiceRegistration((*[]*ServiceRegistration)(&x.Services), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ServiceRegistrationUpsertRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Services = nil + } else { + if false { + } else { + h.decSlicePtrtoServiceRegistration((*[]*ServiceRegistration)(&x.Services), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *ServiceRegistrationUpsertResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ServiceRegistrationUpsertResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ServiceRegistrationUpsertResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ServiceRegistrationUpsertResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *ServiceRegistrationDeleteByIDRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ServiceRegistrationDeleteByIDRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ServiceRegistrationDeleteByIDRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ServiceRegistrationDeleteByIDRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *ServiceRegistrationDeleteByIDResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ServiceRegistrationDeleteByIDResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ServiceRegistrationDeleteByIDResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ServiceRegistrationDeleteByIDResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *ServiceRegistrationDeleteByNodeIDRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ServiceRegistrationDeleteByNodeIDRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ServiceRegistrationDeleteByNodeIDRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ServiceRegistrationDeleteByNodeIDRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *ServiceRegistrationDeleteByNodeIDResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ServiceRegistrationDeleteByNodeIDResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ServiceRegistrationDeleteByNodeIDResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ServiceRegistrationDeleteByNodeIDResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *ServiceRegistrationListRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(12) + } else { + r.WriteMapStart(12) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.EncExtension(x.MaxQueryTime, yyxt13) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { + z.EncExtension(x.MaxQueryTime, yyxt14) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ServiceRegistrationListRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ServiceRegistrationListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { + z.DecExtension(x.MaxQueryTime, yyxt8) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ServiceRegistrationListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { + z.DecExtension(x.MaxQueryTime, yyxt22) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } + r.ReadArrayEnd() +} + +func (x *ServiceRegistrationListResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Services == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoServiceRegistrationListStub(([]*ServiceRegistrationListStub)(x.Services), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Services\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Services`) + } + r.WriteMapElemValue() + if x.Services == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoServiceRegistrationListStub(([]*ServiceRegistrationListStub)(x.Services), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ServiceRegistrationListResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ServiceRegistrationListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Services": + if r.TryDecodeAsNil() { + x.Services = nil + } else { + if false { + } else { + h.decSlicePtrtoServiceRegistrationListStub((*[]*ServiceRegistrationListStub)(&x.Services), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ServiceRegistrationListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Services = nil + } else { + if false { + } else { + h.decSlicePtrtoServiceRegistrationListStub((*[]*ServiceRegistrationListStub)(&x.Services), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *ServiceRegistrationListStub) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Services == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoServiceRegistrationStub(([]*ServiceRegistrationStub)(x.Services), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Services\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Services`) + } + r.WriteMapElemValue() + if x.Services == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoServiceRegistrationStub(([]*ServiceRegistrationStub)(x.Services), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ServiceRegistrationListStub) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ServiceRegistrationListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "Services": + if r.TryDecodeAsNil() { + x.Services = nil + } else { + if false { + } else { + h.decSlicePtrtoServiceRegistrationStub((*[]*ServiceRegistrationStub)(&x.Services), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ServiceRegistrationListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Services = nil + } else { + if false { + } else { + h.decSlicePtrtoServiceRegistrationStub((*[]*ServiceRegistrationStub)(&x.Services), d) + } + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *ServiceRegistrationStub) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ServiceName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServiceName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ServiceName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ServiceName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ServiceName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServiceName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Tags == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Tags), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Tags\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Tags`) + } + r.WriteMapElemValue() + if x.Tags == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Tags), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ServiceRegistrationStub) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ServiceRegistrationStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ServiceName": + if r.TryDecodeAsNil() { + x.ServiceName = "" + } else { + x.ServiceName = (string)(r.DecodeString()) + } + case "Tags": + if r.TryDecodeAsNil() { + x.Tags = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Tags), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ServiceRegistrationStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ServiceName = "" + } else { + x.ServiceName = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Tags = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Tags), d) + } + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *ServiceRegistrationByNameRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(14) + } else { + r.WriteMapStart(14) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ServiceName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServiceName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ServiceName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ServiceName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ServiceName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServiceName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Choose))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Choose)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Choose\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Choose`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Choose))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Choose)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { + z.EncExtension(x.MaxQueryTime, yyxt19) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.EncExtension(x.MaxQueryTime, yyxt20) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ServiceRegistrationByNameRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ServiceRegistrationByNameRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ServiceName": + if r.TryDecodeAsNil() { + x.ServiceName = "" + } else { + x.ServiceName = (string)(r.DecodeString()) + } + case "Choose": + if r.TryDecodeAsNil() { + x.Choose = "" + } else { + x.Choose = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ServiceRegistrationByNameRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj19 int + var yyb19 bool + var yyhl19 bool = l >= 0 + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ServiceName = "" + } else { + x.ServiceName = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Choose = "" + } else { + x.Choose = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { + z.DecExtension(x.MaxQueryTime, yyxt26) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj19-1, "") + } + r.ReadArrayEnd() +} + +func (x *ServiceRegistrationByNameResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Services == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoServiceRegistration(([]*ServiceRegistration)(x.Services), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Services\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Services`) + } + r.WriteMapElemValue() + if x.Services == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoServiceRegistration(([]*ServiceRegistration)(x.Services), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ServiceRegistrationByNameResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ServiceRegistrationByNameResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Services": + if r.TryDecodeAsNil() { + x.Services = nil + } else { + if false { + } else { + h.decSlicePtrtoServiceRegistration((*[]*ServiceRegistration)(&x.Services), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ServiceRegistrationByNameResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Services = nil + } else { + if false { + } else { + h.decSlicePtrtoServiceRegistration((*[]*ServiceRegistration)(&x.Services), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *ServiceCheck) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(26) + } else { + r.WriteMapStart(26) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Command))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Command)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Command\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Command`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Command))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Command)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Args == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Args), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Args\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Args`) + } + r.WriteMapElemValue() + if x.Args == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Args), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Path)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Path\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Path`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Path)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Protocol))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Protocol)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Protocol\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Protocol`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Protocol))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Protocol)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PortLabel))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PortLabel)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PortLabel\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PortLabel`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PortLabel))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PortLabel)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Expose)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Expose\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Expose`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Expose)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AddressMode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AddressMode)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AddressMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AddressMode`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AddressMode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AddressMode)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt31 := z.Extension(z.I2Rtid(x.Interval)); yyxt31 != nil { + z.EncExtension(x.Interval, yyxt31) + } else { + r.EncodeInt(int64(x.Interval)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Interval\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Interval`) + } + r.WriteMapElemValue() + if false { + } else if yyxt32 := z.Extension(z.I2Rtid(x.Interval)); yyxt32 != nil { + z.EncExtension(x.Interval, yyxt32) + } else { + r.EncodeInt(int64(x.Interval)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt34 := z.Extension(z.I2Rtid(x.Timeout)); yyxt34 != nil { + z.EncExtension(x.Timeout, yyxt34) + } else { + r.EncodeInt(int64(x.Timeout)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timeout\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Timeout`) + } + r.WriteMapElemValue() + if false { + } else if yyxt35 := z.Extension(z.I2Rtid(x.Timeout)); yyxt35 != nil { + z.EncExtension(x.Timeout, yyxt35) + } else { + r.EncodeInt(int64(x.Timeout)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.InitialStatus))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.InitialStatus)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"InitialStatus\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `InitialStatus`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.InitialStatus))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.InitialStatus)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Notes))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Notes)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Notes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Notes`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Notes))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Notes)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TLSServerName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TLSServerName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TLSServerName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TLSServerName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TLSServerName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TLSServerName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.TLSSkipVerify)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TLSSkipVerify\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TLSSkipVerify`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.TLSSkipVerify)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Method))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Method)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Method\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Method`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Method))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Method)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Header == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicestring((map[string][]string)(x.Header), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Header\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Header`) + } + r.WriteMapElemValue() + if x.Header == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicestring((map[string][]string)(x.Header), e) + } + } + } + var yyn54 bool + if x.CheckRestart == nil { + yyn54 = true + goto LABEL54 + } + LABEL54: + if yyr2 || yy2arr2 { + if yyn54 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.CheckRestart == nil { + r.EncodeNil() + } else { + x.CheckRestart.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CheckRestart\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CheckRestart`) + } + r.WriteMapElemValue() + if yyn54 { + r.EncodeNil() + } else { + if x.CheckRestart == nil { + r.EncodeNil() + } else { + x.CheckRestart.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.GRPCService))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.GRPCService)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"GRPCService\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `GRPCService`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.GRPCService))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.GRPCService)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.GRPCUseTLS)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"GRPCUseTLS\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `GRPCUseTLS`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.GRPCUseTLS)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.SuccessBeforePassing)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SuccessBeforePassing\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SuccessBeforePassing`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.SuccessBeforePassing)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.FailuresBeforeCritical)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FailuresBeforeCritical\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `FailuresBeforeCritical`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.FailuresBeforeCritical)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.FailuresBeforeWarning)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FailuresBeforeWarning\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `FailuresBeforeWarning`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.FailuresBeforeWarning)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Body))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Body)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Body\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Body`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Body))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Body)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.OnUpdate))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.OnUpdate)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"OnUpdate\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `OnUpdate`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.OnUpdate))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.OnUpdate)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ServiceCheck) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ServiceCheck) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + case "Command": + if r.TryDecodeAsNil() { + x.Command = "" + } else { + x.Command = (string)(r.DecodeString()) + } + case "Args": + if r.TryDecodeAsNil() { + x.Args = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Args), d) + } + } + case "Path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = (string)(r.DecodeString()) + } + case "Protocol": + if r.TryDecodeAsNil() { + x.Protocol = "" + } else { + x.Protocol = (string)(r.DecodeString()) + } + case "PortLabel": + if r.TryDecodeAsNil() { + x.PortLabel = "" + } else { + x.PortLabel = (string)(r.DecodeString()) + } + case "Expose": + if r.TryDecodeAsNil() { + x.Expose = false + } else { + x.Expose = (bool)(r.DecodeBool()) + } + case "AddressMode": + if r.TryDecodeAsNil() { + x.AddressMode = "" + } else { + x.AddressMode = (string)(r.DecodeString()) + } + case "Interval": + if r.TryDecodeAsNil() { + x.Interval = 0 + } else { + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.Interval)); yyxt15 != nil { + z.DecExtension(x.Interval, yyxt15) + } else { + x.Interval = (time.Duration)(r.DecodeInt64()) + } + } + case "Timeout": + if r.TryDecodeAsNil() { + x.Timeout = 0 + } else { + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.Timeout)); yyxt17 != nil { + z.DecExtension(x.Timeout, yyxt17) + } else { + x.Timeout = (time.Duration)(r.DecodeInt64()) + } + } + case "InitialStatus": + if r.TryDecodeAsNil() { + x.InitialStatus = "" + } else { + x.InitialStatus = (string)(r.DecodeString()) + } + case "Notes": + if r.TryDecodeAsNil() { + x.Notes = "" + } else { + x.Notes = (string)(r.DecodeString()) + } + case "TLSServerName": + if r.TryDecodeAsNil() { + x.TLSServerName = "" + } else { + x.TLSServerName = (string)(r.DecodeString()) + } + case "TLSSkipVerify": + if r.TryDecodeAsNil() { + x.TLSSkipVerify = false + } else { + x.TLSSkipVerify = (bool)(r.DecodeBool()) + } + case "Method": + if r.TryDecodeAsNil() { + x.Method = "" + } else { + x.Method = (string)(r.DecodeString()) + } + case "Header": + if r.TryDecodeAsNil() { + x.Header = nil + } else { + if false { + } else { + h.decMapstringSlicestring((*map[string][]string)(&x.Header), d) + } + } + case "CheckRestart": + if r.TryDecodeAsNil() { + if true && x.CheckRestart != nil { + x.CheckRestart = nil + } + } else { + if x.CheckRestart == nil { + x.CheckRestart = new(CheckRestart) + } + + x.CheckRestart.CodecDecodeSelf(d) + } + case "GRPCService": + if r.TryDecodeAsNil() { + x.GRPCService = "" + } else { + x.GRPCService = (string)(r.DecodeString()) + } + case "GRPCUseTLS": + if r.TryDecodeAsNil() { + x.GRPCUseTLS = false + } else { + x.GRPCUseTLS = (bool)(r.DecodeBool()) + } + case "TaskName": + if r.TryDecodeAsNil() { + x.TaskName = "" + } else { + x.TaskName = (string)(r.DecodeString()) + } + case "SuccessBeforePassing": + if r.TryDecodeAsNil() { + x.SuccessBeforePassing = 0 + } else { + x.SuccessBeforePassing = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "FailuresBeforeCritical": + if r.TryDecodeAsNil() { + x.FailuresBeforeCritical = 0 + } else { + x.FailuresBeforeCritical = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "FailuresBeforeWarning": + if r.TryDecodeAsNil() { + x.FailuresBeforeWarning = 0 + } else { + x.FailuresBeforeWarning = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Body": + if r.TryDecodeAsNil() { + x.Body = "" + } else { + x.Body = (string)(r.DecodeString()) + } + case "OnUpdate": + if r.TryDecodeAsNil() { + x.OnUpdate = "" + } else { + x.OnUpdate = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ServiceCheck) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj34 int + var yyb34 bool + var yyhl34 bool = l >= 0 + yyj34++ + if yyhl34 { + yyb34 = yyj34 > l + } else { + yyb34 = r.CheckBreak() + } + if yyb34 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj34++ + if yyhl34 { + yyb34 = yyj34 > l + } else { + yyb34 = r.CheckBreak() + } + if yyb34 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + yyj34++ + if yyhl34 { + yyb34 = yyj34 > l + } else { + yyb34 = r.CheckBreak() + } + if yyb34 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Command = "" + } else { + x.Command = (string)(r.DecodeString()) + } + yyj34++ + if yyhl34 { + yyb34 = yyj34 > l + } else { + yyb34 = r.CheckBreak() + } + if yyb34 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Args = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Args), d) + } + } + yyj34++ + if yyhl34 { + yyb34 = yyj34 > l + } else { + yyb34 = r.CheckBreak() + } + if yyb34 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = (string)(r.DecodeString()) + } + yyj34++ + if yyhl34 { + yyb34 = yyj34 > l + } else { + yyb34 = r.CheckBreak() + } + if yyb34 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Protocol = "" + } else { + x.Protocol = (string)(r.DecodeString()) + } + yyj34++ + if yyhl34 { + yyb34 = yyj34 > l + } else { + yyb34 = r.CheckBreak() + } + if yyb34 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PortLabel = "" + } else { + x.PortLabel = (string)(r.DecodeString()) + } + yyj34++ + if yyhl34 { + yyb34 = yyj34 > l + } else { + yyb34 = r.CheckBreak() + } + if yyb34 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Expose = false + } else { + x.Expose = (bool)(r.DecodeBool()) + } + yyj34++ + if yyhl34 { + yyb34 = yyj34 > l + } else { + yyb34 = r.CheckBreak() + } + if yyb34 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AddressMode = "" + } else { + x.AddressMode = (string)(r.DecodeString()) + } + yyj34++ + if yyhl34 { + yyb34 = yyj34 > l + } else { + yyb34 = r.CheckBreak() + } + if yyb34 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Interval = 0 + } else { + if false { + } else if yyxt46 := z.Extension(z.I2Rtid(x.Interval)); yyxt46 != nil { + z.DecExtension(x.Interval, yyxt46) + } else { + x.Interval = (time.Duration)(r.DecodeInt64()) + } + } + yyj34++ + if yyhl34 { + yyb34 = yyj34 > l + } else { + yyb34 = r.CheckBreak() + } + if yyb34 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Timeout = 0 + } else { + if false { + } else if yyxt48 := z.Extension(z.I2Rtid(x.Timeout)); yyxt48 != nil { + z.DecExtension(x.Timeout, yyxt48) + } else { + x.Timeout = (time.Duration)(r.DecodeInt64()) + } + } + yyj34++ + if yyhl34 { + yyb34 = yyj34 > l + } else { + yyb34 = r.CheckBreak() + } + if yyb34 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.InitialStatus = "" + } else { + x.InitialStatus = (string)(r.DecodeString()) + } + yyj34++ + if yyhl34 { + yyb34 = yyj34 > l + } else { + yyb34 = r.CheckBreak() + } + if yyb34 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Notes = "" + } else { + x.Notes = (string)(r.DecodeString()) + } + yyj34++ + if yyhl34 { + yyb34 = yyj34 > l + } else { + yyb34 = r.CheckBreak() + } + if yyb34 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TLSServerName = "" + } else { + x.TLSServerName = (string)(r.DecodeString()) + } + yyj34++ + if yyhl34 { + yyb34 = yyj34 > l + } else { + yyb34 = r.CheckBreak() + } + if yyb34 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TLSSkipVerify = false + } else { + x.TLSSkipVerify = (bool)(r.DecodeBool()) + } + yyj34++ + if yyhl34 { + yyb34 = yyj34 > l + } else { + yyb34 = r.CheckBreak() + } + if yyb34 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Method = "" + } else { + x.Method = (string)(r.DecodeString()) + } + yyj34++ + if yyhl34 { + yyb34 = yyj34 > l + } else { + yyb34 = r.CheckBreak() + } + if yyb34 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Header = nil + } else { + if false { + } else { + h.decMapstringSlicestring((*map[string][]string)(&x.Header), d) + } + } + yyj34++ + if yyhl34 { + yyb34 = yyj34 > l + } else { + yyb34 = r.CheckBreak() + } + if yyb34 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.CheckRestart != nil { + x.CheckRestart = nil + } + } else { + if x.CheckRestart == nil { + x.CheckRestart = new(CheckRestart) + } + + x.CheckRestart.CodecDecodeSelf(d) + } + yyj34++ + if yyhl34 { + yyb34 = yyj34 > l + } else { + yyb34 = r.CheckBreak() + } + if yyb34 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.GRPCService = "" + } else { + x.GRPCService = (string)(r.DecodeString()) + } + yyj34++ + if yyhl34 { + yyb34 = yyj34 > l + } else { + yyb34 = r.CheckBreak() + } + if yyb34 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.GRPCUseTLS = false + } else { + x.GRPCUseTLS = (bool)(r.DecodeBool()) + } + yyj34++ + if yyhl34 { + yyb34 = yyj34 > l + } else { + yyb34 = r.CheckBreak() + } + if yyb34 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskName = "" + } else { + x.TaskName = (string)(r.DecodeString()) + } + yyj34++ + if yyhl34 { + yyb34 = yyj34 > l + } else { + yyb34 = r.CheckBreak() + } + if yyb34 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SuccessBeforePassing = 0 + } else { + x.SuccessBeforePassing = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj34++ + if yyhl34 { + yyb34 = yyj34 > l + } else { + yyb34 = r.CheckBreak() + } + if yyb34 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.FailuresBeforeCritical = 0 + } else { + x.FailuresBeforeCritical = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj34++ + if yyhl34 { + yyb34 = yyj34 > l + } else { + yyb34 = r.CheckBreak() + } + if yyb34 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.FailuresBeforeWarning = 0 + } else { + x.FailuresBeforeWarning = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj34++ + if yyhl34 { + yyb34 = yyj34 > l + } else { + yyb34 = r.CheckBreak() + } + if yyb34 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Body = "" + } else { + x.Body = (string)(r.DecodeString()) + } + yyj34++ + if yyhl34 { + yyb34 = yyj34 > l + } else { + yyb34 = r.CheckBreak() + } + if yyb34 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.OnUpdate = "" + } else { + x.OnUpdate = (string)(r.DecodeString()) + } + for { + yyj34++ + if yyhl34 { + yyb34 = yyj34 > l + } else { + yyb34 = r.CheckBreak() + } + if yyb34 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj34-1, "") + } + r.ReadArrayEnd() +} + +func (x *Service) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(20) + } else { + r.WriteMapStart(20) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PortLabel))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PortLabel)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PortLabel\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PortLabel`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PortLabel))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PortLabel)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AddressMode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AddressMode)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AddressMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AddressMode`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AddressMode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AddressMode)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Address\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Address`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.EnableTagOverride)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EnableTagOverride\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EnableTagOverride`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.EnableTagOverride)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Tags == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Tags), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Tags\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Tags`) + } + r.WriteMapElemValue() + if x.Tags == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Tags), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.CanaryTags == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.CanaryTags), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CanaryTags\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CanaryTags`) + } + r.WriteMapElemValue() + if x.CanaryTags == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.CanaryTags), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Checks == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoServiceCheck(([]*ServiceCheck)(x.Checks), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Checks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Checks`) + } + r.WriteMapElemValue() + if x.Checks == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoServiceCheck(([]*ServiceCheck)(x.Checks), e) + } + } + } + var yyn30 bool + if x.Connect == nil { + yyn30 = true + goto LABEL30 + } + LABEL30: + if yyr2 || yy2arr2 { + if yyn30 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Connect == nil { + r.EncodeNil() + } else { + x.Connect.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Connect\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Connect`) + } + r.WriteMapElemValue() + if yyn30 { + r.EncodeNil() + } else { + if x.Connect == nil { + r.EncodeNil() + } else { + x.Connect.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Meta), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Meta\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) + } + r.WriteMapElemValue() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Meta), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.CanaryMeta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.CanaryMeta), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CanaryMeta\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CanaryMeta`) + } + r.WriteMapElemValue() + if x.CanaryMeta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.CanaryMeta), e) + } + } + } + var yyn39 bool + if x.Weights == nil { + yyn39 = true + goto LABEL39 + } + LABEL39: + if yyr2 || yy2arr2 { + if yyn39 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Weights == nil { + r.EncodeNil() + } else { + x.Weights.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Weights\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Weights`) + } + r.WriteMapElemValue() + if yyn39 { + r.EncodeNil() + } else { + if x.Weights == nil { + r.EncodeNil() + } else { + x.Weights.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.TaggedAddresses == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.TaggedAddresses), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaggedAddresses\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaggedAddresses`) + } + r.WriteMapElemValue() + if x.TaggedAddresses == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.TaggedAddresses), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.OnUpdate))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.OnUpdate)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"OnUpdate\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `OnUpdate`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.OnUpdate))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.OnUpdate)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Provider\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Provider`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Cluster))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Cluster)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Cluster\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Cluster`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Cluster))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Cluster)) + } + } + } + var yyn57 bool + if x.Identity == nil { + yyn57 = true + goto LABEL57 + } + LABEL57: + if yyr2 || yy2arr2 { + if yyn57 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Identity == nil { + r.EncodeNil() + } else { + x.Identity.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Identity\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Identity`) + } + r.WriteMapElemValue() + if yyn57 { + r.EncodeNil() + } else { + if x.Identity == nil { + r.EncodeNil() + } else { + x.Identity.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Kind))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Kind)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Kind\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Kind`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Kind))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Kind)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Service) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Service) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "TaskName": + if r.TryDecodeAsNil() { + x.TaskName = "" + } else { + x.TaskName = (string)(r.DecodeString()) + } + case "PortLabel": + if r.TryDecodeAsNil() { + x.PortLabel = "" + } else { + x.PortLabel = (string)(r.DecodeString()) + } + case "AddressMode": + if r.TryDecodeAsNil() { + x.AddressMode = "" + } else { + x.AddressMode = (string)(r.DecodeString()) + } + case "Address": + if r.TryDecodeAsNil() { + x.Address = "" + } else { + x.Address = (string)(r.DecodeString()) + } + case "EnableTagOverride": + if r.TryDecodeAsNil() { + x.EnableTagOverride = false + } else { + x.EnableTagOverride = (bool)(r.DecodeBool()) + } + case "Tags": + if r.TryDecodeAsNil() { + x.Tags = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Tags), d) + } + } + case "CanaryTags": + if r.TryDecodeAsNil() { + x.CanaryTags = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.CanaryTags), d) + } + } + case "Checks": + if r.TryDecodeAsNil() { + x.Checks = nil + } else { + if false { + } else { + h.decSlicePtrtoServiceCheck((*[]*ServiceCheck)(&x.Checks), d) + } + } + case "Connect": + if r.TryDecodeAsNil() { + if true && x.Connect != nil { + x.Connect = nil + } + } else { + if x.Connect == nil { + x.Connect = new(ConsulConnect) + } + + x.Connect.CodecDecodeSelf(d) + } + case "Meta": + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Meta), d) + } + } + case "CanaryMeta": + if r.TryDecodeAsNil() { + x.CanaryMeta = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.CanaryMeta), d) + } + } + case "Weights": + if r.TryDecodeAsNil() { + if true && x.Weights != nil { + x.Weights = nil + } + } else { + if x.Weights == nil { + x.Weights = new(ServiceWeights) + } + + x.Weights.CodecDecodeSelf(d) + } + case "TaggedAddresses": + if r.TryDecodeAsNil() { + x.TaggedAddresses = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.TaggedAddresses), d) + } + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "OnUpdate": + if r.TryDecodeAsNil() { + x.OnUpdate = "" + } else { + x.OnUpdate = (string)(r.DecodeString()) + } + case "Provider": + if r.TryDecodeAsNil() { + x.Provider = "" + } else { + x.Provider = (string)(r.DecodeString()) + } + case "Cluster": + if r.TryDecodeAsNil() { + x.Cluster = "" + } else { + x.Cluster = (string)(r.DecodeString()) + } + case "Identity": + if r.TryDecodeAsNil() { + if true && x.Identity != nil { + x.Identity = nil + } + } else { + if x.Identity == nil { + x.Identity = new(WorkloadIdentity) + } + + x.Identity.CodecDecodeSelf(d) + } + case "Kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj30 int + var yyb30 bool + var yyhl30 bool = l >= 0 + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskName = "" + } else { + x.TaskName = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PortLabel = "" + } else { + x.PortLabel = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AddressMode = "" + } else { + x.AddressMode = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Address = "" + } else { + x.Address = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EnableTagOverride = false + } else { + x.EnableTagOverride = (bool)(r.DecodeBool()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Tags = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Tags), d) + } + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CanaryTags = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.CanaryTags), d) + } + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Checks = nil + } else { + if false { + } else { + h.decSlicePtrtoServiceCheck((*[]*ServiceCheck)(&x.Checks), d) + } + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Connect != nil { + x.Connect = nil + } + } else { + if x.Connect == nil { + x.Connect = new(ConsulConnect) + } + + x.Connect.CodecDecodeSelf(d) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Meta), d) + } + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CanaryMeta = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.CanaryMeta), d) + } + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Weights != nil { + x.Weights = nil + } + } else { + if x.Weights == nil { + x.Weights = new(ServiceWeights) + } + + x.Weights.CodecDecodeSelf(d) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaggedAddresses = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.TaggedAddresses), d) + } + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.OnUpdate = "" + } else { + x.OnUpdate = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Provider = "" + } else { + x.Provider = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Cluster = "" + } else { + x.Cluster = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Identity != nil { + x.Identity = nil + } + } else { + if x.Identity == nil { + x.Identity = new(WorkloadIdentity) + } + + x.Identity.CodecDecodeSelf(d) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = (string)(r.DecodeString()) + } + for { + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj30-1, "") + } + r.ReadArrayEnd() +} + +func (x *ServiceWeights) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Passing)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Passing\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Passing`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Passing)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Warning)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Warning\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Warning`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Warning)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ServiceWeights) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ServiceWeights) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Passing": + if r.TryDecodeAsNil() { + x.Passing = 0 + } else { + x.Passing = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Warning": + if r.TryDecodeAsNil() { + x.Warning = 0 + } else { + x.Warning = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ServiceWeights) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Passing = 0 + } else { + x.Passing = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Warning = 0 + } else { + x.Warning = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *ConsulConnect) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Native)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Native\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Native`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Native)) + } + } + var yyn6 bool + if x.SidecarService == nil { + yyn6 = true + goto LABEL6 + } + LABEL6: + if yyr2 || yy2arr2 { + if yyn6 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.SidecarService == nil { + r.EncodeNil() + } else { + x.SidecarService.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SidecarService\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SidecarService`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.SidecarService == nil { + r.EncodeNil() + } else { + x.SidecarService.CodecEncodeSelf(e) + } + } + } + var yyn9 bool + if x.SidecarTask == nil { + yyn9 = true + goto LABEL9 + } + LABEL9: + if yyr2 || yy2arr2 { + if yyn9 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.SidecarTask == nil { + r.EncodeNil() + } else { + x.SidecarTask.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SidecarTask\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SidecarTask`) + } + r.WriteMapElemValue() + if yyn9 { + r.EncodeNil() + } else { + if x.SidecarTask == nil { + r.EncodeNil() + } else { + x.SidecarTask.CodecEncodeSelf(e) + } + } + } + var yyn12 bool + if x.Gateway == nil { + yyn12 = true + goto LABEL12 + } + LABEL12: + if yyr2 || yy2arr2 { + if yyn12 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Gateway == nil { + r.EncodeNil() + } else { + x.Gateway.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Gateway\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Gateway`) + } + r.WriteMapElemValue() + if yyn12 { + r.EncodeNil() + } else { + if x.Gateway == nil { + r.EncodeNil() + } else { + x.Gateway.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ConsulConnect) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ConsulConnect) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Native": + if r.TryDecodeAsNil() { + x.Native = false + } else { + x.Native = (bool)(r.DecodeBool()) + } + case "SidecarService": + if r.TryDecodeAsNil() { + if true && x.SidecarService != nil { + x.SidecarService = nil + } + } else { + if x.SidecarService == nil { + x.SidecarService = new(ConsulSidecarService) + } + + x.SidecarService.CodecDecodeSelf(d) + } + case "SidecarTask": + if r.TryDecodeAsNil() { + if true && x.SidecarTask != nil { + x.SidecarTask = nil + } + } else { + if x.SidecarTask == nil { + x.SidecarTask = new(SidecarTask) + } + + x.SidecarTask.CodecDecodeSelf(d) + } + case "Gateway": + if r.TryDecodeAsNil() { + if true && x.Gateway != nil { + x.Gateway = nil + } + } else { + if x.Gateway == nil { + x.Gateway = new(ConsulGateway) + } + + x.Gateway.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ConsulConnect) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Native = false + } else { + x.Native = (bool)(r.DecodeBool()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.SidecarService != nil { + x.SidecarService = nil + } + } else { + if x.SidecarService == nil { + x.SidecarService = new(ConsulSidecarService) + } + + x.SidecarService.CodecDecodeSelf(d) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.SidecarTask != nil { + x.SidecarTask = nil + } + } else { + if x.SidecarTask == nil { + x.SidecarTask = new(SidecarTask) + } + + x.SidecarTask.CodecDecodeSelf(d) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Gateway != nil { + x.Gateway = nil + } + } else { + if x.Gateway == nil { + x.Gateway = new(ConsulGateway) + } + + x.Gateway.CodecDecodeSelf(d) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *ConsulSidecarService) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Tags == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Tags), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Tags\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Tags`) + } + r.WriteMapElemValue() + if x.Tags == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Tags), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Port))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Port)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Port\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Port`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Port))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Port)) + } + } + } + var yyn9 bool + if x.Proxy == nil { + yyn9 = true + goto LABEL9 + } + LABEL9: + if yyr2 || yy2arr2 { + if yyn9 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Proxy == nil { + r.EncodeNil() + } else { + x.Proxy.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Proxy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Proxy`) + } + r.WriteMapElemValue() + if yyn9 { + r.EncodeNil() + } else { + if x.Proxy == nil { + r.EncodeNil() + } else { + x.Proxy.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.DisableDefaultTCPCheck)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DisableDefaultTCPCheck\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DisableDefaultTCPCheck`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.DisableDefaultTCPCheck)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Meta), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Meta\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) + } + r.WriteMapElemValue() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Meta), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ConsulSidecarService) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ConsulSidecarService) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Tags": + if r.TryDecodeAsNil() { + x.Tags = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Tags), d) + } + } + case "Port": + if r.TryDecodeAsNil() { + x.Port = "" + } else { + x.Port = (string)(r.DecodeString()) + } + case "Proxy": + if r.TryDecodeAsNil() { + if true && x.Proxy != nil { + x.Proxy = nil + } + } else { + if x.Proxy == nil { + x.Proxy = new(ConsulProxy) + } + + x.Proxy.CodecDecodeSelf(d) + } + case "DisableDefaultTCPCheck": + if r.TryDecodeAsNil() { + x.DisableDefaultTCPCheck = false + } else { + x.DisableDefaultTCPCheck = (bool)(r.DecodeBool()) + } + case "Meta": + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Meta), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ConsulSidecarService) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Tags = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Tags), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Port = "" + } else { + x.Port = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Proxy != nil { + x.Proxy = nil + } + } else { + if x.Proxy == nil { + x.Proxy = new(ConsulProxy) + } + + x.Proxy.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DisableDefaultTCPCheck = false + } else { + x.DisableDefaultTCPCheck = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Meta), d) + } + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *SidecarTask) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(12) + } else { + r.WriteMapStart(12) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Driver))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Driver)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Driver\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Driver`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Driver))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Driver)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.User))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.User)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"User\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `User`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.User))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.User)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Config == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringInterface((map[string]interface{})(x.Config), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Config\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Config`) + } + r.WriteMapElemValue() + if x.Config == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringInterface((map[string]interface{})(x.Config), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Env == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Env), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Env\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Env`) + } + r.WriteMapElemValue() + if x.Env == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Env), e) + } + } + } + var yyn18 bool + if x.Resources == nil { + yyn18 = true + goto LABEL18 + } + LABEL18: + if yyr2 || yy2arr2 { + if yyn18 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Resources == nil { + r.EncodeNil() + } else { + x.Resources.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Resources\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Resources`) + } + r.WriteMapElemValue() + if yyn18 { + r.EncodeNil() + } else { + if x.Resources == nil { + r.EncodeNil() + } else { + x.Resources.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Meta), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Meta\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) + } + r.WriteMapElemValue() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Meta), e) + } + } + } + var yyn24 bool + if x.KillTimeout == nil { + yyn24 = true + goto LABEL24 + } + LABEL24: + if yyr2 || yy2arr2 { + if yyn24 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.KillTimeout == nil { + r.EncodeNil() + } else { + yy25 := *x.KillTimeout + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(yy25)); yyxt26 != nil { + z.EncExtension(yy25, yyxt26) + } else { + r.EncodeInt(int64(yy25)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KillTimeout\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KillTimeout`) + } + r.WriteMapElemValue() + if yyn24 { + r.EncodeNil() + } else { + if x.KillTimeout == nil { + r.EncodeNil() + } else { + yy27 := *x.KillTimeout + if false { + } else if yyxt28 := z.Extension(z.I2Rtid(yy27)); yyxt28 != nil { + z.EncExtension(yy27, yyxt28) + } else { + r.EncodeInt(int64(yy27)) + } + } + } + } + var yyn29 bool + if x.LogConfig == nil { + yyn29 = true + goto LABEL29 + } + LABEL29: + if yyr2 || yy2arr2 { + if yyn29 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.LogConfig == nil { + r.EncodeNil() + } else { + x.LogConfig.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LogConfig\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LogConfig`) + } + r.WriteMapElemValue() + if yyn29 { + r.EncodeNil() + } else { + if x.LogConfig == nil { + r.EncodeNil() + } else { + x.LogConfig.CodecEncodeSelf(e) + } + } + } + var yyn32 bool + if x.ShutdownDelay == nil { + yyn32 = true + goto LABEL32 + } + LABEL32: + if yyr2 || yy2arr2 { + if yyn32 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ShutdownDelay == nil { + r.EncodeNil() + } else { + yy33 := *x.ShutdownDelay + if false { + } else if yyxt34 := z.Extension(z.I2Rtid(yy33)); yyxt34 != nil { + z.EncExtension(yy33, yyxt34) + } else { + r.EncodeInt(int64(yy33)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ShutdownDelay\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ShutdownDelay`) + } + r.WriteMapElemValue() + if yyn32 { + r.EncodeNil() + } else { + if x.ShutdownDelay == nil { + r.EncodeNil() + } else { + yy35 := *x.ShutdownDelay + if false { + } else if yyxt36 := z.Extension(z.I2Rtid(yy35)); yyxt36 != nil { + z.EncExtension(yy35, yyxt36) + } else { + r.EncodeInt(int64(yy35)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KillSignal))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KillSignal)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KillSignal\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KillSignal`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KillSignal))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KillSignal)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.VolumeMounts == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoVolumeMount(([]*VolumeMount)(x.VolumeMounts), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VolumeMounts\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `VolumeMounts`) + } + r.WriteMapElemValue() + if x.VolumeMounts == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoVolumeMount(([]*VolumeMount)(x.VolumeMounts), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SidecarTask) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SidecarTask) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Driver": + if r.TryDecodeAsNil() { + x.Driver = "" + } else { + x.Driver = (string)(r.DecodeString()) + } + case "User": + if r.TryDecodeAsNil() { + x.User = "" + } else { + x.User = (string)(r.DecodeString()) + } + case "Config": + if r.TryDecodeAsNil() { + x.Config = nil + } else { + if false { + } else { + h.decMapstringInterface((*map[string]interface{})(&x.Config), d) + } + } + case "Env": + if r.TryDecodeAsNil() { + x.Env = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Env), d) + } + } + case "Resources": + if r.TryDecodeAsNil() { + if true && x.Resources != nil { + x.Resources = nil + } + } else { + if x.Resources == nil { + x.Resources = new(Resources) + } + + x.Resources.CodecDecodeSelf(d) + } + case "Meta": + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Meta), d) + } + } + case "KillTimeout": + if r.TryDecodeAsNil() { + if true && x.KillTimeout != nil { + x.KillTimeout = nil + } + } else { + if x.KillTimeout == nil { + x.KillTimeout = new(time.Duration) + } + + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt15 != nil { + z.DecExtension(x.KillTimeout, yyxt15) + } else { + *x.KillTimeout = (time.Duration)(r.DecodeInt64()) + } + } + case "LogConfig": + if r.TryDecodeAsNil() { + if true && x.LogConfig != nil { + x.LogConfig = nil + } + } else { + if x.LogConfig == nil { + x.LogConfig = new(LogConfig) + } + + x.LogConfig.CodecDecodeSelf(d) + } + case "ShutdownDelay": + if r.TryDecodeAsNil() { + if true && x.ShutdownDelay != nil { + x.ShutdownDelay = nil + } + } else { + if x.ShutdownDelay == nil { + x.ShutdownDelay = new(time.Duration) + } + + if false { + } else if yyxt18 := z.Extension(z.I2Rtid(x.ShutdownDelay)); yyxt18 != nil { + z.DecExtension(x.ShutdownDelay, yyxt18) + } else { + *x.ShutdownDelay = (time.Duration)(r.DecodeInt64()) + } + } + case "KillSignal": + if r.TryDecodeAsNil() { + x.KillSignal = "" + } else { + x.KillSignal = (string)(r.DecodeString()) + } + case "VolumeMounts": + if r.TryDecodeAsNil() { + x.VolumeMounts = nil + } else { + if false { + } else { + h.decSlicePtrtoVolumeMount((*[]*VolumeMount)(&x.VolumeMounts), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SidecarTask) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj22 int + var yyb22 bool + var yyhl22 bool = l >= 0 + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Driver = "" + } else { + x.Driver = (string)(r.DecodeString()) + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.User = "" + } else { + x.User = (string)(r.DecodeString()) + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Config = nil + } else { + if false { + } else { + h.decMapstringInterface((*map[string]interface{})(&x.Config), d) + } + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Env = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Env), d) + } + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Resources != nil { + x.Resources = nil + } + } else { + if x.Resources == nil { + x.Resources = new(Resources) + } + + x.Resources.CodecDecodeSelf(d) + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Meta), d) + } + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.KillTimeout != nil { + x.KillTimeout = nil + } + } else { + if x.KillTimeout == nil { + x.KillTimeout = new(time.Duration) + } + + if false { + } else if yyxt34 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt34 != nil { + z.DecExtension(x.KillTimeout, yyxt34) + } else { + *x.KillTimeout = (time.Duration)(r.DecodeInt64()) + } + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.LogConfig != nil { + x.LogConfig = nil + } + } else { + if x.LogConfig == nil { + x.LogConfig = new(LogConfig) + } + + x.LogConfig.CodecDecodeSelf(d) + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ShutdownDelay != nil { + x.ShutdownDelay = nil + } + } else { + if x.ShutdownDelay == nil { + x.ShutdownDelay = new(time.Duration) + } + + if false { + } else if yyxt37 := z.Extension(z.I2Rtid(x.ShutdownDelay)); yyxt37 != nil { + z.DecExtension(x.ShutdownDelay, yyxt37) + } else { + *x.ShutdownDelay = (time.Duration)(r.DecodeInt64()) + } + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.KillSignal = "" + } else { + x.KillSignal = (string)(r.DecodeString()) + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VolumeMounts = nil + } else { + if false { + } else { + h.decSlicePtrtoVolumeMount((*[]*VolumeMount)(&x.VolumeMounts), d) + } + } + for { + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj22-1, "") + } + r.ReadArrayEnd() +} + +func (x *ConsulProxy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LocalServiceAddress))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LocalServiceAddress)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LocalServiceAddress\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LocalServiceAddress`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LocalServiceAddress))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LocalServiceAddress)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.LocalServicePort)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LocalServicePort\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LocalServicePort`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.LocalServicePort)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Upstreams == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceConsulUpstream(([]ConsulUpstream)(x.Upstreams), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Upstreams\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Upstreams`) + } + r.WriteMapElemValue() + if x.Upstreams == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceConsulUpstream(([]ConsulUpstream)(x.Upstreams), e) + } + } + } + var yyn12 bool + if x.Expose == nil { + yyn12 = true + goto LABEL12 + } + LABEL12: + if yyr2 || yy2arr2 { + if yyn12 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Expose == nil { + r.EncodeNil() + } else { + x.Expose.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Expose\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Expose`) + } + r.WriteMapElemValue() + if yyn12 { + r.EncodeNil() + } else { + if x.Expose == nil { + r.EncodeNil() + } else { + x.Expose.CodecEncodeSelf(e) + } + } + } + var yyn15 bool + if x.TransparentProxy == nil { + yyn15 = true + goto LABEL15 + } + LABEL15: + if yyr2 || yy2arr2 { + if yyn15 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.TransparentProxy == nil { + r.EncodeNil() + } else { + x.TransparentProxy.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TransparentProxy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TransparentProxy`) + } + r.WriteMapElemValue() + if yyn15 { + r.EncodeNil() + } else { + if x.TransparentProxy == nil { + r.EncodeNil() + } else { + x.TransparentProxy.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Config == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringInterface((map[string]interface{})(x.Config), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Config\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Config`) + } + r.WriteMapElemValue() + if x.Config == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringInterface((map[string]interface{})(x.Config), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ConsulProxy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ConsulProxy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "LocalServiceAddress": + if r.TryDecodeAsNil() { + x.LocalServiceAddress = "" + } else { + x.LocalServiceAddress = (string)(r.DecodeString()) + } + case "LocalServicePort": + if r.TryDecodeAsNil() { + x.LocalServicePort = 0 + } else { + x.LocalServicePort = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Upstreams": + if r.TryDecodeAsNil() { + x.Upstreams = nil + } else { + if false { + } else { + h.decSliceConsulUpstream((*[]ConsulUpstream)(&x.Upstreams), d) + } + } + case "Expose": + if r.TryDecodeAsNil() { + if true && x.Expose != nil { + x.Expose = nil + } + } else { + if x.Expose == nil { + x.Expose = new(ConsulExposeConfig) + } + + x.Expose.CodecDecodeSelf(d) + } + case "TransparentProxy": + if r.TryDecodeAsNil() { + if true && x.TransparentProxy != nil { + x.TransparentProxy = nil + } + } else { + if x.TransparentProxy == nil { + x.TransparentProxy = new(ConsulTransparentProxy) + } + + x.TransparentProxy.CodecDecodeSelf(d) + } + case "Config": + if r.TryDecodeAsNil() { + x.Config = nil + } else { + if false { + } else { + h.decMapstringInterface((*map[string]interface{})(&x.Config), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ConsulProxy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LocalServiceAddress = "" + } else { + x.LocalServiceAddress = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LocalServicePort = 0 + } else { + x.LocalServicePort = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Upstreams = nil + } else { + if false { + } else { + h.decSliceConsulUpstream((*[]ConsulUpstream)(&x.Upstreams), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Expose != nil { + x.Expose = nil + } + } else { + if x.Expose == nil { + x.Expose = new(ConsulExposeConfig) + } + + x.Expose.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.TransparentProxy != nil { + x.TransparentProxy = nil + } + } else { + if x.TransparentProxy == nil { + x.TransparentProxy = new(ConsulTransparentProxy) + } + + x.TransparentProxy.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Config = nil + } else { + if false { + } else { + h.decMapstringInterface((*map[string]interface{})(&x.Config), d) + } + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *ConsulMeshGateway) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Mode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Mode)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Mode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Mode`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Mode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Mode)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ConsulMeshGateway) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ConsulMeshGateway) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Mode": + if r.TryDecodeAsNil() { + x.Mode = "" + } else { + x.Mode = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ConsulMeshGateway) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Mode = "" + } else { + x.Mode = (string)(r.DecodeString()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *ConsulUpstream) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(12) + } else { + r.WriteMapStart(12) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DestinationName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DestinationName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DestinationName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DestinationName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DestinationName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DestinationName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DestinationNamespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DestinationNamespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DestinationNamespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DestinationNamespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DestinationNamespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DestinationNamespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DestinationPartition))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DestinationPartition)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DestinationPartition\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DestinationPartition`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DestinationPartition))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DestinationPartition)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DestinationPeer))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DestinationPeer)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DestinationPeer\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DestinationPeer`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DestinationPeer))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DestinationPeer)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DestinationType))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DestinationType)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DestinationType\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DestinationType`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DestinationType))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DestinationType)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.LocalBindPort)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LocalBindPort\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LocalBindPort`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.LocalBindPort)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Datacenter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Datacenter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LocalBindAddress))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LocalBindAddress)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LocalBindAddress\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LocalBindAddress`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LocalBindAddress))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LocalBindAddress)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LocalBindSocketPath))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LocalBindSocketPath)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LocalBindSocketPath\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LocalBindSocketPath`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LocalBindSocketPath))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LocalBindSocketPath)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LocalBindSocketMode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LocalBindSocketMode)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LocalBindSocketMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LocalBindSocketMode`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LocalBindSocketMode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LocalBindSocketMode)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy34 := &x.MeshGateway + yy34.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MeshGateway\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MeshGateway`) + } + r.WriteMapElemValue() + yy36 := &x.MeshGateway + yy36.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Config == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringInterface((map[string]interface{})(x.Config), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Config\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Config`) + } + r.WriteMapElemValue() + if x.Config == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringInterface((map[string]interface{})(x.Config), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ConsulUpstream) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ConsulUpstream) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DestinationName": + if r.TryDecodeAsNil() { + x.DestinationName = "" + } else { + x.DestinationName = (string)(r.DecodeString()) + } + case "DestinationNamespace": + if r.TryDecodeAsNil() { + x.DestinationNamespace = "" + } else { + x.DestinationNamespace = (string)(r.DecodeString()) + } + case "DestinationPartition": + if r.TryDecodeAsNil() { + x.DestinationPartition = "" + } else { + x.DestinationPartition = (string)(r.DecodeString()) + } + case "DestinationPeer": + if r.TryDecodeAsNil() { + x.DestinationPeer = "" + } else { + x.DestinationPeer = (string)(r.DecodeString()) + } + case "DestinationType": + if r.TryDecodeAsNil() { + x.DestinationType = "" + } else { + x.DestinationType = (string)(r.DecodeString()) + } + case "LocalBindPort": + if r.TryDecodeAsNil() { + x.LocalBindPort = 0 + } else { + x.LocalBindPort = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Datacenter": + if r.TryDecodeAsNil() { + x.Datacenter = "" + } else { + x.Datacenter = (string)(r.DecodeString()) + } + case "LocalBindAddress": + if r.TryDecodeAsNil() { + x.LocalBindAddress = "" + } else { + x.LocalBindAddress = (string)(r.DecodeString()) + } + case "LocalBindSocketPath": + if r.TryDecodeAsNil() { + x.LocalBindSocketPath = "" + } else { + x.LocalBindSocketPath = (string)(r.DecodeString()) + } + case "LocalBindSocketMode": + if r.TryDecodeAsNil() { + x.LocalBindSocketMode = "" + } else { + x.LocalBindSocketMode = (string)(r.DecodeString()) + } + case "MeshGateway": + if r.TryDecodeAsNil() { + x.MeshGateway = ConsulMeshGateway{} + } else { + x.MeshGateway.CodecDecodeSelf(d) + } + case "Config": + if r.TryDecodeAsNil() { + x.Config = nil + } else { + if false { + } else { + h.decMapstringInterface((*map[string]interface{})(&x.Config), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ConsulUpstream) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DestinationName = "" + } else { + x.DestinationName = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DestinationNamespace = "" + } else { + x.DestinationNamespace = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DestinationPartition = "" + } else { + x.DestinationPartition = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DestinationPeer = "" + } else { + x.DestinationPeer = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DestinationType = "" + } else { + x.DestinationType = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LocalBindPort = 0 + } else { + x.LocalBindPort = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Datacenter = "" + } else { + x.Datacenter = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LocalBindAddress = "" + } else { + x.LocalBindAddress = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LocalBindSocketPath = "" + } else { + x.LocalBindSocketPath = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LocalBindSocketMode = "" + } else { + x.LocalBindSocketMode = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MeshGateway = ConsulMeshGateway{} + } else { + x.MeshGateway.CodecDecodeSelf(d) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Config = nil + } else { + if false { + } else { + h.decMapstringInterface((*map[string]interface{})(&x.Config), d) + } + } + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } + r.ReadArrayEnd() +} + +func (x *ConsulExposeConfig) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Paths == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceConsulExposePath(([]ConsulExposePath)(x.Paths), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Paths\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Paths`) + } + r.WriteMapElemValue() + if x.Paths == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceConsulExposePath(([]ConsulExposePath)(x.Paths), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ConsulExposeConfig) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ConsulExposeConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Paths": + if r.TryDecodeAsNil() { + x.Paths = nil + } else { + if false { + } else { + h.decSliceConsulExposePath((*[]ConsulExposePath)(&x.Paths), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ConsulExposeConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Paths = nil + } else { + if false { + } else { + h.decSliceConsulExposePath((*[]ConsulExposePath)(&x.Paths), d) + } + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *ConsulExposePath) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Path)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Path\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Path`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Path)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Protocol))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Protocol)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Protocol\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Protocol`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Protocol))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Protocol)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.LocalPathPort)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LocalPathPort\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LocalPathPort`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.LocalPathPort)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ListenerPort))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ListenerPort)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ListenerPort\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ListenerPort`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ListenerPort))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ListenerPort)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ConsulExposePath) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ConsulExposePath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = (string)(r.DecodeString()) + } + case "Protocol": + if r.TryDecodeAsNil() { + x.Protocol = "" + } else { + x.Protocol = (string)(r.DecodeString()) + } + case "LocalPathPort": + if r.TryDecodeAsNil() { + x.LocalPathPort = 0 + } else { + x.LocalPathPort = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "ListenerPort": + if r.TryDecodeAsNil() { + x.ListenerPort = "" + } else { + x.ListenerPort = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ConsulExposePath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Protocol = "" + } else { + x.Protocol = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LocalPathPort = 0 + } else { + x.LocalPathPort = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ListenerPort = "" + } else { + x.ListenerPort = (string)(r.DecodeString()) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *ConsulGateway) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + var yyn3 bool + if x.Proxy == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Proxy == nil { + r.EncodeNil() + } else { + x.Proxy.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Proxy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Proxy`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Proxy == nil { + r.EncodeNil() + } else { + x.Proxy.CodecEncodeSelf(e) + } + } + } + var yyn6 bool + if x.Ingress == nil { + yyn6 = true + goto LABEL6 + } + LABEL6: + if yyr2 || yy2arr2 { + if yyn6 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Ingress == nil { + r.EncodeNil() + } else { + x.Ingress.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Ingress\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Ingress`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.Ingress == nil { + r.EncodeNil() + } else { + x.Ingress.CodecEncodeSelf(e) + } + } + } + var yyn9 bool + if x.Terminating == nil { + yyn9 = true + goto LABEL9 + } + LABEL9: + if yyr2 || yy2arr2 { + if yyn9 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Terminating == nil { + r.EncodeNil() + } else { + x.Terminating.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Terminating\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Terminating`) + } + r.WriteMapElemValue() + if yyn9 { + r.EncodeNil() + } else { + if x.Terminating == nil { + r.EncodeNil() + } else { + x.Terminating.CodecEncodeSelf(e) + } + } + } + var yyn12 bool + if x.Mesh == nil { + yyn12 = true + goto LABEL12 + } + LABEL12: + if yyr2 || yy2arr2 { + if yyn12 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Mesh == nil { + r.EncodeNil() + } else { + x.Mesh.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Mesh\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Mesh`) + } + r.WriteMapElemValue() + if yyn12 { + r.EncodeNil() + } else { + if x.Mesh == nil { + r.EncodeNil() + } else { + x.Mesh.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ConsulGateway) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ConsulGateway) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Proxy": + if r.TryDecodeAsNil() { + if true && x.Proxy != nil { + x.Proxy = nil + } + } else { + if x.Proxy == nil { + x.Proxy = new(ConsulGatewayProxy) + } + + x.Proxy.CodecDecodeSelf(d) + } + case "Ingress": + if r.TryDecodeAsNil() { + if true && x.Ingress != nil { + x.Ingress = nil + } + } else { + if x.Ingress == nil { + x.Ingress = new(ConsulIngressConfigEntry) + } + + x.Ingress.CodecDecodeSelf(d) + } + case "Terminating": + if r.TryDecodeAsNil() { + if true && x.Terminating != nil { + x.Terminating = nil + } + } else { + if x.Terminating == nil { + x.Terminating = new(ConsulTerminatingConfigEntry) + } + + x.Terminating.CodecDecodeSelf(d) + } + case "Mesh": + if r.TryDecodeAsNil() { + if true && x.Mesh != nil { + x.Mesh = nil + } + } else { + if x.Mesh == nil { + x.Mesh = new(ConsulMeshConfigEntry) + } + + x.Mesh.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ConsulGateway) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Proxy != nil { + x.Proxy = nil + } + } else { + if x.Proxy == nil { + x.Proxy = new(ConsulGatewayProxy) + } + + x.Proxy.CodecDecodeSelf(d) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Ingress != nil { + x.Ingress = nil + } + } else { + if x.Ingress == nil { + x.Ingress = new(ConsulIngressConfigEntry) + } + + x.Ingress.CodecDecodeSelf(d) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Terminating != nil { + x.Terminating = nil + } + } else { + if x.Terminating == nil { + x.Terminating = new(ConsulTerminatingConfigEntry) + } + + x.Terminating.CodecDecodeSelf(d) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Mesh != nil { + x.Mesh = nil + } + } else { + if x.Mesh == nil { + x.Mesh = new(ConsulMeshConfigEntry) + } + + x.Mesh.CodecDecodeSelf(d) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *ConsulGatewayBindAddress) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Address\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Address`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Port)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Port\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Port`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Port)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ConsulGatewayBindAddress) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ConsulGatewayBindAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Address": + if r.TryDecodeAsNil() { + x.Address = "" + } else { + x.Address = (string)(r.DecodeString()) + } + case "Port": + if r.TryDecodeAsNil() { + x.Port = 0 + } else { + x.Port = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ConsulGatewayBindAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Address = "" + } else { + x.Address = (string)(r.DecodeString()) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Port = 0 + } else { + x.Port = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *ConsulGatewayProxy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + var yyn3 bool + if x.ConnectTimeout == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ConnectTimeout == nil { + r.EncodeNil() + } else { + yy4 := *x.ConnectTimeout + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(yy4)); yyxt5 != nil { + z.EncExtension(yy4, yyxt5) + } else { + r.EncodeInt(int64(yy4)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ConnectTimeout\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ConnectTimeout`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.ConnectTimeout == nil { + r.EncodeNil() + } else { + yy6 := *x.ConnectTimeout + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(yy6)); yyxt7 != nil { + z.EncExtension(yy6, yyxt7) + } else { + r.EncodeInt(int64(yy6)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.EnvoyGatewayBindTaggedAddresses)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EnvoyGatewayBindTaggedAddresses\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EnvoyGatewayBindTaggedAddresses`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.EnvoyGatewayBindTaggedAddresses)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.EnvoyGatewayBindAddresses == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoConsulGatewayBindAddress((map[string]*ConsulGatewayBindAddress)(x.EnvoyGatewayBindAddresses), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EnvoyGatewayBindAddresses\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EnvoyGatewayBindAddresses`) + } + r.WriteMapElemValue() + if x.EnvoyGatewayBindAddresses == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoConsulGatewayBindAddress((map[string]*ConsulGatewayBindAddress)(x.EnvoyGatewayBindAddresses), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.EnvoyGatewayNoDefaultBind)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EnvoyGatewayNoDefaultBind\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EnvoyGatewayNoDefaultBind`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.EnvoyGatewayNoDefaultBind)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EnvoyDNSDiscoveryType))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EnvoyDNSDiscoveryType)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EnvoyDNSDiscoveryType\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EnvoyDNSDiscoveryType`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EnvoyDNSDiscoveryType))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EnvoyDNSDiscoveryType)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Config == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringInterface((map[string]interface{})(x.Config), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Config\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Config`) + } + r.WriteMapElemValue() + if x.Config == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringInterface((map[string]interface{})(x.Config), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ConsulGatewayProxy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ConsulGatewayProxy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ConnectTimeout": + if r.TryDecodeAsNil() { + if true && x.ConnectTimeout != nil { + x.ConnectTimeout = nil + } + } else { + if x.ConnectTimeout == nil { + x.ConnectTimeout = new(time.Duration) + } + + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.ConnectTimeout)); yyxt5 != nil { + z.DecExtension(x.ConnectTimeout, yyxt5) + } else { + *x.ConnectTimeout = (time.Duration)(r.DecodeInt64()) + } + } + case "EnvoyGatewayBindTaggedAddresses": + if r.TryDecodeAsNil() { + x.EnvoyGatewayBindTaggedAddresses = false + } else { + x.EnvoyGatewayBindTaggedAddresses = (bool)(r.DecodeBool()) + } + case "EnvoyGatewayBindAddresses": + if r.TryDecodeAsNil() { + x.EnvoyGatewayBindAddresses = nil + } else { + if false { + } else { + h.decMapstringPtrtoConsulGatewayBindAddress((*map[string]*ConsulGatewayBindAddress)(&x.EnvoyGatewayBindAddresses), d) + } + } + case "EnvoyGatewayNoDefaultBind": + if r.TryDecodeAsNil() { + x.EnvoyGatewayNoDefaultBind = false + } else { + x.EnvoyGatewayNoDefaultBind = (bool)(r.DecodeBool()) + } + case "EnvoyDNSDiscoveryType": + if r.TryDecodeAsNil() { + x.EnvoyDNSDiscoveryType = "" + } else { + x.EnvoyDNSDiscoveryType = (string)(r.DecodeString()) + } + case "Config": + if r.TryDecodeAsNil() { + x.Config = nil + } else { + if false { + } else { + h.decMapstringInterface((*map[string]interface{})(&x.Config), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ConsulGatewayProxy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ConnectTimeout != nil { + x.ConnectTimeout = nil + } + } else { + if x.ConnectTimeout == nil { + x.ConnectTimeout = new(time.Duration) + } + + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.ConnectTimeout)); yyxt15 != nil { + z.DecExtension(x.ConnectTimeout, yyxt15) + } else { + *x.ConnectTimeout = (time.Duration)(r.DecodeInt64()) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EnvoyGatewayBindTaggedAddresses = false + } else { + x.EnvoyGatewayBindTaggedAddresses = (bool)(r.DecodeBool()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EnvoyGatewayBindAddresses = nil + } else { + if false { + } else { + h.decMapstringPtrtoConsulGatewayBindAddress((*map[string]*ConsulGatewayBindAddress)(&x.EnvoyGatewayBindAddresses), d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EnvoyGatewayNoDefaultBind = false + } else { + x.EnvoyGatewayNoDefaultBind = (bool)(r.DecodeBool()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EnvoyDNSDiscoveryType = "" + } else { + x.EnvoyDNSDiscoveryType = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Config = nil + } else { + if false { + } else { + h.decMapstringInterface((*map[string]interface{})(&x.Config), d) + } + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *ConsulGatewayTLSSDSConfig) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClusterName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClusterName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ClusterName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ClusterName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClusterName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClusterName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.CertResource))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.CertResource)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CertResource\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CertResource`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.CertResource))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.CertResource)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ConsulGatewayTLSSDSConfig) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ConsulGatewayTLSSDSConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ClusterName": + if r.TryDecodeAsNil() { + x.ClusterName = "" + } else { + x.ClusterName = (string)(r.DecodeString()) + } + case "CertResource": + if r.TryDecodeAsNil() { + x.CertResource = "" + } else { + x.CertResource = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ConsulGatewayTLSSDSConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ClusterName = "" + } else { + x.ClusterName = (string)(r.DecodeString()) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CertResource = "" + } else { + x.CertResource = (string)(r.DecodeString()) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *ConsulGatewayTLSConfig) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Enabled)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Enabled\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Enabled`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Enabled)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TLSMinVersion))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TLSMinVersion)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TLSMinVersion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TLSMinVersion`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TLSMinVersion))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TLSMinVersion)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TLSMaxVersion))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TLSMaxVersion)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TLSMaxVersion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TLSMaxVersion`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TLSMaxVersion))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TLSMaxVersion)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.CipherSuites == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.CipherSuites), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CipherSuites\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CipherSuites`) + } + r.WriteMapElemValue() + if x.CipherSuites == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.CipherSuites), e) + } + } + } + var yyn15 bool + if x.SDS == nil { + yyn15 = true + goto LABEL15 + } + LABEL15: + if yyr2 || yy2arr2 { + if yyn15 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.SDS == nil { + r.EncodeNil() + } else { + x.SDS.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SDS\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SDS`) + } + r.WriteMapElemValue() + if yyn15 { + r.EncodeNil() + } else { + if x.SDS == nil { + r.EncodeNil() + } else { + x.SDS.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ConsulGatewayTLSConfig) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ConsulGatewayTLSConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Enabled": + if r.TryDecodeAsNil() { + x.Enabled = false + } else { + x.Enabled = (bool)(r.DecodeBool()) + } + case "TLSMinVersion": + if r.TryDecodeAsNil() { + x.TLSMinVersion = "" + } else { + x.TLSMinVersion = (string)(r.DecodeString()) + } + case "TLSMaxVersion": + if r.TryDecodeAsNil() { + x.TLSMaxVersion = "" + } else { + x.TLSMaxVersion = (string)(r.DecodeString()) + } + case "CipherSuites": + if r.TryDecodeAsNil() { + x.CipherSuites = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.CipherSuites), d) + } + } + case "SDS": + if r.TryDecodeAsNil() { + if true && x.SDS != nil { + x.SDS = nil + } + } else { + if x.SDS == nil { + x.SDS = new(ConsulGatewayTLSSDSConfig) + } + + x.SDS.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ConsulGatewayTLSConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Enabled = false + } else { + x.Enabled = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TLSMinVersion = "" + } else { + x.TLSMinVersion = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TLSMaxVersion = "" + } else { + x.TLSMaxVersion = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CipherSuites = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.CipherSuites), d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.SDS != nil { + x.SDS = nil + } + } else { + if x.SDS == nil { + x.SDS = new(ConsulGatewayTLSSDSConfig) + } + + x.SDS.CodecDecodeSelf(d) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *ConsulHTTPHeaderModifiers) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Add == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Add), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Add\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Add`) + } + r.WriteMapElemValue() + if x.Add == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Add), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Set == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Set), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Set\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Set`) + } + r.WriteMapElemValue() + if x.Set == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Set), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Remove == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Remove), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Remove\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Remove`) + } + r.WriteMapElemValue() + if x.Remove == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Remove), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ConsulHTTPHeaderModifiers) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ConsulHTTPHeaderModifiers) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Add": + if r.TryDecodeAsNil() { + x.Add = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Add), d) + } + } + case "Set": + if r.TryDecodeAsNil() { + x.Set = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Set), d) + } + } + case "Remove": + if r.TryDecodeAsNil() { + x.Remove = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Remove), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ConsulHTTPHeaderModifiers) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Add = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Add), d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Set = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Set), d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Remove = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Remove), d) + } + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *ConsulIngressService) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Hosts == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Hosts), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Hosts\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Hosts`) + } + r.WriteMapElemValue() + if x.Hosts == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Hosts), e) + } + } + } + var yyn9 bool + if x.TLS == nil { + yyn9 = true + goto LABEL9 + } + LABEL9: + if yyr2 || yy2arr2 { + if yyn9 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.TLS == nil { + r.EncodeNil() + } else { + x.TLS.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TLS\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TLS`) + } + r.WriteMapElemValue() + if yyn9 { + r.EncodeNil() + } else { + if x.TLS == nil { + r.EncodeNil() + } else { + x.TLS.CodecEncodeSelf(e) + } + } + } + var yyn12 bool + if x.RequestHeaders == nil { + yyn12 = true + goto LABEL12 + } + LABEL12: + if yyr2 || yy2arr2 { + if yyn12 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.RequestHeaders == nil { + r.EncodeNil() + } else { + x.RequestHeaders.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RequestHeaders\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RequestHeaders`) + } + r.WriteMapElemValue() + if yyn12 { + r.EncodeNil() + } else { + if x.RequestHeaders == nil { + r.EncodeNil() + } else { + x.RequestHeaders.CodecEncodeSelf(e) + } + } + } + var yyn15 bool + if x.ResponseHeaders == nil { + yyn15 = true + goto LABEL15 + } + LABEL15: + if yyr2 || yy2arr2 { + if yyn15 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ResponseHeaders == nil { + r.EncodeNil() + } else { + x.ResponseHeaders.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ResponseHeaders\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ResponseHeaders`) + } + r.WriteMapElemValue() + if yyn15 { + r.EncodeNil() + } else { + if x.ResponseHeaders == nil { + r.EncodeNil() + } else { + x.ResponseHeaders.CodecEncodeSelf(e) + } + } + } + var yyn18 bool + if x.MaxConnections == nil { + yyn18 = true + goto LABEL18 + } + LABEL18: + if yyr2 || yy2arr2 { + if yyn18 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.MaxConnections == nil { + r.EncodeNil() + } else { + yy19 := *x.MaxConnections + if false { + } else { + r.EncodeUint(uint64(yy19)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxConnections\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxConnections`) + } + r.WriteMapElemValue() + if yyn18 { + r.EncodeNil() + } else { + if x.MaxConnections == nil { + r.EncodeNil() + } else { + yy21 := *x.MaxConnections + if false { + } else { + r.EncodeUint(uint64(yy21)) + } + } + } + } + var yyn23 bool + if x.MaxPendingRequests == nil { + yyn23 = true + goto LABEL23 + } + LABEL23: + if yyr2 || yy2arr2 { + if yyn23 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.MaxPendingRequests == nil { + r.EncodeNil() + } else { + yy24 := *x.MaxPendingRequests + if false { + } else { + r.EncodeUint(uint64(yy24)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxPendingRequests\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxPendingRequests`) + } + r.WriteMapElemValue() + if yyn23 { + r.EncodeNil() + } else { + if x.MaxPendingRequests == nil { + r.EncodeNil() + } else { + yy26 := *x.MaxPendingRequests + if false { + } else { + r.EncodeUint(uint64(yy26)) + } + } + } + } + var yyn28 bool + if x.MaxConcurrentRequests == nil { + yyn28 = true + goto LABEL28 + } + LABEL28: + if yyr2 || yy2arr2 { + if yyn28 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.MaxConcurrentRequests == nil { + r.EncodeNil() + } else { + yy29 := *x.MaxConcurrentRequests + if false { + } else { + r.EncodeUint(uint64(yy29)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxConcurrentRequests\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxConcurrentRequests`) + } + r.WriteMapElemValue() + if yyn28 { + r.EncodeNil() + } else { + if x.MaxConcurrentRequests == nil { + r.EncodeNil() + } else { + yy31 := *x.MaxConcurrentRequests + if false { + } else { + r.EncodeUint(uint64(yy31)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ConsulIngressService) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ConsulIngressService) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Hosts": + if r.TryDecodeAsNil() { + x.Hosts = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Hosts), d) + } + } + case "TLS": + if r.TryDecodeAsNil() { + if true && x.TLS != nil { + x.TLS = nil + } + } else { + if x.TLS == nil { + x.TLS = new(ConsulGatewayTLSConfig) + } + + x.TLS.CodecDecodeSelf(d) + } + case "RequestHeaders": + if r.TryDecodeAsNil() { + if true && x.RequestHeaders != nil { + x.RequestHeaders = nil + } + } else { + if x.RequestHeaders == nil { + x.RequestHeaders = new(ConsulHTTPHeaderModifiers) + } + + x.RequestHeaders.CodecDecodeSelf(d) + } + case "ResponseHeaders": + if r.TryDecodeAsNil() { + if true && x.ResponseHeaders != nil { + x.ResponseHeaders = nil + } + } else { + if x.ResponseHeaders == nil { + x.ResponseHeaders = new(ConsulHTTPHeaderModifiers) + } + + x.ResponseHeaders.CodecDecodeSelf(d) + } + case "MaxConnections": + if r.TryDecodeAsNil() { + if true && x.MaxConnections != nil { + x.MaxConnections = nil + } + } else { + if x.MaxConnections == nil { + x.MaxConnections = new(uint32) + } + + if false { + } else { + *x.MaxConnections = (uint32)(z.C.UintV(r.DecodeUint64(), 32)) + } + } + case "MaxPendingRequests": + if r.TryDecodeAsNil() { + if true && x.MaxPendingRequests != nil { + x.MaxPendingRequests = nil + } + } else { + if x.MaxPendingRequests == nil { + x.MaxPendingRequests = new(uint32) + } + + if false { + } else { + *x.MaxPendingRequests = (uint32)(z.C.UintV(r.DecodeUint64(), 32)) + } + } + case "MaxConcurrentRequests": + if r.TryDecodeAsNil() { + if true && x.MaxConcurrentRequests != nil { + x.MaxConcurrentRequests = nil + } + } else { + if x.MaxConcurrentRequests == nil { + x.MaxConcurrentRequests = new(uint32) + } + + if false { + } else { + *x.MaxConcurrentRequests = (uint32)(z.C.UintV(r.DecodeUint64(), 32)) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ConsulIngressService) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj16 int + var yyb16 bool + var yyhl16 bool = l >= 0 + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Hosts = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Hosts), d) + } + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.TLS != nil { + x.TLS = nil + } + } else { + if x.TLS == nil { + x.TLS = new(ConsulGatewayTLSConfig) + } + + x.TLS.CodecDecodeSelf(d) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.RequestHeaders != nil { + x.RequestHeaders = nil + } + } else { + if x.RequestHeaders == nil { + x.RequestHeaders = new(ConsulHTTPHeaderModifiers) + } + + x.RequestHeaders.CodecDecodeSelf(d) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ResponseHeaders != nil { + x.ResponseHeaders = nil + } + } else { + if x.ResponseHeaders == nil { + x.ResponseHeaders = new(ConsulHTTPHeaderModifiers) + } + + x.ResponseHeaders.CodecDecodeSelf(d) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.MaxConnections != nil { + x.MaxConnections = nil + } + } else { + if x.MaxConnections == nil { + x.MaxConnections = new(uint32) + } + + if false { + } else { + *x.MaxConnections = (uint32)(z.C.UintV(r.DecodeUint64(), 32)) + } + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.MaxPendingRequests != nil { + x.MaxPendingRequests = nil + } + } else { + if x.MaxPendingRequests == nil { + x.MaxPendingRequests = new(uint32) + } + + if false { + } else { + *x.MaxPendingRequests = (uint32)(z.C.UintV(r.DecodeUint64(), 32)) + } + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.MaxConcurrentRequests != nil { + x.MaxConcurrentRequests = nil + } + } else { + if x.MaxConcurrentRequests == nil { + x.MaxConcurrentRequests = new(uint32) + } + + if false { + } else { + *x.MaxConcurrentRequests = (uint32)(z.C.UintV(r.DecodeUint64(), 32)) + } + } + for { + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj16-1, "") + } + r.ReadArrayEnd() +} + +func (x *ConsulIngressListener) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Port)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Port\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Port`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Port)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Protocol))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Protocol)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Protocol\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Protocol`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Protocol))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Protocol)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Services == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoConsulIngressService(([]*ConsulIngressService)(x.Services), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Services\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Services`) + } + r.WriteMapElemValue() + if x.Services == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoConsulIngressService(([]*ConsulIngressService)(x.Services), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ConsulIngressListener) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ConsulIngressListener) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Port": + if r.TryDecodeAsNil() { + x.Port = 0 + } else { + x.Port = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Protocol": + if r.TryDecodeAsNil() { + x.Protocol = "" + } else { + x.Protocol = (string)(r.DecodeString()) + } + case "Services": + if r.TryDecodeAsNil() { + x.Services = nil + } else { + if false { + } else { + h.decSlicePtrtoConsulIngressService((*[]*ConsulIngressService)(&x.Services), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ConsulIngressListener) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Port = 0 + } else { + x.Port = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Protocol = "" + } else { + x.Protocol = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Services = nil + } else { + if false { + } else { + h.decSlicePtrtoConsulIngressService((*[]*ConsulIngressService)(&x.Services), d) + } + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *ConsulIngressConfigEntry) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + var yyn3 bool + if x.TLS == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.TLS == nil { + r.EncodeNil() + } else { + x.TLS.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TLS\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TLS`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.TLS == nil { + r.EncodeNil() + } else { + x.TLS.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Listeners == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoConsulIngressListener(([]*ConsulIngressListener)(x.Listeners), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Listeners\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Listeners`) + } + r.WriteMapElemValue() + if x.Listeners == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoConsulIngressListener(([]*ConsulIngressListener)(x.Listeners), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ConsulIngressConfigEntry) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ConsulIngressConfigEntry) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "TLS": + if r.TryDecodeAsNil() { + if true && x.TLS != nil { + x.TLS = nil + } + } else { + if x.TLS == nil { + x.TLS = new(ConsulGatewayTLSConfig) + } + + x.TLS.CodecDecodeSelf(d) + } + case "Listeners": + if r.TryDecodeAsNil() { + x.Listeners = nil + } else { + if false { + } else { + h.decSlicePtrtoConsulIngressListener((*[]*ConsulIngressListener)(&x.Listeners), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ConsulIngressConfigEntry) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.TLS != nil { + x.TLS = nil + } + } else { + if x.TLS == nil { + x.TLS = new(ConsulGatewayTLSConfig) + } + + x.TLS.CodecDecodeSelf(d) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Listeners = nil + } else { + if false { + } else { + h.decSlicePtrtoConsulIngressListener((*[]*ConsulIngressListener)(&x.Listeners), d) + } + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *ConsulLinkedService) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.CAFile))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.CAFile)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CAFile\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CAFile`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.CAFile))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.CAFile)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.CertFile))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.CertFile)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CertFile\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CertFile`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.CertFile))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.CertFile)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KeyFile))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KeyFile)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KeyFile\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KeyFile`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KeyFile))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KeyFile)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SNI))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SNI)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SNI\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SNI`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SNI))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SNI)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ConsulLinkedService) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ConsulLinkedService) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "CAFile": + if r.TryDecodeAsNil() { + x.CAFile = "" + } else { + x.CAFile = (string)(r.DecodeString()) + } + case "CertFile": + if r.TryDecodeAsNil() { + x.CertFile = "" + } else { + x.CertFile = (string)(r.DecodeString()) + } + case "KeyFile": + if r.TryDecodeAsNil() { + x.KeyFile = "" + } else { + x.KeyFile = (string)(r.DecodeString()) + } + case "SNI": + if r.TryDecodeAsNil() { + x.SNI = "" + } else { + x.SNI = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ConsulLinkedService) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CAFile = "" + } else { + x.CAFile = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CertFile = "" + } else { + x.CertFile = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.KeyFile = "" + } else { + x.KeyFile = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SNI = "" + } else { + x.SNI = (string)(r.DecodeString()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *ConsulTerminatingConfigEntry) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Services == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoConsulLinkedService(([]*ConsulLinkedService)(x.Services), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Services\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Services`) + } + r.WriteMapElemValue() + if x.Services == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoConsulLinkedService(([]*ConsulLinkedService)(x.Services), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ConsulTerminatingConfigEntry) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ConsulTerminatingConfigEntry) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Services": + if r.TryDecodeAsNil() { + x.Services = nil + } else { + if false { + } else { + h.decSlicePtrtoConsulLinkedService((*[]*ConsulLinkedService)(&x.Services), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ConsulTerminatingConfigEntry) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Services = nil + } else { + if false { + } else { + h.decSlicePtrtoConsulLinkedService((*[]*ConsulLinkedService)(&x.Services), d) + } + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *ConsulMeshConfigEntry) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(0) + } else { + r.WriteMapStart(0) + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ConsulMeshConfigEntry) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ConsulMeshConfigEntry) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ConsulMeshConfigEntry) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4 int + var yyb4 bool + var yyhl4 bool = l >= 0 + for { + yyj4++ + if yyhl4 { + yyb4 = yyj4 > l + } else { + yyb4 = r.CheckBreak() + } + if yyb4 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj4-1, "") + } + r.ReadArrayEnd() +} + +func (x *StreamingRpcHeader) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Method))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Method)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Method\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Method`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Method))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Method)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *StreamingRpcHeader) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *StreamingRpcHeader) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Method": + if r.TryDecodeAsNil() { + x.Method = "" + } else { + x.Method = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *StreamingRpcHeader) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Method = "" + } else { + x.Method = (string)(r.DecodeString()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *StreamingRpcAck) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Error))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Error)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Error\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Error`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Error))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Error)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *StreamingRpcAck) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *StreamingRpcAck) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Error": + if r.TryDecodeAsNil() { + x.Error = "" + } else { + x.Error = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *StreamingRpcAck) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Error = "" + } else { + x.Error = (string)(r.DecodeString()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *StreamingRpcRegistry) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(0) + } else { + r.WriteMapStart(0) + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *StreamingRpcRegistry) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *StreamingRpcRegistry) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *StreamingRpcRegistry) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4 int + var yyb4 bool + var yyhl4 bool = l >= 0 + for { + yyj4++ + if yyhl4 { + yyb4 = yyj4 > l + } else { + yyb4 = r.CheckBreak() + } + if yyb4 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj4-1, "") + } + r.ReadArrayEnd() +} + +func (x MessageType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + r.EncodeUint(uint64(x)) + } +} + +func (x *MessageType) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (MessageType)(z.C.UintV(r.DecodeUint64(), 8)) + } +} + +func (x *NamespacedID) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NamespacedID) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NamespacedID) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NamespacedID) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *InternalRpcInfo) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *InternalRpcInfo) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *InternalRpcInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Forwarded": + if r.TryDecodeAsNil() { + x.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *InternalRpcInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *QueryOptions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(12) + } else { + r.WriteMapStart(12) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.EncExtension(x.MaxQueryTime, yyxt13) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { + z.EncExtension(x.MaxQueryTime, yyxt14) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *QueryOptions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *QueryOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.MaxQueryTime = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { + z.DecExtension(x.MaxQueryTime, yyxt8) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *QueryOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MaxQueryTime = 0 + } else { + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { + z.DecExtension(x.MaxQueryTime, yyxt22) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } + r.ReadArrayEnd() +} + +func (x *AgentPprofRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(19) + } else { + r.WriteMapStart(19) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt4 := z.Extension(z.I2Rtid(x.ReqType)); yyxt4 != nil { + z.EncExtension(x.ReqType, yyxt4) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ReqType))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ReqType)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ReqType\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ReqType`) + } + r.WriteMapElemValue() + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.ReqType)); yyxt5 != nil { + z.EncExtension(x.ReqType, yyxt5) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ReqType))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ReqType)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Profile))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Profile)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Profile\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Profile`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Profile))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Profile)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Seconds)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Seconds\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Seconds`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Seconds)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Debug)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Debug\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Debug`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Debug)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.GC)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"GC\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `GC`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.GC)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ServerID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServerID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ServerID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ServerID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ServerID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServerID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt34 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt34 != nil { + z.EncExtension(x.MaxQueryTime, yyxt34) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt35 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt35 != nil { + z.EncExtension(x.MaxQueryTime, yyxt35) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AgentPprofRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AgentPprofRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ReqType": + if r.TryDecodeAsNil() { + x.ReqType = "" + } else { + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.ReqType)); yyxt5 != nil { + z.DecExtension(x.ReqType, yyxt5) + } else { + x.ReqType = (pkg11_pprof.ReqType)(r.DecodeString()) + } + } + case "Profile": + if r.TryDecodeAsNil() { + x.Profile = "" + } else { + x.Profile = (string)(r.DecodeString()) + } + case "Seconds": + if r.TryDecodeAsNil() { + x.Seconds = 0 + } else { + x.Seconds = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Debug": + if r.TryDecodeAsNil() { + x.Debug = 0 + } else { + x.Debug = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "GC": + if r.TryDecodeAsNil() { + x.GC = 0 + } else { + x.GC = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "ServerID": + if r.TryDecodeAsNil() { + x.ServerID = "" + } else { + x.ServerID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.DecExtension(x.MaxQueryTime, yyxt16) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AgentPprofRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj25 int + var yyb25 bool + var yyhl25 bool = l >= 0 + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ReqType = "" + } else { + if false { + } else if yyxt27 := z.Extension(z.I2Rtid(x.ReqType)); yyxt27 != nil { + z.DecExtension(x.ReqType, yyxt27) + } else { + x.ReqType = (pkg11_pprof.ReqType)(r.DecodeString()) + } + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Profile = "" + } else { + x.Profile = (string)(r.DecodeString()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Seconds = 0 + } else { + x.Seconds = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Debug = 0 + } else { + x.Debug = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.GC = 0 + } else { + x.GC = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ServerID = "" + } else { + x.ServerID = (string)(r.DecodeString()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt38 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt38 != nil { + z.DecExtension(x.MaxQueryTime, yyxt38) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj25-1, "") + } + r.ReadArrayEnd() +} + +func (x *AgentPprofResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AgentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AgentID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AgentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AgentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AgentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AgentID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Payload == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Payload)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Payload\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Payload`) + } + r.WriteMapElemValue() + if x.Payload == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Payload)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.HTTPHeaders == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.HTTPHeaders), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HTTPHeaders\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HTTPHeaders`) + } + r.WriteMapElemValue() + if x.HTTPHeaders == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.HTTPHeaders), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AgentPprofResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AgentPprofResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AgentID": + if r.TryDecodeAsNil() { + x.AgentID = "" + } else { + x.AgentID = (string)(r.DecodeString()) + } + case "Payload": + if r.TryDecodeAsNil() { + x.Payload = nil + } else { + if false { + } else { + x.Payload = r.DecodeBytes(([]byte)(x.Payload), false) + } + } + case "HTTPHeaders": + if r.TryDecodeAsNil() { + x.HTTPHeaders = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.HTTPHeaders), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AgentPprofResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AgentID = "" + } else { + x.AgentID = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Payload = nil + } else { + if false { + } else { + x.Payload = r.DecodeBytes(([]byte)(x.Payload), false) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HTTPHeaders = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.HTTPHeaders), d) + } + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *WriteRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *WriteRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *WriteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *WriteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *AuthenticatedIdentity) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + var yyn3 bool + if x.ACLToken == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ACLToken == nil { + r.EncodeNil() + } else { + x.ACLToken.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ACLToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ACLToken`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.ACLToken == nil { + r.EncodeNil() + } else { + x.ACLToken.CodecEncodeSelf(e) + } + } + } + var yyn6 bool + if x.Claims == nil { + yyn6 = true + goto LABEL6 + } + LABEL6: + if yyr2 || yy2arr2 { + if yyn6 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Claims == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.Claims)); yyxt7 != nil { + z.EncExtension(x.Claims, yyxt7) + } else { + z.EncFallback(x.Claims) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Claims\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Claims`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.Claims == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.Claims)); yyxt8 != nil { + z.EncExtension(x.Claims, yyxt8) + } else { + z.EncFallback(x.Claims) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ClientID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ClientID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TLSName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TLSName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TLSName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TLSName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TLSName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TLSName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.RemoteIP == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.RemoteIP)); yyxt16 != nil { + z.EncExtension(x.RemoteIP, yyxt16) + } else if !z.EncBinary() { + z.EncTextMarshal(x.RemoteIP) + } else { + h.encnet_IP((net.IP)(x.RemoteIP), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RemoteIP\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RemoteIP`) + } + r.WriteMapElemValue() + if x.RemoteIP == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.RemoteIP)); yyxt17 != nil { + z.EncExtension(x.RemoteIP, yyxt17) + } else if !z.EncBinary() { + z.EncTextMarshal(x.RemoteIP) + } else { + h.encnet_IP((net.IP)(x.RemoteIP), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AuthenticatedIdentity) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AuthenticatedIdentity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ACLToken": + if r.TryDecodeAsNil() { + if true && x.ACLToken != nil { + x.ACLToken = nil + } + } else { + if x.ACLToken == nil { + x.ACLToken = new(ACLToken) + } + + x.ACLToken.CodecDecodeSelf(d) + } + case "Claims": + if r.TryDecodeAsNil() { + if true && x.Claims != nil { + x.Claims = nil + } + } else { + if x.Claims == nil { + x.Claims = new(IdentityClaims) + } + + if false { + } else if yyxt6 := z.Extension(z.I2Rtid(x.Claims)); yyxt6 != nil { + z.DecExtension(x.Claims, yyxt6) + } else { + z.DecFallback(x.Claims, false) + } + } + case "ClientID": + if r.TryDecodeAsNil() { + x.ClientID = "" + } else { + x.ClientID = (string)(r.DecodeString()) + } + case "TLSName": + if r.TryDecodeAsNil() { + x.TLSName = "" + } else { + x.TLSName = (string)(r.DecodeString()) + } + case "RemoteIP": + if r.TryDecodeAsNil() { + x.RemoteIP = nil + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.RemoteIP)); yyxt10 != nil { + z.DecExtension(x.RemoteIP, yyxt10) + } else if !z.DecBinary() { + z.DecTextUnmarshal(&x.RemoteIP) + } else { + h.decnet_IP((*net.IP)(&x.RemoteIP), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AuthenticatedIdentity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ACLToken != nil { + x.ACLToken = nil + } + } else { + if x.ACLToken == nil { + x.ACLToken = new(ACLToken) + } + + x.ACLToken.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Claims != nil { + x.Claims = nil + } + } else { + if x.Claims == nil { + x.Claims = new(IdentityClaims) + } + + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.Claims)); yyxt14 != nil { + z.DecExtension(x.Claims, yyxt14) + } else { + z.DecFallback(x.Claims, false) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ClientID = "" + } else { + x.ClientID = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TLSName = "" + } else { + x.TLSName = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RemoteIP = nil + } else { + if false { + } else if yyxt18 := z.Extension(z.I2Rtid(x.RemoteIP)); yyxt18 != nil { + z.DecExtension(x.RemoteIP, yyxt18) + } else if !z.DecBinary() { + z.DecTextUnmarshal(&x.RemoteIP) + } else { + h.decnet_IP((*net.IP)(&x.RemoteIP), d) + } + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *QueryMeta) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.EncExtension(x.LastContact, yyxt7) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.EncExtension(x.LastContact, yyxt8) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *QueryMeta) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *QueryMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Index": + if r.TryDecodeAsNil() { + x.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.LastContact = 0 + } else { + if false { + } else if yyxt6 := z.Extension(z.I2Rtid(x.LastContact)); yyxt6 != nil { + z.DecExtension(x.LastContact, yyxt6) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *QueryMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LastContact = 0 + } else { + if false { + } else if yyxt12 := z.Extension(z.I2Rtid(x.LastContact)); yyxt12 != nil { + z.DecExtension(x.LastContact, yyxt12) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *WriteMeta) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *WriteMeta) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *WriteMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Index": + if r.TryDecodeAsNil() { + x.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *WriteMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeRegisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + var yyn3 bool + if x.Node == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Node == nil { + r.EncodeNil() + } else { + x.Node.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Node\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Node`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Node == nil { + r.EncodeNil() + } else { + x.Node.CodecEncodeSelf(e) + } + } + } + var yyn6 bool + if x.NodeEvent == nil { + yyn6 = true + goto LABEL6 + } + LABEL6: + if yyr2 || yy2arr2 { + if yyn6 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.NodeEvent == nil { + r.EncodeNil() + } else { + x.NodeEvent.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeEvent\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeEvent`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.NodeEvent == nil { + r.EncodeNil() + } else { + x.NodeEvent.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.CreateNodePool)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateNodePool\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateNodePool`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.CreateNodePool)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeRegisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeRegisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Node": + if r.TryDecodeAsNil() { + if true && x.Node != nil { + x.Node = nil + } + } else { + if x.Node == nil { + x.Node = new(Node) + } + + x.Node.CodecDecodeSelf(d) + } + case "NodeEvent": + if r.TryDecodeAsNil() { + if true && x.NodeEvent != nil { + x.NodeEvent = nil + } + } else { + if x.NodeEvent == nil { + x.NodeEvent = new(NodeEvent) + } + + x.NodeEvent.CodecDecodeSelf(d) + } + case "CreateNodePool": + if r.TryDecodeAsNil() { + x.CreateNodePool = false + } else { + x.CreateNodePool = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeRegisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Node != nil { + x.Node = nil + } + } else { + if x.Node == nil { + x.Node = new(Node) + } + + x.Node.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.NodeEvent != nil { + x.NodeEvent = nil + } + } else { + if x.NodeEvent == nil { + x.NodeEvent = new(NodeEvent) + } + + x.NodeEvent.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateNodePool = false + } else { + x.CreateNodePool = (bool)(r.DecodeBool()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeDeregisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeDeregisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeDeregisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeDeregisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeBatchDeregisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.NodeIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.NodeIDs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeIDs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeIDs`) + } + r.WriteMapElemValue() + if x.NodeIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.NodeIDs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeBatchDeregisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeBatchDeregisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodeIDs": + if r.TryDecodeAsNil() { + x.NodeIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.NodeIDs), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeBatchDeregisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.NodeIDs), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeServerInfo) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RPCAdvertiseAddr))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RPCAdvertiseAddr)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RPCAdvertiseAddr\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RPCAdvertiseAddr`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RPCAdvertiseAddr))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RPCAdvertiseAddr)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.RPCMajorVersion)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RPCMajorVersion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RPCMajorVersion`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.RPCMajorVersion)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.RPCMinorVersion)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RPCMinorVersion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RPCMinorVersion`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.RPCMinorVersion)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Datacenter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Datacenter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeServerInfo) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeServerInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "RPCAdvertiseAddr": + if r.TryDecodeAsNil() { + x.RPCAdvertiseAddr = "" + } else { + x.RPCAdvertiseAddr = (string)(r.DecodeString()) + } + case "RPCMajorVersion": + if r.TryDecodeAsNil() { + x.RPCMajorVersion = 0 + } else { + x.RPCMajorVersion = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "RPCMinorVersion": + if r.TryDecodeAsNil() { + x.RPCMinorVersion = 0 + } else { + x.RPCMinorVersion = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "Datacenter": + if r.TryDecodeAsNil() { + x.Datacenter = "" + } else { + x.Datacenter = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeServerInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RPCAdvertiseAddr = "" + } else { + x.RPCAdvertiseAddr = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RPCMajorVersion = 0 + } else { + x.RPCMajorVersion = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RPCMinorVersion = 0 + } else { + x.RPCMinorVersion = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Datacenter = "" + } else { + x.Datacenter = (string)(r.DecodeString()) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeUpdateStatusRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Status\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } + var yyn9 bool + if x.NodeEvent == nil { + yyn9 = true + goto LABEL9 + } + LABEL9: + if yyr2 || yy2arr2 { + if yyn9 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.NodeEvent == nil { + r.EncodeNil() + } else { + x.NodeEvent.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeEvent\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeEvent`) + } + r.WriteMapElemValue() + if yyn9 { + r.EncodeNil() + } else { + if x.NodeEvent == nil { + r.EncodeNil() + } else { + x.NodeEvent.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.UpdatedAt)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"UpdatedAt\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `UpdatedAt`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.UpdatedAt)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeUpdateStatusRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeUpdateStatusRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "Status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + case "NodeEvent": + if r.TryDecodeAsNil() { + if true && x.NodeEvent != nil { + x.NodeEvent = nil + } + } else { + if x.NodeEvent == nil { + x.NodeEvent = new(NodeEvent) + } + + x.NodeEvent.CodecDecodeSelf(d) + } + case "UpdatedAt": + if r.TryDecodeAsNil() { + x.UpdatedAt = 0 + } else { + x.UpdatedAt = (int64)(r.DecodeInt64()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeUpdateStatusRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.NodeEvent != nil { + x.NodeEvent = nil + } + } else { + if x.NodeEvent == nil { + x.NodeEvent = new(NodeEvent) + } + + x.NodeEvent.CodecDecodeSelf(d) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.UpdatedAt = 0 + } else { + x.UpdatedAt = (int64)(r.DecodeInt64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeUpdateDrainRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(12) + } else { + r.WriteMapStart(12) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + var yyn6 bool + if x.DrainStrategy == nil { + yyn6 = true + goto LABEL6 + } + LABEL6: + if yyr2 || yy2arr2 { + if yyn6 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.DrainStrategy == nil { + r.EncodeNil() + } else { + x.DrainStrategy.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DrainStrategy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DrainStrategy`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.DrainStrategy == nil { + r.EncodeNil() + } else { + x.DrainStrategy.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.MarkEligible)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MarkEligible\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MarkEligible`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.MarkEligible)) + } + } + var yyn12 bool + if x.NodeEvent == nil { + yyn12 = true + goto LABEL12 + } + LABEL12: + if yyr2 || yy2arr2 { + if yyn12 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.NodeEvent == nil { + r.EncodeNil() + } else { + x.NodeEvent.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeEvent\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeEvent`) + } + r.WriteMapElemValue() + if yyn12 { + r.EncodeNil() + } else { + if x.NodeEvent == nil { + r.EncodeNil() + } else { + x.NodeEvent.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.UpdatedAt)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"UpdatedAt\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `UpdatedAt`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.UpdatedAt)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Meta), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Meta\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) + } + r.WriteMapElemValue() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Meta), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.UpdatedBy))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.UpdatedBy)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"UpdatedBy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `UpdatedBy`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.UpdatedBy))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.UpdatedBy)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeUpdateDrainRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeUpdateDrainRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "DrainStrategy": + if r.TryDecodeAsNil() { + if true && x.DrainStrategy != nil { + x.DrainStrategy = nil + } + } else { + if x.DrainStrategy == nil { + x.DrainStrategy = new(DrainStrategy) + } + + x.DrainStrategy.CodecDecodeSelf(d) + } + case "MarkEligible": + if r.TryDecodeAsNil() { + x.MarkEligible = false + } else { + x.MarkEligible = (bool)(r.DecodeBool()) + } + case "NodeEvent": + if r.TryDecodeAsNil() { + if true && x.NodeEvent != nil { + x.NodeEvent = nil + } + } else { + if x.NodeEvent == nil { + x.NodeEvent = new(NodeEvent) + } + + x.NodeEvent.CodecDecodeSelf(d) + } + case "UpdatedAt": + if r.TryDecodeAsNil() { + x.UpdatedAt = 0 + } else { + x.UpdatedAt = (int64)(r.DecodeInt64()) + } + case "Meta": + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Meta), d) + } + } + case "UpdatedBy": + if r.TryDecodeAsNil() { + x.UpdatedBy = "" + } else { + x.UpdatedBy = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeUpdateDrainRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.DrainStrategy != nil { + x.DrainStrategy = nil + } + } else { + if x.DrainStrategy == nil { + x.DrainStrategy = new(DrainStrategy) + } + + x.DrainStrategy.CodecDecodeSelf(d) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MarkEligible = false + } else { + x.MarkEligible = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.NodeEvent != nil { + x.NodeEvent = nil + } + } else { + if x.NodeEvent == nil { + x.NodeEvent = new(NodeEvent) + } + + x.NodeEvent.CodecDecodeSelf(d) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.UpdatedAt = 0 + } else { + x.UpdatedAt = (int64)(r.DecodeInt64()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Meta), d) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.UpdatedBy = "" + } else { + x.UpdatedBy = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } + r.ReadArrayEnd() +} + +func (x *BatchNodeUpdateDrainRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Updates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoDrainUpdate((map[string]*DrainUpdate)(x.Updates), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Updates\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Updates`) + } + r.WriteMapElemValue() + if x.Updates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoDrainUpdate((map[string]*DrainUpdate)(x.Updates), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.NodeEvents == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoNodeEvent((map[string]*NodeEvent)(x.NodeEvents), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeEvents\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeEvents`) + } + r.WriteMapElemValue() + if x.NodeEvents == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoNodeEvent((map[string]*NodeEvent)(x.NodeEvents), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.UpdatedAt)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"UpdatedAt\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `UpdatedAt`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.UpdatedAt)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *BatchNodeUpdateDrainRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *BatchNodeUpdateDrainRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Updates": + if r.TryDecodeAsNil() { + x.Updates = nil + } else { + if false { + } else { + h.decMapstringPtrtoDrainUpdate((*map[string]*DrainUpdate)(&x.Updates), d) + } + } + case "NodeEvents": + if r.TryDecodeAsNil() { + x.NodeEvents = nil + } else { + if false { + } else { + h.decMapstringPtrtoNodeEvent((*map[string]*NodeEvent)(&x.NodeEvents), d) + } + } + case "UpdatedAt": + if r.TryDecodeAsNil() { + x.UpdatedAt = 0 + } else { + x.UpdatedAt = (int64)(r.DecodeInt64()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *BatchNodeUpdateDrainRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj14 int + var yyb14 bool + var yyhl14 bool = l >= 0 + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Updates = nil + } else { + if false { + } else { + h.decMapstringPtrtoDrainUpdate((*map[string]*DrainUpdate)(&x.Updates), d) + } + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeEvents = nil + } else { + if false { + } else { + h.decMapstringPtrtoNodeEvent((*map[string]*NodeEvent)(&x.NodeEvents), d) + } + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.UpdatedAt = 0 + } else { + x.UpdatedAt = (int64)(r.DecodeInt64()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj14-1, "") + } + r.ReadArrayEnd() +} + +func (x *DrainUpdate) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + var yyn3 bool + if x.DrainStrategy == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.DrainStrategy == nil { + r.EncodeNil() + } else { + x.DrainStrategy.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DrainStrategy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DrainStrategy`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.DrainStrategy == nil { + r.EncodeNil() + } else { + x.DrainStrategy.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.MarkEligible)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MarkEligible\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MarkEligible`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.MarkEligible)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DrainUpdate) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DrainUpdate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DrainStrategy": + if r.TryDecodeAsNil() { + if true && x.DrainStrategy != nil { + x.DrainStrategy = nil + } + } else { + if x.DrainStrategy == nil { + x.DrainStrategy = new(DrainStrategy) + } + + x.DrainStrategy.CodecDecodeSelf(d) + } + case "MarkEligible": + if r.TryDecodeAsNil() { + x.MarkEligible = false + } else { + x.MarkEligible = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DrainUpdate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.DrainStrategy != nil { + x.DrainStrategy = nil + } + } else { + if x.DrainStrategy == nil { + x.DrainStrategy = new(DrainStrategy) + } + + x.DrainStrategy.CodecDecodeSelf(d) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MarkEligible = false + } else { + x.MarkEligible = (bool)(r.DecodeBool()) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeUpdateEligibilityRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Eligibility))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Eligibility)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Eligibility\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Eligibility`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Eligibility))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Eligibility)) + } + } + } + var yyn9 bool + if x.NodeEvent == nil { + yyn9 = true + goto LABEL9 + } + LABEL9: + if yyr2 || yy2arr2 { + if yyn9 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.NodeEvent == nil { + r.EncodeNil() + } else { + x.NodeEvent.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeEvent\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeEvent`) + } + r.WriteMapElemValue() + if yyn9 { + r.EncodeNil() + } else { + if x.NodeEvent == nil { + r.EncodeNil() + } else { + x.NodeEvent.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.UpdatedAt)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"UpdatedAt\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `UpdatedAt`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.UpdatedAt)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeUpdateEligibilityRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeUpdateEligibilityRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "Eligibility": + if r.TryDecodeAsNil() { + x.Eligibility = "" + } else { + x.Eligibility = (string)(r.DecodeString()) + } + case "NodeEvent": + if r.TryDecodeAsNil() { + if true && x.NodeEvent != nil { + x.NodeEvent = nil + } + } else { + if x.NodeEvent == nil { + x.NodeEvent = new(NodeEvent) + } + + x.NodeEvent.CodecDecodeSelf(d) + } + case "UpdatedAt": + if r.TryDecodeAsNil() { + x.UpdatedAt = 0 + } else { + x.UpdatedAt = (int64)(r.DecodeInt64()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeUpdateEligibilityRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Eligibility = "" + } else { + x.Eligibility = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.NodeEvent != nil { + x.NodeEvent = nil + } + } else { + if x.NodeEvent == nil { + x.NodeEvent = new(NodeEvent) + } + + x.NodeEvent.CodecDecodeSelf(d) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.UpdatedAt = 0 + } else { + x.UpdatedAt = (int64)(r.DecodeInt64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeEvaluateRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeEvaluateRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeEvaluateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeEvaluateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(14) + } else { + r.WriteMapStart(14) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SecretID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SecretID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { + z.EncExtension(x.MaxQueryTime, yyxt19) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.EncExtension(x.MaxQueryTime, yyxt20) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "SecretID": + if r.TryDecodeAsNil() { + x.SecretID = "" + } else { + x.SecretID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj19 int + var yyb19 bool + var yyhl19 bool = l >= 0 + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SecretID = "" + } else { + x.SecretID = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { + z.DecExtension(x.MaxQueryTime, yyxt26) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj19-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobRegisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(14) + } else { + r.WriteMapStart(14) + } + var yyn3 bool + if x.Submission == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Submission == nil { + r.EncodeNil() + } else { + x.Submission.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Submission\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Submission`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Submission == nil { + r.EncodeNil() + } else { + x.Submission.CodecEncodeSelf(e) + } + } + } + var yyn6 bool + if x.Job == nil { + yyn6 = true + goto LABEL6 + } + LABEL6: + if yyr2 || yy2arr2 { + if yyn6 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Job\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.EnforceIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EnforceIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EnforceIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.EnforceIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.PreserveCounts)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PreserveCounts\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PreserveCounts`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.PreserveCounts)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.PolicyOverride)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PolicyOverride\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PolicyOverride`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.PolicyOverride)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.EvalPriority)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalPriority\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalPriority`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.EvalPriority)) + } + } + var yyn24 bool + if x.Eval == nil { + yyn24 = true + goto LABEL24 + } + LABEL24: + if yyr2 || yy2arr2 { + if yyn24 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Eval == nil { + r.EncodeNil() + } else { + x.Eval.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Eval\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Eval`) + } + r.WriteMapElemValue() + if yyn24 { + r.EncodeNil() + } else { + if x.Eval == nil { + r.EncodeNil() + } else { + x.Eval.CodecEncodeSelf(e) + } + } + } + var yyn27 bool + if x.Deployment == nil { + yyn27 = true + goto LABEL27 + } + LABEL27: + if yyr2 || yy2arr2 { + if yyn27 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Deployment == nil { + r.EncodeNil() + } else { + x.Deployment.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Deployment\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Deployment`) + } + r.WriteMapElemValue() + if yyn27 { + r.EncodeNil() + } else { + if x.Deployment == nil { + r.EncodeNil() + } else { + x.Deployment.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobRegisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobRegisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Submission": + if r.TryDecodeAsNil() { + if true && x.Submission != nil { + x.Submission = nil + } + } else { + if x.Submission == nil { + x.Submission = new(JobSubmission) + } + + x.Submission.CodecDecodeSelf(d) + } + case "Job": + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + case "EnforceIndex": + if r.TryDecodeAsNil() { + x.EnforceIndex = false + } else { + x.EnforceIndex = (bool)(r.DecodeBool()) + } + case "JobModifyIndex": + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + case "PreserveCounts": + if r.TryDecodeAsNil() { + x.PreserveCounts = false + } else { + x.PreserveCounts = (bool)(r.DecodeBool()) + } + case "PolicyOverride": + if r.TryDecodeAsNil() { + x.PolicyOverride = false + } else { + x.PolicyOverride = (bool)(r.DecodeBool()) + } + case "EvalPriority": + if r.TryDecodeAsNil() { + x.EvalPriority = 0 + } else { + x.EvalPriority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Eval": + if r.TryDecodeAsNil() { + if true && x.Eval != nil { + x.Eval = nil + } + } else { + if x.Eval == nil { + x.Eval = new(Evaluation) + } + + x.Eval.CodecDecodeSelf(d) + } + case "Deployment": + if r.TryDecodeAsNil() { + if true && x.Deployment != nil { + x.Deployment = nil + } + } else { + if x.Deployment == nil { + x.Deployment = new(Deployment) + } + + x.Deployment.CodecDecodeSelf(d) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobRegisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Submission != nil { + x.Submission = nil + } + } else { + if x.Submission == nil { + x.Submission = new(JobSubmission) + } + + x.Submission.CodecDecodeSelf(d) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EnforceIndex = false + } else { + x.EnforceIndex = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PreserveCounts = false + } else { + x.PreserveCounts = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PolicyOverride = false + } else { + x.PolicyOverride = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalPriority = 0 + } else { + x.EvalPriority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Eval != nil { + x.Eval = nil + } + } else { + if x.Eval == nil { + x.Eval = new(Evaluation) + } + + x.Eval.CodecDecodeSelf(d) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Deployment != nil { + x.Deployment = nil + } + } else { + if x.Deployment == nil { + x.Deployment = new(Deployment) + } + + x.Deployment.CodecDecodeSelf(d) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobDeregisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(12) + } else { + r.WriteMapStart(12) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Purge)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Purge\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Purge`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Purge)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Global)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Global\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Global`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Global)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.EvalPriority)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalPriority\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalPriority`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.EvalPriority)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.NoShutdownDelay)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NoShutdownDelay\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NoShutdownDelay`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.NoShutdownDelay)) + } + } + var yyn18 bool + if x.Eval == nil { + yyn18 = true + goto LABEL18 + } + LABEL18: + if yyr2 || yy2arr2 { + if yyn18 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Eval == nil { + r.EncodeNil() + } else { + x.Eval.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Eval\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Eval`) + } + r.WriteMapElemValue() + if yyn18 { + r.EncodeNil() + } else { + if x.Eval == nil { + r.EncodeNil() + } else { + x.Eval.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.SubmitTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SubmitTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SubmitTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.SubmitTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobDeregisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobDeregisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "Purge": + if r.TryDecodeAsNil() { + x.Purge = false + } else { + x.Purge = (bool)(r.DecodeBool()) + } + case "Global": + if r.TryDecodeAsNil() { + x.Global = false + } else { + x.Global = (bool)(r.DecodeBool()) + } + case "EvalPriority": + if r.TryDecodeAsNil() { + x.EvalPriority = 0 + } else { + x.EvalPriority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "NoShutdownDelay": + if r.TryDecodeAsNil() { + x.NoShutdownDelay = false + } else { + x.NoShutdownDelay = (bool)(r.DecodeBool()) + } + case "Eval": + if r.TryDecodeAsNil() { + if true && x.Eval != nil { + x.Eval = nil + } + } else { + if x.Eval == nil { + x.Eval = new(Evaluation) + } + + x.Eval.CodecDecodeSelf(d) + } + case "SubmitTime": + if r.TryDecodeAsNil() { + x.SubmitTime = 0 + } else { + x.SubmitTime = (int64)(r.DecodeInt64()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobDeregisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj16 int + var yyb16 bool + var yyhl16 bool = l >= 0 + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Purge = false + } else { + x.Purge = (bool)(r.DecodeBool()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Global = false + } else { + x.Global = (bool)(r.DecodeBool()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalPriority = 0 + } else { + x.EvalPriority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NoShutdownDelay = false + } else { + x.NoShutdownDelay = (bool)(r.DecodeBool()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Eval != nil { + x.Eval = nil + } + } else { + if x.Eval == nil { + x.Eval = new(Evaluation) + } + + x.Eval.CodecDecodeSelf(d) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SubmitTime = 0 + } else { + x.SubmitTime = (int64)(r.DecodeInt64()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj16-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobEvaluateRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy7 := &x.EvalOptions + yy7.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalOptions\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalOptions`) + } + r.WriteMapElemValue() + yy9 := &x.EvalOptions + yy9.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobEvaluateRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobEvaluateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "EvalOptions": + if r.TryDecodeAsNil() { + x.EvalOptions = EvalOptions{} + } else { + x.EvalOptions.CodecDecodeSelf(d) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobEvaluateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalOptions = EvalOptions{} + } else { + x.EvalOptions.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *EvalOptions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.ForceReschedule)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ForceReschedule\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ForceReschedule`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.ForceReschedule)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EvalOptions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EvalOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ForceReschedule": + if r.TryDecodeAsNil() { + x.ForceReschedule = false + } else { + x.ForceReschedule = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EvalOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ForceReschedule = false + } else { + x.ForceReschedule = (bool)(r.DecodeBool()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobSubmissionRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(14) + } else { + r.WriteMapStart(14) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Version)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Version\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Version`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Version)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { + z.EncExtension(x.MaxQueryTime, yyxt19) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.EncExtension(x.MaxQueryTime, yyxt20) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobSubmissionRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobSubmissionRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "Version": + if r.TryDecodeAsNil() { + x.Version = 0 + } else { + x.Version = (uint64)(r.DecodeUint64()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobSubmissionRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj19 int + var yyb19 bool + var yyhl19 bool = l >= 0 + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Version = 0 + } else { + x.Version = (uint64)(r.DecodeUint64()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { + z.DecExtension(x.MaxQueryTime, yyxt26) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj19-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobSubmissionResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + var yyn3 bool + if x.Submission == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Submission == nil { + r.EncodeNil() + } else { + x.Submission.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Submission\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Submission`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Submission == nil { + r.EncodeNil() + } else { + x.Submission.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobSubmissionResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobSubmissionResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Submission": + if r.TryDecodeAsNil() { + if true && x.Submission != nil { + x.Submission = nil + } + } else { + if x.Submission == nil { + x.Submission = new(JobSubmission) + } + + x.Submission.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobSubmissionResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Submission != nil { + x.Submission = nil + } + } else { + if x.Submission == nil { + x.Submission = new(JobSubmission) + } + + x.Submission.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.DecExtension(x.LastContact, yyxt14) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(14) + } else { + r.WriteMapStart(14) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.All)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"All\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `All`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.All)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { + z.EncExtension(x.MaxQueryTime, yyxt19) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.EncExtension(x.MaxQueryTime, yyxt20) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "All": + if r.TryDecodeAsNil() { + x.All = false + } else { + x.All = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj19 int + var yyb19 bool + var yyhl19 bool = l >= 0 + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.All = false + } else { + x.All = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { + z.DecExtension(x.MaxQueryTime, yyxt26) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj19-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobListRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.EncExtension(x.MaxQueryTime, yyxt13) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { + z.EncExtension(x.MaxQueryTime, yyxt14) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + var yyn39 bool + if x.Fields == nil { + yyn39 = true + goto LABEL39 + } + LABEL39: + if yyr2 || yy2arr2 { + if yyn39 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Fields == nil { + r.EncodeNil() + } else { + x.Fields.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Fields\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Fields`) + } + r.WriteMapElemValue() + if yyn39 { + r.EncodeNil() + } else { + if x.Fields == nil { + r.EncodeNil() + } else { + x.Fields.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobListRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { + z.DecExtension(x.MaxQueryTime, yyxt8) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + case "Fields": + if r.TryDecodeAsNil() { + if true && x.Fields != nil { + x.Fields = nil + } + } else { + if x.Fields == nil { + x.Fields = new(JobStubFields) + } + + x.Fields.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt23 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt23 != nil { + z.DecExtension(x.MaxQueryTime, yyxt23) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Fields != nil { + x.Fields = nil + } + } else { + if x.Fields == nil { + x.Fields = new(JobStubFields) + } + + x.Fields.CodecDecodeSelf(d) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobStubFields) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Meta)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Meta\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Meta)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobStubFields) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobStubFields) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Meta": + if r.TryDecodeAsNil() { + x.Meta = false + } else { + x.Meta = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobStubFields) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Meta = false + } else { + x.Meta = (bool)(r.DecodeBool()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobPlanRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + var yyn3 bool + if x.Job == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Job\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Diff)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Diff\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Diff`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Diff)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.PolicyOverride)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PolicyOverride\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PolicyOverride`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.PolicyOverride)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobPlanRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobPlanRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Job": + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + case "Diff": + if r.TryDecodeAsNil() { + x.Diff = false + } else { + x.Diff = (bool)(r.DecodeBool()) + } + case "PolicyOverride": + if r.TryDecodeAsNil() { + x.PolicyOverride = false + } else { + x.PolicyOverride = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobPlanRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Diff = false + } else { + x.Diff = (bool)(r.DecodeBool()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PolicyOverride = false + } else { + x.PolicyOverride = (bool)(r.DecodeBool()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobScaleRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(14) + } else { + r.WriteMapStart(14) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Target == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Target), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Target\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Target`) + } + r.WriteMapElemValue() + if x.Target == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Target), e) + } + } + } + var yyn9 bool + if x.Count == nil { + yyn9 = true + goto LABEL9 + } + LABEL9: + if yyr2 || yy2arr2 { + if yyn9 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Count == nil { + r.EncodeNil() + } else { + yy10 := *x.Count + if false { + } else { + r.EncodeInt(int64(yy10)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Count\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Count`) + } + r.WriteMapElemValue() + if yyn9 { + r.EncodeNil() + } else { + if x.Count == nil { + r.EncodeNil() + } else { + yy12 := *x.Count + if false { + } else { + r.EncodeInt(int64(yy12)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Message)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Message\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Message`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Message)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Error)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Error\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Error`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Error)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringInterface((map[string]interface{})(x.Meta), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Meta\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) + } + r.WriteMapElemValue() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringInterface((map[string]interface{})(x.Meta), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.PolicyOverride)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PolicyOverride\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PolicyOverride`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.PolicyOverride)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.EnforceIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EnforceIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EnforceIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.EnforceIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobScaleRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobScaleRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "Target": + if r.TryDecodeAsNil() { + x.Target = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Target), d) + } + } + case "Count": + if r.TryDecodeAsNil() { + if true && x.Count != nil { + x.Count = nil + } + } else { + if x.Count == nil { + x.Count = new(int64) + } + + if false { + } else { + *x.Count = (int64)(r.DecodeInt64()) + } + } + case "Message": + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = (string)(r.DecodeString()) + } + case "Error": + if r.TryDecodeAsNil() { + x.Error = false + } else { + x.Error = (bool)(r.DecodeBool()) + } + case "Meta": + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringInterface((*map[string]interface{})(&x.Meta), d) + } + } + case "PolicyOverride": + if r.TryDecodeAsNil() { + x.PolicyOverride = false + } else { + x.PolicyOverride = (bool)(r.DecodeBool()) + } + case "EnforceIndex": + if r.TryDecodeAsNil() { + x.EnforceIndex = false + } else { + x.EnforceIndex = (bool)(r.DecodeBool()) + } + case "JobModifyIndex": + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobScaleRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj21 int + var yyb21 bool + var yyhl21 bool = l >= 0 + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Target = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Target), d) + } + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Count != nil { + x.Count = nil + } + } else { + if x.Count == nil { + x.Count = new(int64) + } + + if false { + } else { + *x.Count = (int64)(r.DecodeInt64()) + } + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = (string)(r.DecodeString()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Error = false + } else { + x.Error = (bool)(r.DecodeBool()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringInterface((*map[string]interface{})(&x.Meta), d) + } + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PolicyOverride = false + } else { + x.PolicyOverride = (bool)(r.DecodeBool()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EnforceIndex = false + } else { + x.EnforceIndex = (bool)(r.DecodeBool()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj21-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobSummaryRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobSummaryRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobSummaryRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobSummaryRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt24 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt24 != nil { + z.DecExtension(x.MaxQueryTime, yyxt24) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobScaleStatusRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobScaleStatusRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobScaleStatusRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobScaleStatusRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt24 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt24 != nil { + z.DecExtension(x.MaxQueryTime, yyxt24) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobDispatchRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(10) + } else { + r.WriteMapStart(10) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Payload == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Payload)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Payload\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Payload`) + } + r.WriteMapElemValue() + if x.Payload == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Payload)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Meta), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Meta\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) + } + r.WriteMapElemValue() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Meta), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdPrefixTemplate))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdPrefixTemplate)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdPrefixTemplate\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdPrefixTemplate`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdPrefixTemplate))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdPrefixTemplate)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Priority)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Priority\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Priority`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Priority)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobDispatchRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobDispatchRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "Payload": + if r.TryDecodeAsNil() { + x.Payload = nil + } else { + if false { + } else { + x.Payload = r.DecodeBytes(([]byte)(x.Payload), false) + } + } + case "Meta": + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Meta), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + case "IdPrefixTemplate": + if r.TryDecodeAsNil() { + x.IdPrefixTemplate = "" + } else { + x.IdPrefixTemplate = (string)(r.DecodeString()) + } + case "Priority": + if r.TryDecodeAsNil() { + x.Priority = 0 + } else { + x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobDispatchRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj16 int + var yyb16 bool + var yyhl16 bool = l >= 0 + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Payload = nil + } else { + if false { + } else { + x.Payload = r.DecodeBytes(([]byte)(x.Payload), false) + } + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Meta), d) + } + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.IdPrefixTemplate = "" + } else { + x.IdPrefixTemplate = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Priority = 0 + } else { + x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + for { + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj16-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobValidateRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + var yyn3 bool + if x.Job == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Job\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobValidateRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobValidateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Job": + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobValidateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobRevertRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobVersion)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobVersion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobVersion`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobVersion)) + } + } + var yyn9 bool + if x.EnforcePriorVersion == nil { + yyn9 = true + goto LABEL9 + } + LABEL9: + if yyr2 || yy2arr2 { + if yyn9 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.EnforcePriorVersion == nil { + r.EncodeNil() + } else { + yy10 := *x.EnforcePriorVersion + if false { + } else { + r.EncodeUint(uint64(yy10)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EnforcePriorVersion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EnforcePriorVersion`) + } + r.WriteMapElemValue() + if yyn9 { + r.EncodeNil() + } else { + if x.EnforcePriorVersion == nil { + r.EncodeNil() + } else { + yy12 := *x.EnforcePriorVersion + if false { + } else { + r.EncodeUint(uint64(yy12)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobRevertRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobRevertRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "JobVersion": + if r.TryDecodeAsNil() { + x.JobVersion = 0 + } else { + x.JobVersion = (uint64)(r.DecodeUint64()) + } + case "EnforcePriorVersion": + if r.TryDecodeAsNil() { + if true && x.EnforcePriorVersion != nil { + x.EnforcePriorVersion = nil + } + } else { + if x.EnforcePriorVersion == nil { + x.EnforcePriorVersion = new(uint64) + } + + if false { + } else { + *x.EnforcePriorVersion = (uint64)(r.DecodeUint64()) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobRevertRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobVersion = 0 + } else { + x.JobVersion = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.EnforcePriorVersion != nil { + x.EnforcePriorVersion = nil + } + } else { + if x.EnforcePriorVersion == nil { + x.EnforcePriorVersion = new(uint64) + } + + if false { + } else { + *x.EnforcePriorVersion = (uint64)(r.DecodeUint64()) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobStabilityRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobVersion)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobVersion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobVersion`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobVersion)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Stable)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Stable\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Stable`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Stable)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobStabilityRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobStabilityRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "JobVersion": + if r.TryDecodeAsNil() { + x.JobVersion = 0 + } else { + x.JobVersion = (uint64)(r.DecodeUint64()) + } + case "Stable": + if r.TryDecodeAsNil() { + x.Stable = false + } else { + x.Stable = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobStabilityRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobVersion = 0 + } else { + x.JobVersion = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Stable = false + } else { + x.Stable = (bool)(r.DecodeBool()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobStabilityResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobStabilityResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobStabilityResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobStabilityResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeListRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.EncExtension(x.MaxQueryTime, yyxt13) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { + z.EncExtension(x.MaxQueryTime, yyxt14) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + var yyn39 bool + if x.Fields == nil { + yyn39 = true + goto LABEL39 + } + LABEL39: + if yyr2 || yy2arr2 { + if yyn39 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Fields == nil { + r.EncodeNil() + } else { + x.Fields.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Fields\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Fields`) + } + r.WriteMapElemValue() + if yyn39 { + r.EncodeNil() + } else { + if x.Fields == nil { + r.EncodeNil() + } else { + x.Fields.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeListRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { + z.DecExtension(x.MaxQueryTime, yyxt8) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + case "Fields": + if r.TryDecodeAsNil() { + if true && x.Fields != nil { + x.Fields = nil + } + } else { + if x.Fields == nil { + x.Fields = new(NodeStubFields) + } + + x.Fields.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt23 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt23 != nil { + z.DecExtension(x.MaxQueryTime, yyxt23) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Fields != nil { + x.Fields = nil + } + } else { + if x.Fields == nil { + x.Fields = new(NodeStubFields) + } + + x.Fields.CodecDecodeSelf(d) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *EvalUpdateRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Evals == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Evals\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Evals`) + } + r.WriteMapElemValue() + if x.Evals == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EvalUpdateRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EvalUpdateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Evals": + if r.TryDecodeAsNil() { + x.Evals = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) + } + } + case "EvalToken": + if r.TryDecodeAsNil() { + x.EvalToken = "" + } else { + x.EvalToken = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EvalUpdateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Evals = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalToken = "" + } else { + x.EvalToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *EvalReapRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(11) + } else { + r.WriteMapStart(11) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Evals == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Evals), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Evals\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Evals`) + } + r.WriteMapElemValue() + if x.Evals == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Evals), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Allocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Allocs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Allocs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Allocs`) + } + r.WriteMapElemValue() + if x.Allocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Allocs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.UserInitiated)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"UserInitiated\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `UserInitiated`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.UserInitiated)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EvalReapRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EvalReapRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Evals": + if r.TryDecodeAsNil() { + x.Evals = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Evals), d) + } + } + case "Allocs": + if r.TryDecodeAsNil() { + x.Allocs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Allocs), d) + } + } + case "Filter": + if r.TryDecodeAsNil() { + x.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "UserInitiated": + if r.TryDecodeAsNil() { + x.UserInitiated = false + } else { + x.UserInitiated = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EvalReapRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Evals = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Evals), d) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Allocs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Allocs), d) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.UserInitiated = false + } else { + x.UserInitiated = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } + r.ReadArrayEnd() +} + +func (x *EvalSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(14) + } else { + r.WriteMapStart(14) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.IncludeRelated)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IncludeRelated\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IncludeRelated`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.IncludeRelated)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { + z.EncExtension(x.MaxQueryTime, yyxt19) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.EncExtension(x.MaxQueryTime, yyxt20) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EvalSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EvalSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "EvalID": + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + case "IncludeRelated": + if r.TryDecodeAsNil() { + x.IncludeRelated = false + } else { + x.IncludeRelated = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EvalSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj19 int + var yyb19 bool + var yyhl19 bool = l >= 0 + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.IncludeRelated = false + } else { + x.IncludeRelated = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { + z.DecExtension(x.MaxQueryTime, yyxt26) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj19-1, "") + } + r.ReadArrayEnd() +} + +func (x *EvalAckRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Token))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Token)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Token\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Token`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Token))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Token)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EvalAckRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EvalAckRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "EvalID": + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + case "Token": + if r.TryDecodeAsNil() { + x.Token = "" + } else { + x.Token = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EvalAckRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Token = "" + } else { + x.Token = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *EvalDequeueRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Schedulers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Schedulers), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Schedulers\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Schedulers`) + } + r.WriteMapElemValue() + if x.Schedulers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Schedulers), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.Timeout)); yyxt7 != nil { + z.EncExtension(x.Timeout, yyxt7) + } else { + r.EncodeInt(int64(x.Timeout)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timeout\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Timeout`) + } + r.WriteMapElemValue() + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.Timeout)); yyxt8 != nil { + z.EncExtension(x.Timeout, yyxt8) + } else { + r.EncodeInt(int64(x.Timeout)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.SchedulerVersion)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SchedulerVersion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SchedulerVersion`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.SchedulerVersion)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EvalDequeueRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EvalDequeueRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Schedulers": + if r.TryDecodeAsNil() { + x.Schedulers = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Schedulers), d) + } + } + case "Timeout": + if r.TryDecodeAsNil() { + x.Timeout = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.Timeout)); yyxt7 != nil { + z.DecExtension(x.Timeout, yyxt7) + } else { + x.Timeout = (time.Duration)(r.DecodeInt64()) + } + } + case "SchedulerVersion": + if r.TryDecodeAsNil() { + x.SchedulerVersion = 0 + } else { + x.SchedulerVersion = (uint16)(z.C.UintV(r.DecodeUint64(), 16)) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EvalDequeueRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj14 int + var yyb14 bool + var yyhl14 bool = l >= 0 + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Schedulers = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Schedulers), d) + } + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Timeout = 0 + } else { + if false { + } else if yyxt18 := z.Extension(z.I2Rtid(x.Timeout)); yyxt18 != nil { + z.DecExtension(x.Timeout, yyxt18) + } else { + x.Timeout = (time.Duration)(r.DecodeInt64()) + } + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SchedulerVersion = 0 + } else { + x.SchedulerVersion = (uint16)(z.C.UintV(r.DecodeUint64(), 16)) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj14-1, "") + } + r.ReadArrayEnd() +} + +func (x *EvalListRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(14) + } else { + r.WriteMapStart(14) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.FilterJobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FilterJobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FilterJobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `FilterJobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.FilterJobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FilterJobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.FilterEvalStatus))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FilterEvalStatus)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FilterEvalStatus\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `FilterEvalStatus`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.FilterEvalStatus))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FilterEvalStatus)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { + z.EncExtension(x.MaxQueryTime, yyxt19) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.EncExtension(x.MaxQueryTime, yyxt20) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EvalListRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EvalListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "FilterJobID": + if r.TryDecodeAsNil() { + x.FilterJobID = "" + } else { + x.FilterJobID = (string)(r.DecodeString()) + } + case "FilterEvalStatus": + if r.TryDecodeAsNil() { + x.FilterEvalStatus = "" + } else { + x.FilterEvalStatus = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EvalListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj19 int + var yyb19 bool + var yyhl19 bool = l >= 0 + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.FilterJobID = "" + } else { + x.FilterJobID = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.FilterEvalStatus = "" + } else { + x.FilterEvalStatus = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { + z.DecExtension(x.MaxQueryTime, yyxt26) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj19-1, "") + } + r.ReadArrayEnd() +} + +func (x *EvalCountRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(12) + } else { + r.WriteMapStart(12) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.EncExtension(x.MaxQueryTime, yyxt13) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { + z.EncExtension(x.MaxQueryTime, yyxt14) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EvalCountRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EvalCountRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { + z.DecExtension(x.MaxQueryTime, yyxt8) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EvalCountRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { + z.DecExtension(x.MaxQueryTime, yyxt22) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } + r.ReadArrayEnd() +} + +func (x *PlanRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + var yyn3 bool + if x.Plan == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Plan == nil { + r.EncodeNil() + } else { + x.Plan.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Plan\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Plan`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Plan == nil { + r.EncodeNil() + } else { + x.Plan.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *PlanRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *PlanRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Plan": + if r.TryDecodeAsNil() { + if true && x.Plan != nil { + x.Plan = nil + } + } else { + if x.Plan == nil { + x.Plan = new(Plan) + } + + x.Plan.CodecDecodeSelf(d) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *PlanRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Plan != nil { + x.Plan = nil + } + } else { + if x.Plan == nil { + x.Plan = new(Plan) + } + + x.Plan.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *ApplyPlanResultsRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(18) + } else { + r.WriteMapStart(18) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Alloc == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocation(([]*Allocation)(x.Alloc), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Alloc\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Alloc`) + } + r.WriteMapElemValue() + if x.Alloc == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocation(([]*Allocation)(x.Alloc), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.AllocsStopped == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocationDiff(([]*AllocationDiff)(x.AllocsStopped), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocsStopped\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocsStopped`) + } + r.WriteMapElemValue() + if x.AllocsStopped == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocationDiff(([]*AllocationDiff)(x.AllocsStopped), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.AllocsUpdated == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocation(([]*Allocation)(x.AllocsUpdated), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocsUpdated\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocsUpdated`) + } + r.WriteMapElemValue() + if x.AllocsUpdated == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocation(([]*Allocation)(x.AllocsUpdated), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Evals == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Evals\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Evals`) + } + r.WriteMapElemValue() + if x.Evals == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) + } + } + } + var yyn15 bool + if x.AllocUpdateRequest.Job == nil { + yyn15 = true + goto LABEL15 + } + LABEL15: + if yyr2 || yy2arr2 { + if yyn15 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Job\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) + } + r.WriteMapElemValue() + if yyn15 { + r.EncodeNil() + } else { + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + var yyn33 bool + if x.Deployment == nil { + yyn33 = true + goto LABEL33 + } + LABEL33: + if yyr2 || yy2arr2 { + if yyn33 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Deployment == nil { + r.EncodeNil() + } else { + x.Deployment.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Deployment\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Deployment`) + } + r.WriteMapElemValue() + if yyn33 { + r.EncodeNil() + } else { + if x.Deployment == nil { + r.EncodeNil() + } else { + x.Deployment.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.DeploymentUpdates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentUpdates\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentUpdates`) + } + r.WriteMapElemValue() + if x.DeploymentUpdates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.NodePreemptions == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocation(([]*Allocation)(x.NodePreemptions), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodePreemptions\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodePreemptions`) + } + r.WriteMapElemValue() + if x.NodePreemptions == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocation(([]*Allocation)(x.NodePreemptions), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.AllocsPreempted == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocationDiff(([]*AllocationDiff)(x.AllocsPreempted), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocsPreempted\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocsPreempted`) + } + r.WriteMapElemValue() + if x.AllocsPreempted == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocationDiff(([]*AllocationDiff)(x.AllocsPreempted), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.PreemptionEvals == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.PreemptionEvals), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PreemptionEvals\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptionEvals`) + } + r.WriteMapElemValue() + if x.PreemptionEvals == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.PreemptionEvals), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.IneligibleNodes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.IneligibleNodes), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IneligibleNodes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IneligibleNodes`) + } + r.WriteMapElemValue() + if x.IneligibleNodes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.IneligibleNodes), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.UpdatedAt)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"UpdatedAt\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `UpdatedAt`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.UpdatedAt)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ApplyPlanResultsRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ApplyPlanResultsRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Alloc": + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.Alloc = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocation((*[]*Allocation)(&x.Alloc), d) + } + } + case "AllocsStopped": + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.AllocsStopped = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocationDiff((*[]*AllocationDiff)(&x.AllocsStopped), d) + } + } + case "AllocsUpdated": + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.AllocsUpdated = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocation((*[]*Allocation)(&x.AllocsUpdated), d) + } + } + case "Evals": + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.Evals = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) + } + } + case "Job": + if r.TryDecodeAsNil() { + if true && x.AllocUpdateRequest.Job != nil { + x.AllocUpdateRequest.Job = nil + } + } else { + if x.AllocUpdateRequest.Job == nil { + x.AllocUpdateRequest.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + case "Region": + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + case "Deployment": + if r.TryDecodeAsNil() { + if true && x.Deployment != nil { + x.Deployment = nil + } + } else { + if x.Deployment == nil { + x.Deployment = new(Deployment) + } + + x.Deployment.CodecDecodeSelf(d) + } + case "DeploymentUpdates": + if r.TryDecodeAsNil() { + x.DeploymentUpdates = nil + } else { + if false { + } else { + h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(&x.DeploymentUpdates), d) + } + } + case "EvalID": + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + case "NodePreemptions": + if r.TryDecodeAsNil() { + x.NodePreemptions = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocation((*[]*Allocation)(&x.NodePreemptions), d) + } + } + case "AllocsPreempted": + if r.TryDecodeAsNil() { + x.AllocsPreempted = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocationDiff((*[]*AllocationDiff)(&x.AllocsPreempted), d) + } + } + case "PreemptionEvals": + if r.TryDecodeAsNil() { + x.PreemptionEvals = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.PreemptionEvals), d) + } + } + case "IneligibleNodes": + if r.TryDecodeAsNil() { + x.IneligibleNodes = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.IneligibleNodes), d) + } + } + case "UpdatedAt": + if r.TryDecodeAsNil() { + x.UpdatedAt = 0 + } else { + x.UpdatedAt = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ApplyPlanResultsRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj31 int + var yyb31 bool + var yyhl31 bool = l >= 0 + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.Alloc = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocation((*[]*Allocation)(&x.Alloc), d) + } + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.AllocsStopped = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocationDiff((*[]*AllocationDiff)(&x.AllocsStopped), d) + } + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.AllocsUpdated = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocation((*[]*Allocation)(&x.AllocsUpdated), d) + } + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.Evals = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) + } + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.AllocUpdateRequest.Job != nil { + x.AllocUpdateRequest.Job = nil + } + } else { + if x.AllocUpdateRequest.Job == nil { + x.AllocUpdateRequest.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocUpdateRequest.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Deployment != nil { + x.Deployment = nil + } + } else { + if x.Deployment == nil { + x.Deployment = new(Deployment) + } + + x.Deployment.CodecDecodeSelf(d) + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentUpdates = nil + } else { + if false { + } else { + h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(&x.DeploymentUpdates), d) + } + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodePreemptions = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocation((*[]*Allocation)(&x.NodePreemptions), d) + } + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocsPreempted = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocationDiff((*[]*AllocationDiff)(&x.AllocsPreempted), d) + } + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PreemptionEvals = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.PreemptionEvals), d) + } + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.IneligibleNodes = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.IneligibleNodes), d) + } + } + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.UpdatedAt = 0 + } else { + x.UpdatedAt = (int64)(r.DecodeInt64()) + } + for { + yyj31++ + if yyhl31 { + yyb31 = yyj31 > l + } else { + yyb31 = r.CheckBreak() + } + if yyb31 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj31-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocUpdateRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(10) + } else { + r.WriteMapStart(10) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Alloc == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocation(([]*Allocation)(x.Alloc), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Alloc\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Alloc`) + } + r.WriteMapElemValue() + if x.Alloc == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocation(([]*Allocation)(x.Alloc), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.AllocsStopped == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocationDiff(([]*AllocationDiff)(x.AllocsStopped), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocsStopped\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocsStopped`) + } + r.WriteMapElemValue() + if x.AllocsStopped == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocationDiff(([]*AllocationDiff)(x.AllocsStopped), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.AllocsUpdated == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocation(([]*Allocation)(x.AllocsUpdated), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocsUpdated\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocsUpdated`) + } + r.WriteMapElemValue() + if x.AllocsUpdated == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocation(([]*Allocation)(x.AllocsUpdated), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Evals == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Evals\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Evals`) + } + r.WriteMapElemValue() + if x.Evals == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) + } + } + } + var yyn15 bool + if x.Job == nil { + yyn15 = true + goto LABEL15 + } + LABEL15: + if yyr2 || yy2arr2 { + if yyn15 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Job\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) + } + r.WriteMapElemValue() + if yyn15 { + r.EncodeNil() + } else { + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocUpdateRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocUpdateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Alloc": + if r.TryDecodeAsNil() { + x.Alloc = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocation((*[]*Allocation)(&x.Alloc), d) + } + } + case "AllocsStopped": + if r.TryDecodeAsNil() { + x.AllocsStopped = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocationDiff((*[]*AllocationDiff)(&x.AllocsStopped), d) + } + } + case "AllocsUpdated": + if r.TryDecodeAsNil() { + x.AllocsUpdated = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocation((*[]*Allocation)(&x.AllocsUpdated), d) + } + } + case "Evals": + if r.TryDecodeAsNil() { + x.Evals = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) + } + } + case "Job": + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocUpdateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Alloc = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocation((*[]*Allocation)(&x.Alloc), d) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocsStopped = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocationDiff((*[]*AllocationDiff)(&x.AllocsStopped), d) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocsUpdated = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocation((*[]*Allocation)(&x.AllocsUpdated), d) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Evals = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocUpdateDesiredTransitionRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Allocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoDesiredTransition((map[string]*DesiredTransition)(x.Allocs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Allocs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Allocs`) + } + r.WriteMapElemValue() + if x.Allocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoDesiredTransition((map[string]*DesiredTransition)(x.Allocs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Evals == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Evals\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Evals`) + } + r.WriteMapElemValue() + if x.Evals == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocUpdateDesiredTransitionRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocUpdateDesiredTransitionRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Allocs": + if r.TryDecodeAsNil() { + x.Allocs = nil + } else { + if false { + } else { + h.decMapstringPtrtoDesiredTransition((*map[string]*DesiredTransition)(&x.Allocs), d) + } + } + case "Evals": + if r.TryDecodeAsNil() { + x.Evals = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocUpdateDesiredTransitionRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Allocs = nil + } else { + if false { + } else { + h.decMapstringPtrtoDesiredTransition((*map[string]*DesiredTransition)(&x.Allocs), d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Evals = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocStopRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.NoShutdownDelay)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NoShutdownDelay\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NoShutdownDelay`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.NoShutdownDelay)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocStopRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocStopRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "NoShutdownDelay": + if r.TryDecodeAsNil() { + x.NoShutdownDelay = false + } else { + x.NoShutdownDelay = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocStopRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NoShutdownDelay = false + } else { + x.NoShutdownDelay = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocStopResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocStopResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocStopResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "EvalID": + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocStopResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocListRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.EncExtension(x.MaxQueryTime, yyxt13) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { + z.EncExtension(x.MaxQueryTime, yyxt14) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + var yyn39 bool + if x.Fields == nil { + yyn39 = true + goto LABEL39 + } + LABEL39: + if yyr2 || yy2arr2 { + if yyn39 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Fields == nil { + r.EncodeNil() + } else { + x.Fields.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Fields\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Fields`) + } + r.WriteMapElemValue() + if yyn39 { + r.EncodeNil() + } else { + if x.Fields == nil { + r.EncodeNil() + } else { + x.Fields.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocListRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { + z.DecExtension(x.MaxQueryTime, yyxt8) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + case "Fields": + if r.TryDecodeAsNil() { + if true && x.Fields != nil { + x.Fields = nil + } + } else { + if x.Fields == nil { + x.Fields = new(AllocStubFields) + } + + x.Fields.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt23 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt23 != nil { + z.DecExtension(x.MaxQueryTime, yyxt23) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Fields != nil { + x.Fields = nil + } + } else { + if x.Fields == nil { + x.Fields = new(AllocStubFields) + } + + x.Fields.CodecDecodeSelf(d) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt24 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt24 != nil { + z.DecExtension(x.MaxQueryTime, yyxt24) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocSignalRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(15) + } else { + r.WriteMapStart(15) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Task)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Task\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Task`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Task)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Signal))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Signal)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Signal\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Signal`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Signal))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Signal)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { + z.EncExtension(x.MaxQueryTime, yyxt22) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt23 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt23 != nil { + z.EncExtension(x.MaxQueryTime, yyxt23) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocSignalRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocSignalRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "Task": + if r.TryDecodeAsNil() { + x.Task = "" + } else { + x.Task = (string)(r.DecodeString()) + } + case "Signal": + if r.TryDecodeAsNil() { + x.Signal = "" + } else { + x.Signal = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt11 != nil { + z.DecExtension(x.MaxQueryTime, yyxt11) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocSignalRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj20 int + var yyb20 bool + var yyhl20 bool = l >= 0 + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Task = "" + } else { + x.Task = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Signal = "" + } else { + x.Signal = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt28 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt28 != nil { + z.DecExtension(x.MaxQueryTime, yyxt28) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj20-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocPauseRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(15) + } else { + r.WriteMapStart(15) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Task)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Task\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Task`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Task)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.ScheduleState.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ScheduleState\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ScheduleState`) + } + r.WriteMapElemValue() + x.ScheduleState.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { + z.EncExtension(x.MaxQueryTime, yyxt22) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt23 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt23 != nil { + z.EncExtension(x.MaxQueryTime, yyxt23) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocPauseRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocPauseRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "Task": + if r.TryDecodeAsNil() { + x.Task = "" + } else { + x.Task = (string)(r.DecodeString()) + } + case "ScheduleState": + if r.TryDecodeAsNil() { + x.ScheduleState = "" + } else { + x.ScheduleState.CodecDecodeSelf(d) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt11 != nil { + z.DecExtension(x.MaxQueryTime, yyxt11) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocPauseRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj20 int + var yyb20 bool + var yyhl20 bool = l >= 0 + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Task = "" + } else { + x.Task = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ScheduleState = "" + } else { + x.ScheduleState.CodecDecodeSelf(d) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt28 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt28 != nil { + z.DecExtension(x.MaxQueryTime, yyxt28) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj20-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocGetPauseStateRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(14) + } else { + r.WriteMapStart(14) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Task)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Task\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Task`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Task)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { + z.EncExtension(x.MaxQueryTime, yyxt19) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.EncExtension(x.MaxQueryTime, yyxt20) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocGetPauseStateRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocGetPauseStateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "Task": + if r.TryDecodeAsNil() { + x.Task = "" + } else { + x.Task = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocGetPauseStateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj19 int + var yyb19 bool + var yyhl19 bool = l >= 0 + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Task = "" + } else { + x.Task = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { + z.DecExtension(x.MaxQueryTime, yyxt26) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj19-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocGetPauseStateResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.ScheduleState.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ScheduleState\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ScheduleState`) + } + r.WriteMapElemValue() + x.ScheduleState.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocGetPauseStateResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocGetPauseStateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ScheduleState": + if r.TryDecodeAsNil() { + x.ScheduleState = "" + } else { + x.ScheduleState.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocGetPauseStateResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ScheduleState = "" + } else { + x.ScheduleState.CodecDecodeSelf(d) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocsGetRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.AllocIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.AllocIDs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocIDs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocIDs`) + } + r.WriteMapElemValue() + if x.AllocIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.AllocIDs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocsGetRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocsGetRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AllocIDs": + if r.TryDecodeAsNil() { + x.AllocIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.AllocIDs), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocsGetRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj19 int + var yyb19 bool + var yyhl19 bool = l >= 0 + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.AllocIDs), d) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { + z.DecExtension(x.MaxQueryTime, yyxt26) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj19-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocRestartRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(15) + } else { + r.WriteMapStart(15) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllTasks)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllTasks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllTasks`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllTasks)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { + z.EncExtension(x.MaxQueryTime, yyxt22) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt23 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt23 != nil { + z.EncExtension(x.MaxQueryTime, yyxt23) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocRestartRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocRestartRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "TaskName": + if r.TryDecodeAsNil() { + x.TaskName = "" + } else { + x.TaskName = (string)(r.DecodeString()) + } + case "AllTasks": + if r.TryDecodeAsNil() { + x.AllTasks = false + } else { + x.AllTasks = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt11 != nil { + z.DecExtension(x.MaxQueryTime, yyxt11) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocRestartRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj20 int + var yyb20 bool + var yyhl20 bool = l >= 0 + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskName = "" + } else { + x.TaskName = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllTasks = false + } else { + x.AllTasks = (bool)(r.DecodeBool()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt28 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt28 != nil { + z.DecExtension(x.MaxQueryTime, yyxt28) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj20-1, "") + } + r.ReadArrayEnd() +} + +func (x *PeriodicForceRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *PeriodicForceRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *PeriodicForceRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *PeriodicForceRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *ServerMembersResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ServerName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServerName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ServerName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ServerName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ServerName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServerName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ServerRegion))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServerRegion)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ServerRegion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ServerRegion`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ServerRegion))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServerRegion)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ServerDC))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServerDC)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ServerDC\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ServerDC`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ServerDC))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServerDC)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Members == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoServerMember(([]*ServerMember)(x.Members), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Members\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Members`) + } + r.WriteMapElemValue() + if x.Members == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoServerMember(([]*ServerMember)(x.Members), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ServerMembersResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ServerMembersResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ServerName": + if r.TryDecodeAsNil() { + x.ServerName = "" + } else { + x.ServerName = (string)(r.DecodeString()) + } + case "ServerRegion": + if r.TryDecodeAsNil() { + x.ServerRegion = "" + } else { + x.ServerRegion = (string)(r.DecodeString()) + } + case "ServerDC": + if r.TryDecodeAsNil() { + x.ServerDC = "" + } else { + x.ServerDC = (string)(r.DecodeString()) + } + case "Members": + if r.TryDecodeAsNil() { + x.Members = nil + } else { + if false { + } else { + h.decSlicePtrtoServerMember((*[]*ServerMember)(&x.Members), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ServerMembersResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ServerName = "" + } else { + x.ServerName = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ServerRegion = "" + } else { + x.ServerRegion = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ServerDC = "" + } else { + x.ServerDC = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Members = nil + } else { + if false { + } else { + h.decSlicePtrtoServerMember((*[]*ServerMember)(&x.Members), d) + } + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *ServerMember) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(11) + } else { + r.WriteMapStart(11) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Addr == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.Addr)); yyxt7 != nil { + z.EncExtension(x.Addr, yyxt7) + } else if !z.EncBinary() { + z.EncTextMarshal(x.Addr) + } else { + h.encnet_IP((net.IP)(x.Addr), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Addr\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Addr`) + } + r.WriteMapElemValue() + if x.Addr == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.Addr)); yyxt8 != nil { + z.EncExtension(x.Addr, yyxt8) + } else if !z.EncBinary() { + z.EncTextMarshal(x.Addr) + } else { + h.encnet_IP((net.IP)(x.Addr), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Port)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Port\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Port`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Port)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Tags == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Tags), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Tags\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Tags`) + } + r.WriteMapElemValue() + if x.Tags == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Tags), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Status\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ProtocolMin)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ProtocolMin\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ProtocolMin`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ProtocolMin)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ProtocolMax)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ProtocolMax\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ProtocolMax`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ProtocolMax)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ProtocolCur)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ProtocolCur\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ProtocolCur`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ProtocolCur)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.DelegateMin)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DelegateMin\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DelegateMin`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.DelegateMin)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.DelegateMax)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DelegateMax\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DelegateMax`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.DelegateMax)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.DelegateCur)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DelegateCur\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DelegateCur`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.DelegateCur)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ServerMember) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ServerMember) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Addr": + if r.TryDecodeAsNil() { + x.Addr = nil + } else { + if false { + } else if yyxt6 := z.Extension(z.I2Rtid(x.Addr)); yyxt6 != nil { + z.DecExtension(x.Addr, yyxt6) + } else if !z.DecBinary() { + z.DecTextUnmarshal(&x.Addr) + } else { + h.decnet_IP((*net.IP)(&x.Addr), d) + } + } + case "Port": + if r.TryDecodeAsNil() { + x.Port = 0 + } else { + x.Port = (uint16)(z.C.UintV(r.DecodeUint64(), 16)) + } + case "Tags": + if r.TryDecodeAsNil() { + x.Tags = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Tags), d) + } + } + case "Status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + case "ProtocolMin": + if r.TryDecodeAsNil() { + x.ProtocolMin = 0 + } else { + x.ProtocolMin = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) + } + case "ProtocolMax": + if r.TryDecodeAsNil() { + x.ProtocolMax = 0 + } else { + x.ProtocolMax = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) + } + case "ProtocolCur": + if r.TryDecodeAsNil() { + x.ProtocolCur = 0 + } else { + x.ProtocolCur = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) + } + case "DelegateMin": + if r.TryDecodeAsNil() { + x.DelegateMin = 0 + } else { + x.DelegateMin = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) + } + case "DelegateMax": + if r.TryDecodeAsNil() { + x.DelegateMax = 0 + } else { + x.DelegateMax = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) + } + case "DelegateCur": + if r.TryDecodeAsNil() { + x.DelegateCur = 0 + } else { + x.DelegateCur = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ServerMember) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Addr = nil + } else { + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.Addr)); yyxt20 != nil { + z.DecExtension(x.Addr, yyxt20) + } else if !z.DecBinary() { + z.DecTextUnmarshal(&x.Addr) + } else { + h.decnet_IP((*net.IP)(&x.Addr), d) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Port = 0 + } else { + x.Port = (uint16)(z.C.UintV(r.DecodeUint64(), 16)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Tags = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Tags), d) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ProtocolMin = 0 + } else { + x.ProtocolMin = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ProtocolMax = 0 + } else { + x.ProtocolMax = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ProtocolCur = 0 + } else { + x.ProtocolCur = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DelegateMin = 0 + } else { + x.DelegateMin = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DelegateMax = 0 + } else { + x.DelegateMax = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DelegateCur = 0 + } else { + x.DelegateCur = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) + } + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } + r.ReadArrayEnd() +} + +func (x *ClusterMetadata) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClusterID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClusterID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ClusterID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ClusterID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClusterID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClusterID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ClusterMetadata) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ClusterMetadata) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ClusterID": + if r.TryDecodeAsNil() { + x.ClusterID = "" + } else { + x.ClusterID = (string)(r.DecodeString()) + } + case "CreateTime": + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ClusterMetadata) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ClusterID = "" + } else { + x.ClusterID = (string)(r.DecodeString()) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *VaultAccessor) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Task)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Task\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Task`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Task)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Accessor))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Accessor)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Accessor\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Accessor`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Accessor))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Accessor)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CreationTTL)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreationTTL\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreationTTL`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CreationTTL)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *VaultAccessor) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *VaultAccessor) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "Task": + if r.TryDecodeAsNil() { + x.Task = "" + } else { + x.Task = (string)(r.DecodeString()) + } + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "Accessor": + if r.TryDecodeAsNil() { + x.Accessor = "" + } else { + x.Accessor = (string)(r.DecodeString()) + } + case "CreationTTL": + if r.TryDecodeAsNil() { + x.CreationTTL = 0 + } else { + x.CreationTTL = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *VaultAccessor) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Task = "" + } else { + x.Task = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Accessor = "" + } else { + x.Accessor = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreationTTL = 0 + } else { + x.CreationTTL = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *GenericRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(12) + } else { + r.WriteMapStart(12) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.EncExtension(x.MaxQueryTime, yyxt13) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { + z.EncExtension(x.MaxQueryTime, yyxt14) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *GenericRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *GenericRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { + z.DecExtension(x.MaxQueryTime, yyxt8) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *GenericRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { + z.DecExtension(x.MaxQueryTime, yyxt22) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeploymentListRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(12) + } else { + r.WriteMapStart(12) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.EncExtension(x.MaxQueryTime, yyxt13) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { + z.EncExtension(x.MaxQueryTime, yyxt14) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeploymentListRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeploymentListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { + z.DecExtension(x.MaxQueryTime, yyxt8) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeploymentListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { + z.DecExtension(x.MaxQueryTime, yyxt22) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeploymentDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Deployments == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Deployments), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Deployments\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Deployments`) + } + r.WriteMapElemValue() + if x.Deployments == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Deployments), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeploymentDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeploymentDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Deployments": + if r.TryDecodeAsNil() { + x.Deployments = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Deployments), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeploymentDeleteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Deployments = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Deployments), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeploymentStatusUpdateRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + var yyn3 bool + if x.Eval == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Eval == nil { + r.EncodeNil() + } else { + x.Eval.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Eval\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Eval`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Eval == nil { + r.EncodeNil() + } else { + x.Eval.CodecEncodeSelf(e) + } + } + } + var yyn6 bool + if x.DeploymentUpdate == nil { + yyn6 = true + goto LABEL6 + } + LABEL6: + if yyr2 || yy2arr2 { + if yyn6 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.DeploymentUpdate == nil { + r.EncodeNil() + } else { + x.DeploymentUpdate.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentUpdate\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentUpdate`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.DeploymentUpdate == nil { + r.EncodeNil() + } else { + x.DeploymentUpdate.CodecEncodeSelf(e) + } + } + } + var yyn9 bool + if x.Job == nil { + yyn9 = true + goto LABEL9 + } + LABEL9: + if yyr2 || yy2arr2 { + if yyn9 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Job\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) + } + r.WriteMapElemValue() + if yyn9 { + r.EncodeNil() + } else { + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeploymentStatusUpdateRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeploymentStatusUpdateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Eval": + if r.TryDecodeAsNil() { + if true && x.Eval != nil { + x.Eval = nil + } + } else { + if x.Eval == nil { + x.Eval = new(Evaluation) + } + + x.Eval.CodecDecodeSelf(d) + } + case "DeploymentUpdate": + if r.TryDecodeAsNil() { + if true && x.DeploymentUpdate != nil { + x.DeploymentUpdate = nil + } + } else { + if x.DeploymentUpdate == nil { + x.DeploymentUpdate = new(DeploymentStatusUpdate) + } + + x.DeploymentUpdate.CodecDecodeSelf(d) + } + case "Job": + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeploymentStatusUpdateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Eval != nil { + x.Eval = nil + } + } else { + if x.Eval == nil { + x.Eval = new(Evaluation) + } + + x.Eval.CodecDecodeSelf(d) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.DeploymentUpdate != nil { + x.DeploymentUpdate = nil + } + } else { + if x.DeploymentUpdate == nil { + x.DeploymentUpdate = new(DeploymentStatusUpdate) + } + + x.DeploymentUpdate.CodecDecodeSelf(d) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeploymentAllocHealthRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.HealthyAllocationIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.HealthyAllocationIDs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HealthyAllocationIDs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HealthyAllocationIDs`) + } + r.WriteMapElemValue() + if x.HealthyAllocationIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.HealthyAllocationIDs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.UnhealthyAllocationIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.UnhealthyAllocationIDs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"UnhealthyAllocationIDs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `UnhealthyAllocationIDs`) + } + r.WriteMapElemValue() + if x.UnhealthyAllocationIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.UnhealthyAllocationIDs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeploymentAllocHealthRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeploymentAllocHealthRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DeploymentID": + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + case "HealthyAllocationIDs": + if r.TryDecodeAsNil() { + x.HealthyAllocationIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.HealthyAllocationIDs), d) + } + } + case "UnhealthyAllocationIDs": + if r.TryDecodeAsNil() { + x.UnhealthyAllocationIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.UnhealthyAllocationIDs), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeploymentAllocHealthRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj14 int + var yyb14 bool + var yyhl14 bool = l >= 0 + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HealthyAllocationIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.HealthyAllocationIDs), d) + } + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.UnhealthyAllocationIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.UnhealthyAllocationIDs), d) + } + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj14-1, "") + } + r.ReadArrayEnd() +} + +func (x *ApplyDeploymentAllocHealthRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(12) + } else { + r.WriteMapStart(12) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.HealthyAllocationIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.HealthyAllocationIDs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HealthyAllocationIDs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HealthyAllocationIDs`) + } + r.WriteMapElemValue() + if x.HealthyAllocationIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.HealthyAllocationIDs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.UnhealthyAllocationIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.UnhealthyAllocationIDs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"UnhealthyAllocationIDs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `UnhealthyAllocationIDs`) + } + r.WriteMapElemValue() + if x.UnhealthyAllocationIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.UnhealthyAllocationIDs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.Timestamp) + } else if yyxt28 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt28 != nil { + z.EncExtension(x.Timestamp, yyxt28) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Timestamp) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.Timestamp) + } else { + z.EncFallback(x.Timestamp) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timestamp\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Timestamp`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.Timestamp) + } else if yyxt29 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt29 != nil { + z.EncExtension(x.Timestamp, yyxt29) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Timestamp) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.Timestamp) + } else { + z.EncFallback(x.Timestamp) + } + } + var yyn30 bool + if x.DeploymentUpdate == nil { + yyn30 = true + goto LABEL30 + } + LABEL30: + if yyr2 || yy2arr2 { + if yyn30 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.DeploymentUpdate == nil { + r.EncodeNil() + } else { + x.DeploymentUpdate.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentUpdate\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentUpdate`) + } + r.WriteMapElemValue() + if yyn30 { + r.EncodeNil() + } else { + if x.DeploymentUpdate == nil { + r.EncodeNil() + } else { + x.DeploymentUpdate.CodecEncodeSelf(e) + } + } + } + var yyn33 bool + if x.Job == nil { + yyn33 = true + goto LABEL33 + } + LABEL33: + if yyr2 || yy2arr2 { + if yyn33 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Job\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) + } + r.WriteMapElemValue() + if yyn33 { + r.EncodeNil() + } else { + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } + var yyn36 bool + if x.Eval == nil { + yyn36 = true + goto LABEL36 + } + LABEL36: + if yyr2 || yy2arr2 { + if yyn36 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Eval == nil { + r.EncodeNil() + } else { + x.Eval.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Eval\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Eval`) + } + r.WriteMapElemValue() + if yyn36 { + r.EncodeNil() + } else { + if x.Eval == nil { + r.EncodeNil() + } else { + x.Eval.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ApplyDeploymentAllocHealthRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ApplyDeploymentAllocHealthRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DeploymentID": + if r.TryDecodeAsNil() { + x.DeploymentAllocHealthRequest.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + case "HealthyAllocationIDs": + if r.TryDecodeAsNil() { + x.DeploymentAllocHealthRequest.HealthyAllocationIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.HealthyAllocationIDs), d) + } + } + case "UnhealthyAllocationIDs": + if r.TryDecodeAsNil() { + x.DeploymentAllocHealthRequest.UnhealthyAllocationIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.UnhealthyAllocationIDs), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.DeploymentAllocHealthRequest.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.DeploymentAllocHealthRequest.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.DeploymentAllocHealthRequest.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.DeploymentAllocHealthRequest.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.DeploymentAllocHealthRequest.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + case "Timestamp": + if r.TryDecodeAsNil() { + x.Timestamp = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.Timestamp = r.DecodeTime() + } else if yyxt15 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt15 != nil { + z.DecExtension(x.Timestamp, yyxt15) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Timestamp) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.Timestamp) + } else { + z.DecFallback(&x.Timestamp, false) + } + } + case "DeploymentUpdate": + if r.TryDecodeAsNil() { + if true && x.DeploymentUpdate != nil { + x.DeploymentUpdate = nil + } + } else { + if x.DeploymentUpdate == nil { + x.DeploymentUpdate = new(DeploymentStatusUpdate) + } + + x.DeploymentUpdate.CodecDecodeSelf(d) + } + case "Job": + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + case "Eval": + if r.TryDecodeAsNil() { + if true && x.Eval != nil { + x.Eval = nil + } + } else { + if x.Eval == nil { + x.Eval = new(Evaluation) + } + + x.Eval.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ApplyDeploymentAllocHealthRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj19 int + var yyb19 bool + var yyhl19 bool = l >= 0 + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentAllocHealthRequest.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentAllocHealthRequest.HealthyAllocationIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.HealthyAllocationIDs), d) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentAllocHealthRequest.UnhealthyAllocationIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.UnhealthyAllocationIDs), d) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentAllocHealthRequest.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentAllocHealthRequest.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentAllocHealthRequest.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentAllocHealthRequest.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentAllocHealthRequest.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Timestamp = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.Timestamp = r.DecodeTime() + } else if yyxt31 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt31 != nil { + z.DecExtension(x.Timestamp, yyxt31) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Timestamp) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.Timestamp) + } else { + z.DecFallback(&x.Timestamp, false) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.DeploymentUpdate != nil { + x.DeploymentUpdate = nil + } + } else { + if x.DeploymentUpdate == nil { + x.DeploymentUpdate = new(DeploymentStatusUpdate) + } + + x.DeploymentUpdate.CodecDecodeSelf(d) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Eval != nil { + x.Eval = nil + } + } else { + if x.Eval == nil { + x.Eval = new(Evaluation) + } + + x.Eval.CodecDecodeSelf(d) + } + for { + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj19-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeploymentPromoteRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.All)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"All\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `All`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.All)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Groups == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Groups), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Groups\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Groups`) + } + r.WriteMapElemValue() + if x.Groups == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Groups), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PromotedAt)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PromotedAt\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PromotedAt`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PromotedAt)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeploymentPromoteRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeploymentPromoteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DeploymentID": + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + case "All": + if r.TryDecodeAsNil() { + x.All = false + } else { + x.All = (bool)(r.DecodeBool()) + } + case "Groups": + if r.TryDecodeAsNil() { + x.Groups = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Groups), d) + } + } + case "PromotedAt": + if r.TryDecodeAsNil() { + x.PromotedAt = 0 + } else { + x.PromotedAt = (int64)(r.DecodeInt64()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeploymentPromoteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj14 int + var yyb14 bool + var yyhl14 bool = l >= 0 + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.All = false + } else { + x.All = (bool)(r.DecodeBool()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Groups = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Groups), d) + } + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PromotedAt = 0 + } else { + x.PromotedAt = (int64)(r.DecodeInt64()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj14-1, "") + } + r.ReadArrayEnd() +} + +func (x *ApplyDeploymentPromoteRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(10) + } else { + r.WriteMapStart(10) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.All)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"All\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `All`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.All)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Groups == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Groups), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Groups\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Groups`) + } + r.WriteMapElemValue() + if x.Groups == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Groups), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PromotedAt)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PromotedAt\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PromotedAt`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PromotedAt)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + var yyn30 bool + if x.Eval == nil { + yyn30 = true + goto LABEL30 + } + LABEL30: + if yyr2 || yy2arr2 { + if yyn30 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Eval == nil { + r.EncodeNil() + } else { + x.Eval.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Eval\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Eval`) + } + r.WriteMapElemValue() + if yyn30 { + r.EncodeNil() + } else { + if x.Eval == nil { + r.EncodeNil() + } else { + x.Eval.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ApplyDeploymentPromoteRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ApplyDeploymentPromoteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DeploymentID": + if r.TryDecodeAsNil() { + x.DeploymentPromoteRequest.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + case "All": + if r.TryDecodeAsNil() { + x.DeploymentPromoteRequest.All = false + } else { + x.All = (bool)(r.DecodeBool()) + } + case "Groups": + if r.TryDecodeAsNil() { + x.DeploymentPromoteRequest.Groups = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Groups), d) + } + } + case "PromotedAt": + if r.TryDecodeAsNil() { + x.DeploymentPromoteRequest.PromotedAt = 0 + } else { + x.PromotedAt = (int64)(r.DecodeInt64()) + } + case "Region": + if r.TryDecodeAsNil() { + x.DeploymentPromoteRequest.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.DeploymentPromoteRequest.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.DeploymentPromoteRequest.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.DeploymentPromoteRequest.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.DeploymentPromoteRequest.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + case "Eval": + if r.TryDecodeAsNil() { + if true && x.Eval != nil { + x.Eval = nil + } + } else { + if x.Eval == nil { + x.Eval = new(Evaluation) + } + + x.Eval.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ApplyDeploymentPromoteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj15 int + var yyb15 bool + var yyhl15 bool = l >= 0 + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentPromoteRequest.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentPromoteRequest.All = false + } else { + x.All = (bool)(r.DecodeBool()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentPromoteRequest.Groups = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Groups), d) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentPromoteRequest.PromotedAt = 0 + } else { + x.PromotedAt = (int64)(r.DecodeInt64()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentPromoteRequest.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentPromoteRequest.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentPromoteRequest.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentPromoteRequest.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentPromoteRequest.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Eval != nil { + x.Eval = nil + } + } else { + if x.Eval == nil { + x.Eval = new(Evaluation) + } + + x.Eval.CodecDecodeSelf(d) + } + for { + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj15-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeploymentPauseRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Pause)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Pause\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Pause`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Pause)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeploymentPauseRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeploymentPauseRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DeploymentID": + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + case "Pause": + if r.TryDecodeAsNil() { + x.Pause = false + } else { + x.Pause = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeploymentPauseRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Pause = false + } else { + x.Pause = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeploymentRunRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeploymentRunRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeploymentRunRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DeploymentID": + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeploymentRunRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeploymentUnblockRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeploymentUnblockRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeploymentUnblockRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DeploymentID": + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeploymentUnblockRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeploymentCancelRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeploymentCancelRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeploymentCancelRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DeploymentID": + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeploymentCancelRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeploymentSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeploymentSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeploymentSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DeploymentID": + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeploymentSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt24 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt24 != nil { + z.DecExtension(x.MaxQueryTime, yyxt24) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeploymentFailRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeploymentFailRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeploymentFailRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DeploymentID": + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeploymentFailRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *ScalingPolicySpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ScalingPolicySpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ScalingPolicySpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ScalingPolicySpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt24 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt24 != nil { + z.DecExtension(x.MaxQueryTime, yyxt24) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *SingleScalingPolicyResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + var yyn3 bool + if x.Policy == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Policy == nil { + r.EncodeNil() + } else { + x.Policy.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Policy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Policy`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Policy == nil { + r.EncodeNil() + } else { + x.Policy.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SingleScalingPolicyResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SingleScalingPolicyResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Policy": + if r.TryDecodeAsNil() { + if true && x.Policy != nil { + x.Policy = nil + } + } else { + if x.Policy == nil { + x.Policy = new(ScalingPolicy) + } + + x.Policy.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SingleScalingPolicyResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Policy != nil { + x.Policy = nil + } + } else { + if x.Policy == nil { + x.Policy = new(ScalingPolicy) + } + + x.Policy.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.DecExtension(x.LastContact, yyxt14) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *ScalingPolicyListRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(14) + } else { + r.WriteMapStart(14) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Job))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Job)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Job\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Job))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Job)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { + z.EncExtension(x.MaxQueryTime, yyxt19) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.EncExtension(x.MaxQueryTime, yyxt20) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ScalingPolicyListRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ScalingPolicyListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Job": + if r.TryDecodeAsNil() { + x.Job = "" + } else { + x.Job = (string)(r.DecodeString()) + } + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ScalingPolicyListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj19 int + var yyb19 bool + var yyhl19 bool = l >= 0 + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Job = "" + } else { + x.Job = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { + z.DecExtension(x.MaxQueryTime, yyxt26) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj19-1, "") + } + r.ReadArrayEnd() +} + +func (x *ScalingPolicyListResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Policies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoScalingPolicyListStub(([]*ScalingPolicyListStub)(x.Policies), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Policies\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Policies`) + } + r.WriteMapElemValue() + if x.Policies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoScalingPolicyListStub(([]*ScalingPolicyListStub)(x.Policies), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ScalingPolicyListResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ScalingPolicyListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Policies": + if r.TryDecodeAsNil() { + x.Policies = nil + } else { + if false { + } else { + h.decSlicePtrtoScalingPolicyListStub((*[]*ScalingPolicyListStub)(&x.Policies), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ScalingPolicyListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Policies = nil + } else { + if false { + } else { + h.decSlicePtrtoScalingPolicyListStub((*[]*ScalingPolicyListStub)(&x.Policies), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *SingleDeploymentResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + var yyn3 bool + if x.Deployment == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Deployment == nil { + r.EncodeNil() + } else { + x.Deployment.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Deployment\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Deployment`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Deployment == nil { + r.EncodeNil() + } else { + x.Deployment.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SingleDeploymentResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SingleDeploymentResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Deployment": + if r.TryDecodeAsNil() { + if true && x.Deployment != nil { + x.Deployment = nil + } + } else { + if x.Deployment == nil { + x.Deployment = new(Deployment) + } + + x.Deployment.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SingleDeploymentResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Deployment != nil { + x.Deployment = nil + } + } else { + if x.Deployment == nil { + x.Deployment = new(Deployment) + } + + x.Deployment.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.DecExtension(x.LastContact, yyxt14) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *GenericResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *GenericResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *GenericResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *GenericResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *VersionResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Build))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Build)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Build\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Build`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Build))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Build)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Versions == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringint((map[string]int)(x.Versions), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Versions\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Versions`) + } + r.WriteMapElemValue() + if x.Versions == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringint((map[string]int)(x.Versions), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { + z.EncExtension(x.LastContact, yyxt13) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.EncExtension(x.LastContact, yyxt14) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *VersionResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *VersionResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Build": + if r.TryDecodeAsNil() { + x.Build = "" + } else { + x.Build = (string)(r.DecodeString()) + } + case "Versions": + if r.TryDecodeAsNil() { + x.Versions = nil + } else { + if false { + } else { + h.decMapstringint((*map[string]int)(&x.Versions), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.LastContact)); yyxt9 != nil { + z.DecExtension(x.LastContact, yyxt9) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *VersionResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Build = "" + } else { + x.Build = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Versions = nil + } else { + if false { + } else { + h.decMapstringint((*map[string]int)(&x.Versions), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt18 := z.Extension(z.I2Rtid(x.LastContact)); yyxt18 != nil { + z.DecExtension(x.LastContact, yyxt18) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobRegisterResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.EvalCreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalCreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalCreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.EvalCreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Warnings))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Warnings)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Warnings\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Warnings`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Warnings))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Warnings)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.LastContact)); yyxt19 != nil { + z.EncExtension(x.LastContact, yyxt19) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.LastContact)); yyxt20 != nil { + z.EncExtension(x.LastContact, yyxt20) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobRegisterResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobRegisterResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "EvalID": + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + case "EvalCreateIndex": + if r.TryDecodeAsNil() { + x.EvalCreateIndex = 0 + } else { + x.EvalCreateIndex = (uint64)(r.DecodeUint64()) + } + case "JobModifyIndex": + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + case "Warnings": + if r.TryDecodeAsNil() { + x.Warnings = "" + } else { + x.Warnings = (string)(r.DecodeString()) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.DecExtension(x.LastContact, yyxt10) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobRegisterResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalCreateIndex = 0 + } else { + x.EvalCreateIndex = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Warnings = "" + } else { + x.Warnings = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.LastContact)); yyxt20 != nil { + z.DecExtension(x.LastContact, yyxt20) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobDeregisterResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.EvalCreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalCreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalCreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.EvalCreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.VolumeEvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VolumeEvalID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VolumeEvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `VolumeEvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.VolumeEvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VolumeEvalID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.VolumeEvalIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VolumeEvalIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `VolumeEvalIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.VolumeEvalIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.LastContact)); yyxt22 != nil { + z.EncExtension(x.LastContact, yyxt22) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt23 := z.Extension(z.I2Rtid(x.LastContact)); yyxt23 != nil { + z.EncExtension(x.LastContact, yyxt23) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobDeregisterResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobDeregisterResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "EvalID": + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + case "EvalCreateIndex": + if r.TryDecodeAsNil() { + x.EvalCreateIndex = 0 + } else { + x.EvalCreateIndex = (uint64)(r.DecodeUint64()) + } + case "JobModifyIndex": + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + case "VolumeEvalID": + if r.TryDecodeAsNil() { + x.VolumeEvalID = "" + } else { + x.VolumeEvalID = (string)(r.DecodeString()) + } + case "VolumeEvalIndex": + if r.TryDecodeAsNil() { + x.VolumeEvalIndex = 0 + } else { + x.VolumeEvalIndex = (uint64)(r.DecodeUint64()) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.DecExtension(x.LastContact, yyxt11) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobDeregisterResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj14 int + var yyb14 bool + var yyhl14 bool = l >= 0 + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalCreateIndex = 0 + } else { + x.EvalCreateIndex = (uint64)(r.DecodeUint64()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VolumeEvalID = "" + } else { + x.VolumeEvalID = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VolumeEvalIndex = 0 + } else { + x.VolumeEvalIndex = (uint64)(r.DecodeUint64()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.LastContact)); yyxt22 != nil { + z.DecExtension(x.LastContact, yyxt22) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj14-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobValidateResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.DriverConfigValidated)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DriverConfigValidated\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DriverConfigValidated`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.DriverConfigValidated)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ValidationErrors == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.ValidationErrors), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ValidationErrors\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ValidationErrors`) + } + r.WriteMapElemValue() + if x.ValidationErrors == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.ValidationErrors), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Error))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Error)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Error\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Error`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Error))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Error)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Warnings))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Warnings)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Warnings\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Warnings`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Warnings))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Warnings)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobValidateResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobValidateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DriverConfigValidated": + if r.TryDecodeAsNil() { + x.DriverConfigValidated = false + } else { + x.DriverConfigValidated = (bool)(r.DecodeBool()) + } + case "ValidationErrors": + if r.TryDecodeAsNil() { + x.ValidationErrors = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.ValidationErrors), d) + } + } + case "Error": + if r.TryDecodeAsNil() { + x.Error = "" + } else { + x.Error = (string)(r.DecodeString()) + } + case "Warnings": + if r.TryDecodeAsNil() { + x.Warnings = "" + } else { + x.Warnings = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobValidateResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DriverConfigValidated = false + } else { + x.DriverConfigValidated = (bool)(r.DecodeBool()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ValidationErrors = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.ValidationErrors), d) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Error = "" + } else { + x.Error = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Warnings = "" + } else { + x.Warnings = (string)(r.DecodeString()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeUpdateResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt4 := z.Extension(z.I2Rtid(x.HeartbeatTTL)); yyxt4 != nil { + z.EncExtension(x.HeartbeatTTL, yyxt4) + } else { + r.EncodeInt(int64(x.HeartbeatTTL)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HeartbeatTTL\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HeartbeatTTL`) + } + r.WriteMapElemValue() + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.HeartbeatTTL)); yyxt5 != nil { + z.EncExtension(x.HeartbeatTTL, yyxt5) + } else { + r.EncodeInt(int64(x.HeartbeatTTL)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.EvalIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.EvalIDs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalIDs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalIDs`) + } + r.WriteMapElemValue() + if x.EvalIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.EvalIDs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.EvalCreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalCreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalCreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.EvalCreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.NodeModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.NodeModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Features)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Features\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Features`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Features)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LeaderRPCAddr))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LeaderRPCAddr)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LeaderRPCAddr\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LeaderRPCAddr`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LeaderRPCAddr))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LeaderRPCAddr)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.NumNodes)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NumNodes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NumNodes`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.NumNodes)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Servers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeServerInfo(([]*NodeServerInfo)(x.Servers), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Servers\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Servers`) + } + r.WriteMapElemValue() + if x.Servers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeServerInfo(([]*NodeServerInfo)(x.Servers), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SchedulingEligibility))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SchedulingEligibility)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SchedulingEligibility\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SchedulingEligibility`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SchedulingEligibility))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SchedulingEligibility)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt34 := z.Extension(z.I2Rtid(x.LastContact)); yyxt34 != nil { + z.EncExtension(x.LastContact, yyxt34) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt35 := z.Extension(z.I2Rtid(x.LastContact)); yyxt35 != nil { + z.EncExtension(x.LastContact, yyxt35) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeUpdateResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeUpdateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "HeartbeatTTL": + if r.TryDecodeAsNil() { + x.HeartbeatTTL = 0 + } else { + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.HeartbeatTTL)); yyxt5 != nil { + z.DecExtension(x.HeartbeatTTL, yyxt5) + } else { + x.HeartbeatTTL = (time.Duration)(r.DecodeInt64()) + } + } + case "EvalIDs": + if r.TryDecodeAsNil() { + x.EvalIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.EvalIDs), d) + } + } + case "EvalCreateIndex": + if r.TryDecodeAsNil() { + x.EvalCreateIndex = 0 + } else { + x.EvalCreateIndex = (uint64)(r.DecodeUint64()) + } + case "NodeModifyIndex": + if r.TryDecodeAsNil() { + x.NodeModifyIndex = 0 + } else { + x.NodeModifyIndex = (uint64)(r.DecodeUint64()) + } + case "Features": + if r.TryDecodeAsNil() { + x.Features = 0 + } else { + x.Features = (uint64)(r.DecodeUint64()) + } + case "LeaderRPCAddr": + if r.TryDecodeAsNil() { + x.LeaderRPCAddr = "" + } else { + x.LeaderRPCAddr = (string)(r.DecodeString()) + } + case "NumNodes": + if r.TryDecodeAsNil() { + x.NumNodes = 0 + } else { + x.NumNodes = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "Servers": + if r.TryDecodeAsNil() { + x.Servers = nil + } else { + if false { + } else { + h.decSlicePtrtoNodeServerInfo((*[]*NodeServerInfo)(&x.Servers), d) + } + } + case "SchedulingEligibility": + if r.TryDecodeAsNil() { + x.SchedulingEligibility = "" + } else { + x.SchedulingEligibility = (string)(r.DecodeString()) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt18 := z.Extension(z.I2Rtid(x.LastContact)); yyxt18 != nil { + z.DecExtension(x.LastContact, yyxt18) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeUpdateResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj21 int + var yyb21 bool + var yyhl21 bool = l >= 0 + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HeartbeatTTL = 0 + } else { + if false { + } else if yyxt23 := z.Extension(z.I2Rtid(x.HeartbeatTTL)); yyxt23 != nil { + z.DecExtension(x.HeartbeatTTL, yyxt23) + } else { + x.HeartbeatTTL = (time.Duration)(r.DecodeInt64()) + } + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.EvalIDs), d) + } + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalCreateIndex = 0 + } else { + x.EvalCreateIndex = (uint64)(r.DecodeUint64()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeModifyIndex = 0 + } else { + x.NodeModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Features = 0 + } else { + x.Features = (uint64)(r.DecodeUint64()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LeaderRPCAddr = "" + } else { + x.LeaderRPCAddr = (string)(r.DecodeString()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NumNodes = 0 + } else { + x.NumNodes = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Servers = nil + } else { + if false { + } else { + h.decSlicePtrtoNodeServerInfo((*[]*NodeServerInfo)(&x.Servers), d) + } + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SchedulingEligibility = "" + } else { + x.SchedulingEligibility = (string)(r.DecodeString()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt36 := z.Extension(z.I2Rtid(x.LastContact)); yyxt36 != nil { + z.DecExtension(x.LastContact, yyxt36) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj21-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeDrainUpdateResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.NodeModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.NodeModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.EvalIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.EvalIDs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalIDs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalIDs`) + } + r.WriteMapElemValue() + if x.EvalIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.EvalIDs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.EvalCreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalCreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalCreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.EvalCreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeDrainUpdateResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeDrainUpdateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodeModifyIndex": + if r.TryDecodeAsNil() { + x.NodeModifyIndex = 0 + } else { + x.NodeModifyIndex = (uint64)(r.DecodeUint64()) + } + case "EvalIDs": + if r.TryDecodeAsNil() { + x.EvalIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.EvalIDs), d) + } + } + case "EvalCreateIndex": + if r.TryDecodeAsNil() { + x.EvalCreateIndex = 0 + } else { + x.EvalCreateIndex = (uint64)(r.DecodeUint64()) + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeDrainUpdateResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeModifyIndex = 0 + } else { + x.NodeModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.EvalIDs), d) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalCreateIndex = 0 + } else { + x.EvalCreateIndex = (uint64)(r.DecodeUint64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeEligibilityUpdateResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.NodeModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.NodeModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.EvalIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.EvalIDs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalIDs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalIDs`) + } + r.WriteMapElemValue() + if x.EvalIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.EvalIDs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.EvalCreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalCreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalCreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.EvalCreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeEligibilityUpdateResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeEligibilityUpdateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodeModifyIndex": + if r.TryDecodeAsNil() { + x.NodeModifyIndex = 0 + } else { + x.NodeModifyIndex = (uint64)(r.DecodeUint64()) + } + case "EvalIDs": + if r.TryDecodeAsNil() { + x.EvalIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.EvalIDs), d) + } + } + case "EvalCreateIndex": + if r.TryDecodeAsNil() { + x.EvalCreateIndex = 0 + } else { + x.EvalCreateIndex = (uint64)(r.DecodeUint64()) + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeEligibilityUpdateResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeModifyIndex = 0 + } else { + x.NodeModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.EvalIDs), d) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalCreateIndex = 0 + } else { + x.EvalCreateIndex = (uint64)(r.DecodeUint64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeAllocsResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Allocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocation(([]*Allocation)(x.Allocs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Allocs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Allocs`) + } + r.WriteMapElemValue() + if x.Allocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocation(([]*Allocation)(x.Allocs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeAllocsResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeAllocsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Allocs": + if r.TryDecodeAsNil() { + x.Allocs = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocation((*[]*Allocation)(&x.Allocs), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeAllocsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Allocs = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocation((*[]*Allocation)(&x.Allocs), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeClientAllocsResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Allocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringuint64((map[string]uint64)(x.Allocs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Allocs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Allocs`) + } + r.WriteMapElemValue() + if x.Allocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringuint64((map[string]uint64)(x.Allocs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.MigrateTokens == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.MigrateTokens), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MigrateTokens\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MigrateTokens`) + } + r.WriteMapElemValue() + if x.MigrateTokens == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.MigrateTokens), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { + z.EncExtension(x.LastContact, yyxt13) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.EncExtension(x.LastContact, yyxt14) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeClientAllocsResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeClientAllocsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Allocs": + if r.TryDecodeAsNil() { + x.Allocs = nil + } else { + if false { + } else { + h.decMapstringuint64((*map[string]uint64)(&x.Allocs), d) + } + } + case "MigrateTokens": + if r.TryDecodeAsNil() { + x.MigrateTokens = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.MigrateTokens), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.DecExtension(x.LastContact, yyxt10) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeClientAllocsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Allocs = nil + } else { + if false { + } else { + h.decMapstringuint64((*map[string]uint64)(&x.Allocs), d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MigrateTokens = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.MigrateTokens), d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.LastContact)); yyxt20 != nil { + z.DecExtension(x.LastContact, yyxt20) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *SingleNodeResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + var yyn3 bool + if x.Node == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Node == nil { + r.EncodeNil() + } else { + x.Node.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Node\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Node`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Node == nil { + r.EncodeNil() + } else { + x.Node.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SingleNodeResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SingleNodeResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Node": + if r.TryDecodeAsNil() { + if true && x.Node != nil { + x.Node = nil + } + } else { + if x.Node == nil { + x.Node = new(Node) + } + + x.Node.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SingleNodeResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Node != nil { + x.Node = nil + } + } else { + if x.Node == nil { + x.Node = new(Node) + } + + x.Node.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.DecExtension(x.LastContact, yyxt14) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeListResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Nodes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeListStub(([]*NodeListStub)(x.Nodes), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Nodes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Nodes`) + } + r.WriteMapElemValue() + if x.Nodes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeListStub(([]*NodeListStub)(x.Nodes), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeListResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Nodes": + if r.TryDecodeAsNil() { + x.Nodes = nil + } else { + if false { + } else { + h.decSlicePtrtoNodeListStub((*[]*NodeListStub)(&x.Nodes), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Nodes = nil + } else { + if false { + } else { + h.decSlicePtrtoNodeListStub((*[]*NodeListStub)(&x.Nodes), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *SingleJobResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + var yyn3 bool + if x.Job == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Job\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SingleJobResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SingleJobResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Job": + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SingleJobResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.DecExtension(x.LastContact, yyxt14) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobSummaryResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + var yyn3 bool + if x.JobSummary == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.JobSummary == nil { + r.EncodeNil() + } else { + x.JobSummary.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobSummary\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobSummary`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.JobSummary == nil { + r.EncodeNil() + } else { + x.JobSummary.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobSummaryResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobSummaryResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobSummary": + if r.TryDecodeAsNil() { + if true && x.JobSummary != nil { + x.JobSummary = nil + } + } else { + if x.JobSummary == nil { + x.JobSummary = new(JobSummary) + } + + x.JobSummary.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobSummaryResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.JobSummary != nil { + x.JobSummary = nil + } + } else { + if x.JobSummary == nil { + x.JobSummary = new(JobSummary) + } + + x.JobSummary.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.DecExtension(x.LastContact, yyxt14) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobScaleStatusResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + var yyn3 bool + if x.JobScaleStatus == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.JobScaleStatus == nil { + r.EncodeNil() + } else { + x.JobScaleStatus.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobScaleStatus\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobScaleStatus`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.JobScaleStatus == nil { + r.EncodeNil() + } else { + x.JobScaleStatus.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobScaleStatusResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobScaleStatusResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobScaleStatus": + if r.TryDecodeAsNil() { + if true && x.JobScaleStatus != nil { + x.JobScaleStatus = nil + } + } else { + if x.JobScaleStatus == nil { + x.JobScaleStatus = new(JobScaleStatus) + } + + x.JobScaleStatus.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobScaleStatusResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.JobScaleStatus != nil { + x.JobScaleStatus = nil + } + } else { + if x.JobScaleStatus == nil { + x.JobScaleStatus = new(JobScaleStatus) + } + + x.JobScaleStatus.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.DecExtension(x.LastContact, yyxt14) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobScaleStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobCreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobCreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobCreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobCreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.JobStopped)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobStopped\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobStopped`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.JobStopped)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.TaskGroups == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoTaskGroupScaleStatus((map[string]*TaskGroupScaleStatus)(x.TaskGroups), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskGroups\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroups`) + } + r.WriteMapElemValue() + if x.TaskGroups == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoTaskGroupScaleStatus((map[string]*TaskGroupScaleStatus)(x.TaskGroups), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobScaleStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobScaleStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "JobCreateIndex": + if r.TryDecodeAsNil() { + x.JobCreateIndex = 0 + } else { + x.JobCreateIndex = (uint64)(r.DecodeUint64()) + } + case "JobModifyIndex": + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + case "JobStopped": + if r.TryDecodeAsNil() { + x.JobStopped = false + } else { + x.JobStopped = (bool)(r.DecodeBool()) + } + case "TaskGroups": + if r.TryDecodeAsNil() { + x.TaskGroups = nil + } else { + if false { + } else { + h.decMapstringPtrtoTaskGroupScaleStatus((*map[string]*TaskGroupScaleStatus)(&x.TaskGroups), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobScaleStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobCreateIndex = 0 + } else { + x.JobCreateIndex = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobStopped = false + } else { + x.JobStopped = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskGroups = nil + } else { + if false { + } else { + h.decMapstringPtrtoTaskGroupScaleStatus((*map[string]*TaskGroupScaleStatus)(&x.TaskGroups), d) + } + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *TaskGroupScaleStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Desired)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Desired\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Desired`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Desired)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Placed)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Placed\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Placed`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Placed)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Running)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Running\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Running`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Running)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Healthy)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Healthy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Healthy`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Healthy)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Unhealthy)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Unhealthy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Unhealthy`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Unhealthy)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Events == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoScalingEvent(([]*ScalingEvent)(x.Events), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Events\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Events`) + } + r.WriteMapElemValue() + if x.Events == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoScalingEvent(([]*ScalingEvent)(x.Events), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *TaskGroupScaleStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *TaskGroupScaleStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Desired": + if r.TryDecodeAsNil() { + x.Desired = 0 + } else { + x.Desired = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Placed": + if r.TryDecodeAsNil() { + x.Placed = 0 + } else { + x.Placed = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Running": + if r.TryDecodeAsNil() { + x.Running = 0 + } else { + x.Running = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Healthy": + if r.TryDecodeAsNil() { + x.Healthy = 0 + } else { + x.Healthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Unhealthy": + if r.TryDecodeAsNil() { + x.Unhealthy = 0 + } else { + x.Unhealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Events": + if r.TryDecodeAsNil() { + x.Events = nil + } else { + if false { + } else { + h.decSlicePtrtoScalingEvent((*[]*ScalingEvent)(&x.Events), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *TaskGroupScaleStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Desired = 0 + } else { + x.Desired = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Placed = 0 + } else { + x.Placed = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Running = 0 + } else { + x.Running = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Healthy = 0 + } else { + x.Healthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Unhealthy = 0 + } else { + x.Unhealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Events = nil + } else { + if false { + } else { + h.decSlicePtrtoScalingEvent((*[]*ScalingEvent)(&x.Events), d) + } + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobDispatchResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DispatchedJobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DispatchedJobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DispatchedJobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DispatchedJobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DispatchedJobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DispatchedJobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.EvalCreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalCreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalCreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.EvalCreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobCreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobCreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobCreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobCreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobDispatchResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobDispatchResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DispatchedJobID": + if r.TryDecodeAsNil() { + x.DispatchedJobID = "" + } else { + x.DispatchedJobID = (string)(r.DecodeString()) + } + case "EvalID": + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + case "EvalCreateIndex": + if r.TryDecodeAsNil() { + x.EvalCreateIndex = 0 + } else { + x.EvalCreateIndex = (uint64)(r.DecodeUint64()) + } + case "JobCreateIndex": + if r.TryDecodeAsNil() { + x.JobCreateIndex = 0 + } else { + x.JobCreateIndex = (uint64)(r.DecodeUint64()) + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobDispatchResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DispatchedJobID = "" + } else { + x.DispatchedJobID = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalCreateIndex = 0 + } else { + x.EvalCreateIndex = (uint64)(r.DecodeUint64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobCreateIndex = 0 + } else { + x.JobCreateIndex = (uint64)(r.DecodeUint64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobListResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Jobs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoJobListStub(([]*JobListStub)(x.Jobs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Jobs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Jobs`) + } + r.WriteMapElemValue() + if x.Jobs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoJobListStub(([]*JobListStub)(x.Jobs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobListResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Jobs": + if r.TryDecodeAsNil() { + x.Jobs = nil + } else { + if false { + } else { + h.decSlicePtrtoJobListStub((*[]*JobListStub)(&x.Jobs), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Jobs = nil + } else { + if false { + } else { + h.decSlicePtrtoJobListStub((*[]*JobListStub)(&x.Jobs), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobVersionsRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(16) + } else { + r.WriteMapStart(16) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Diffs)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Diffs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Diffs`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Diffs)) + } + } + var yyn9 bool + if x.DiffVersion == nil { + yyn9 = true + goto LABEL9 + } + LABEL9: + if yyr2 || yy2arr2 { + if yyn9 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.DiffVersion == nil { + r.EncodeNil() + } else { + yy10 := *x.DiffVersion + if false { + } else { + r.EncodeUint(uint64(yy10)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DiffVersion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DiffVersion`) + } + r.WriteMapElemValue() + if yyn9 { + r.EncodeNil() + } else { + if x.DiffVersion == nil { + r.EncodeNil() + } else { + yy12 := *x.DiffVersion + if false { + } else { + r.EncodeUint(uint64(yy12)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DiffTagName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DiffTagName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DiffTagName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DiffTagName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DiffTagName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DiffTagName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt27 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt27 != nil { + z.EncExtension(x.MaxQueryTime, yyxt27) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt28 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt28 != nil { + z.EncExtension(x.MaxQueryTime, yyxt28) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobVersionsRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobVersionsRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "Diffs": + if r.TryDecodeAsNil() { + x.Diffs = false + } else { + x.Diffs = (bool)(r.DecodeBool()) + } + case "DiffVersion": + if r.TryDecodeAsNil() { + if true && x.DiffVersion != nil { + x.DiffVersion = nil + } + } else { + if x.DiffVersion == nil { + x.DiffVersion = new(uint64) + } + + if false { + } else { + *x.DiffVersion = (uint64)(r.DecodeUint64()) + } + } + case "DiffTagName": + if r.TryDecodeAsNil() { + x.DiffTagName = "" + } else { + x.DiffTagName = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.DecExtension(x.MaxQueryTime, yyxt13) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobVersionsRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj22 int + var yyb22 bool + var yyhl22 bool = l >= 0 + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Diffs = false + } else { + x.Diffs = (bool)(r.DecodeBool()) + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.DiffVersion != nil { + x.DiffVersion = nil + } + } else { + if x.DiffVersion == nil { + x.DiffVersion = new(uint64) + } + + if false { + } else { + *x.DiffVersion = (uint64)(r.DecodeUint64()) + } + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DiffTagName = "" + } else { + x.DiffTagName = (string)(r.DecodeString()) + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt32 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt32 != nil { + z.DecExtension(x.MaxQueryTime, yyxt32) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj22-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobVersionsResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Versions == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoJob(([]*Job)(x.Versions), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Versions\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Versions`) + } + r.WriteMapElemValue() + if x.Versions == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoJob(([]*Job)(x.Versions), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Diffs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoJobDiff(([]*JobDiff)(x.Diffs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Diffs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Diffs`) + } + r.WriteMapElemValue() + if x.Diffs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoJobDiff(([]*JobDiff)(x.Diffs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { + z.EncExtension(x.LastContact, yyxt13) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.EncExtension(x.LastContact, yyxt14) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobVersionsResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobVersionsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Versions": + if r.TryDecodeAsNil() { + x.Versions = nil + } else { + if false { + } else { + h.decSlicePtrtoJob((*[]*Job)(&x.Versions), d) + } + } + case "Diffs": + if r.TryDecodeAsNil() { + x.Diffs = nil + } else { + if false { + } else { + h.decSlicePtrtoJobDiff((*[]*JobDiff)(&x.Diffs), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.DecExtension(x.LastContact, yyxt10) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobVersionsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Versions = nil + } else { + if false { + } else { + h.decSlicePtrtoJob((*[]*Job)(&x.Versions), d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Diffs = nil + } else { + if false { + } else { + h.decSlicePtrtoJobDiff((*[]*JobDiff)(&x.Diffs), d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.LastContact)); yyxt20 != nil { + z.DecExtension(x.LastContact, yyxt20) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobPlanResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + var yyn3 bool + if x.Annotations == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Annotations == nil { + r.EncodeNil() + } else { + x.Annotations.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Annotations\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Annotations`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Annotations == nil { + r.EncodeNil() + } else { + x.Annotations.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.FailedTGAllocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoAllocMetric((map[string]*AllocMetric)(x.FailedTGAllocs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FailedTGAllocs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `FailedTGAllocs`) + } + r.WriteMapElemValue() + if x.FailedTGAllocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoAllocMetric((map[string]*AllocMetric)(x.FailedTGAllocs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.CreatedEvals == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.CreatedEvals), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreatedEvals\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreatedEvals`) + } + r.WriteMapElemValue() + if x.CreatedEvals == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.CreatedEvals), e) + } + } + } + var yyn15 bool + if x.Diff == nil { + yyn15 = true + goto LABEL15 + } + LABEL15: + if yyr2 || yy2arr2 { + if yyn15 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Diff == nil { + r.EncodeNil() + } else { + x.Diff.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Diff\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Diff`) + } + r.WriteMapElemValue() + if yyn15 { + r.EncodeNil() + } else { + if x.Diff == nil { + r.EncodeNil() + } else { + x.Diff.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.NextPeriodicLaunch) + } else if yyxt19 := z.Extension(z.I2Rtid(x.NextPeriodicLaunch)); yyxt19 != nil { + z.EncExtension(x.NextPeriodicLaunch, yyxt19) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.NextPeriodicLaunch) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.NextPeriodicLaunch) + } else { + z.EncFallback(x.NextPeriodicLaunch) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextPeriodicLaunch\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextPeriodicLaunch`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.NextPeriodicLaunch) + } else if yyxt20 := z.Extension(z.I2Rtid(x.NextPeriodicLaunch)); yyxt20 != nil { + z.EncExtension(x.NextPeriodicLaunch, yyxt20) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.NextPeriodicLaunch) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.NextPeriodicLaunch) + } else { + z.EncFallback(x.NextPeriodicLaunch) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Warnings))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Warnings)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Warnings\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Warnings`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Warnings))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Warnings)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobPlanResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobPlanResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Annotations": + if r.TryDecodeAsNil() { + if true && x.Annotations != nil { + x.Annotations = nil + } + } else { + if x.Annotations == nil { + x.Annotations = new(PlanAnnotations) + } + + x.Annotations.CodecDecodeSelf(d) + } + case "FailedTGAllocs": + if r.TryDecodeAsNil() { + x.FailedTGAllocs = nil + } else { + if false { + } else { + h.decMapstringPtrtoAllocMetric((*map[string]*AllocMetric)(&x.FailedTGAllocs), d) + } + } + case "JobModifyIndex": + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + case "CreatedEvals": + if r.TryDecodeAsNil() { + x.CreatedEvals = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.CreatedEvals), d) + } + } + case "Diff": + if r.TryDecodeAsNil() { + if true && x.Diff != nil { + x.Diff = nil + } + } else { + if x.Diff == nil { + x.Diff = new(JobDiff) + } + + x.Diff.CodecDecodeSelf(d) + } + case "NextPeriodicLaunch": + if r.TryDecodeAsNil() { + x.NextPeriodicLaunch = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.NextPeriodicLaunch = r.DecodeTime() + } else if yyxt12 := z.Extension(z.I2Rtid(x.NextPeriodicLaunch)); yyxt12 != nil { + z.DecExtension(x.NextPeriodicLaunch, yyxt12) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.NextPeriodicLaunch) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.NextPeriodicLaunch) + } else { + z.DecFallback(&x.NextPeriodicLaunch, false) + } + } + case "Warnings": + if r.TryDecodeAsNil() { + x.Warnings = "" + } else { + x.Warnings = (string)(r.DecodeString()) + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobPlanResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj15 int + var yyb15 bool + var yyhl15 bool = l >= 0 + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Annotations != nil { + x.Annotations = nil + } + } else { + if x.Annotations == nil { + x.Annotations = new(PlanAnnotations) + } + + x.Annotations.CodecDecodeSelf(d) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.FailedTGAllocs = nil + } else { + if false { + } else { + h.decMapstringPtrtoAllocMetric((*map[string]*AllocMetric)(&x.FailedTGAllocs), d) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreatedEvals = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.CreatedEvals), d) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Diff != nil { + x.Diff = nil + } + } else { + if x.Diff == nil { + x.Diff = new(JobDiff) + } + + x.Diff.CodecDecodeSelf(d) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NextPeriodicLaunch = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.NextPeriodicLaunch = r.DecodeTime() + } else if yyxt24 := z.Extension(z.I2Rtid(x.NextPeriodicLaunch)); yyxt24 != nil { + z.DecExtension(x.NextPeriodicLaunch, yyxt24) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.NextPeriodicLaunch) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.NextPeriodicLaunch) + } else { + z.DecFallback(&x.NextPeriodicLaunch, false) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Warnings = "" + } else { + x.Warnings = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj15-1, "") + } + r.ReadArrayEnd() +} + +func (x *SingleAllocResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + var yyn3 bool + if x.Alloc == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Alloc == nil { + r.EncodeNil() + } else { + x.Alloc.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Alloc\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Alloc`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Alloc == nil { + r.EncodeNil() + } else { + x.Alloc.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SingleAllocResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SingleAllocResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Alloc": + if r.TryDecodeAsNil() { + if true && x.Alloc != nil { + x.Alloc = nil + } + } else { + if x.Alloc == nil { + x.Alloc = new(Allocation) + } + + x.Alloc.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SingleAllocResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Alloc != nil { + x.Alloc = nil + } + } else { + if x.Alloc == nil { + x.Alloc = new(Allocation) + } + + x.Alloc.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.DecExtension(x.LastContact, yyxt14) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocsGetResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Allocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocation(([]*Allocation)(x.Allocs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Allocs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Allocs`) + } + r.WriteMapElemValue() + if x.Allocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocation(([]*Allocation)(x.Allocs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.SignedIdentities == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceSignedWorkloadIdentity(([]SignedWorkloadIdentity)(x.SignedIdentities), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SignedIdentities\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SignedIdentities`) + } + r.WriteMapElemValue() + if x.SignedIdentities == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceSignedWorkloadIdentity(([]SignedWorkloadIdentity)(x.SignedIdentities), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { + z.EncExtension(x.LastContact, yyxt13) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.EncExtension(x.LastContact, yyxt14) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocsGetResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocsGetResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Allocs": + if r.TryDecodeAsNil() { + x.Allocs = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocation((*[]*Allocation)(&x.Allocs), d) + } + } + case "SignedIdentities": + if r.TryDecodeAsNil() { + x.SignedIdentities = nil + } else { + if false { + } else { + h.decSliceSignedWorkloadIdentity((*[]SignedWorkloadIdentity)(&x.SignedIdentities), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.DecExtension(x.LastContact, yyxt10) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocsGetResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Allocs = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocation((*[]*Allocation)(&x.Allocs), d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SignedIdentities = nil + } else { + if false { + } else { + h.decSliceSignedWorkloadIdentity((*[]SignedWorkloadIdentity)(&x.SignedIdentities), d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.LastContact)); yyxt20 != nil { + z.DecExtension(x.LastContact, yyxt20) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobAllocationsResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Allocations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Allocations\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Allocations`) + } + r.WriteMapElemValue() + if x.Allocations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobAllocationsResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobAllocationsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Allocations": + if r.TryDecodeAsNil() { + x.Allocations = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.Allocations), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobAllocationsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Allocations = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.Allocations), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobEvaluationsResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Evaluations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evaluations), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Evaluations\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Evaluations`) + } + r.WriteMapElemValue() + if x.Evaluations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evaluations), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobEvaluationsResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobEvaluationsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Evaluations": + if r.TryDecodeAsNil() { + x.Evaluations = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evaluations), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobEvaluationsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Evaluations = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evaluations), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *SingleEvalResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + var yyn3 bool + if x.Eval == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Eval == nil { + r.EncodeNil() + } else { + x.Eval.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Eval\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Eval`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Eval == nil { + r.EncodeNil() + } else { + x.Eval.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SingleEvalResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SingleEvalResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Eval": + if r.TryDecodeAsNil() { + if true && x.Eval != nil { + x.Eval = nil + } + } else { + if x.Eval == nil { + x.Eval = new(Evaluation) + } + + x.Eval.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SingleEvalResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Eval != nil { + x.Eval = nil + } + } else { + if x.Eval == nil { + x.Eval = new(Evaluation) + } + + x.Eval.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.DecExtension(x.LastContact, yyxt14) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *EvalDequeueResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + var yyn3 bool + if x.Eval == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Eval == nil { + r.EncodeNil() + } else { + x.Eval.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Eval\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Eval`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Eval == nil { + r.EncodeNil() + } else { + x.Eval.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Token))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Token)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Token\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Token`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Token))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Token)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.WaitIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"WaitIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `WaitIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.WaitIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.EncExtension(x.LastContact, yyxt16) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.LastContact)); yyxt17 != nil { + z.EncExtension(x.LastContact, yyxt17) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EvalDequeueResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EvalDequeueResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Eval": + if r.TryDecodeAsNil() { + if true && x.Eval != nil { + x.Eval = nil + } + } else { + if x.Eval == nil { + x.Eval = new(Evaluation) + } + + x.Eval.CodecDecodeSelf(d) + } + case "Token": + if r.TryDecodeAsNil() { + x.Token = "" + } else { + x.Token = (string)(r.DecodeString()) + } + case "WaitIndex": + if r.TryDecodeAsNil() { + x.WaitIndex = 0 + } else { + x.WaitIndex = (uint64)(r.DecodeUint64()) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.LastContact)); yyxt9 != nil { + z.DecExtension(x.LastContact, yyxt9) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EvalDequeueResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Eval != nil { + x.Eval = nil + } + } else { + if x.Eval == nil { + x.Eval = new(Evaluation) + } + + x.Eval.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Token = "" + } else { + x.Token = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WaitIndex = 0 + } else { + x.WaitIndex = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt18 := z.Extension(z.I2Rtid(x.LastContact)); yyxt18 != nil { + z.DecExtension(x.LastContact, yyxt18) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *PlanResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + var yyn3 bool + if x.Result == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Result == nil { + r.EncodeNil() + } else { + x.Result.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Result\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Result`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Result == nil { + r.EncodeNil() + } else { + x.Result.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *PlanResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *PlanResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Result": + if r.TryDecodeAsNil() { + if true && x.Result != nil { + x.Result = nil + } + } else { + if x.Result == nil { + x.Result = new(PlanResult) + } + + x.Result.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *PlanResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Result != nil { + x.Result = nil + } + } else { + if x.Result == nil { + x.Result = new(PlanResult) + } + + x.Result.CodecDecodeSelf(d) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocListResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Allocations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Allocations\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Allocations`) + } + r.WriteMapElemValue() + if x.Allocations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocListResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Allocations": + if r.TryDecodeAsNil() { + x.Allocations = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.Allocations), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Allocations = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.Allocations), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeploymentListResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Deployments == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoDeployment(([]*Deployment)(x.Deployments), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Deployments\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Deployments`) + } + r.WriteMapElemValue() + if x.Deployments == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoDeployment(([]*Deployment)(x.Deployments), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeploymentListResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeploymentListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Deployments": + if r.TryDecodeAsNil() { + x.Deployments = nil + } else { + if false { + } else { + h.decSlicePtrtoDeployment((*[]*Deployment)(&x.Deployments), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeploymentListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Deployments = nil + } else { + if false { + } else { + h.decSlicePtrtoDeployment((*[]*Deployment)(&x.Deployments), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *EvalListResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Evaluations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evaluations), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Evaluations\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Evaluations`) + } + r.WriteMapElemValue() + if x.Evaluations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evaluations), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EvalListResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EvalListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Evaluations": + if r.TryDecodeAsNil() { + x.Evaluations = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evaluations), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EvalListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Evaluations = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evaluations), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *EvalCountResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Count)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Count\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Count`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Count)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EvalCountResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EvalCountResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Count": + if r.TryDecodeAsNil() { + x.Count = 0 + } else { + x.Count = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EvalCountResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Count = 0 + } else { + x.Count = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.DecExtension(x.LastContact, yyxt14) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *EvalAllocationsResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Allocations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Allocations\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Allocations`) + } + r.WriteMapElemValue() + if x.Allocations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EvalAllocationsResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EvalAllocationsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Allocations": + if r.TryDecodeAsNil() { + x.Allocations = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.Allocations), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EvalAllocationsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Allocations = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.Allocations), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *PeriodicForceResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.EvalCreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalCreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalCreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.EvalCreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *PeriodicForceResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *PeriodicForceResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "EvalID": + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + case "EvalCreateIndex": + if r.TryDecodeAsNil() { + x.EvalCreateIndex = 0 + } else { + x.EvalCreateIndex = (uint64)(r.DecodeUint64()) + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *PeriodicForceResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalCreateIndex = 0 + } else { + x.EvalCreateIndex = (uint64)(r.DecodeUint64()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeploymentUpdateResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.EvalCreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalCreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalCreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.EvalCreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.DeploymentModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.DeploymentModifyIndex)) + } + } + var yyn12 bool + if x.RevertedJobVersion == nil { + yyn12 = true + goto LABEL12 + } + LABEL12: + if yyr2 || yy2arr2 { + if yyn12 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.RevertedJobVersion == nil { + r.EncodeNil() + } else { + yy13 := *x.RevertedJobVersion + if false { + } else { + r.EncodeUint(uint64(yy13)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RevertedJobVersion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RevertedJobVersion`) + } + r.WriteMapElemValue() + if yyn12 { + r.EncodeNil() + } else { + if x.RevertedJobVersion == nil { + r.EncodeNil() + } else { + yy15 := *x.RevertedJobVersion + if false { + } else { + r.EncodeUint(uint64(yy15)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeploymentUpdateResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeploymentUpdateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "EvalID": + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + case "EvalCreateIndex": + if r.TryDecodeAsNil() { + x.EvalCreateIndex = 0 + } else { + x.EvalCreateIndex = (uint64)(r.DecodeUint64()) + } + case "DeploymentModifyIndex": + if r.TryDecodeAsNil() { + x.DeploymentModifyIndex = 0 + } else { + x.DeploymentModifyIndex = (uint64)(r.DecodeUint64()) + } + case "RevertedJobVersion": + if r.TryDecodeAsNil() { + if true && x.RevertedJobVersion != nil { + x.RevertedJobVersion = nil + } + } else { + if x.RevertedJobVersion == nil { + x.RevertedJobVersion = new(uint64) + } + + if false { + } else { + *x.RevertedJobVersion = (uint64)(r.DecodeUint64()) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeploymentUpdateResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalCreateIndex = 0 + } else { + x.EvalCreateIndex = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentModifyIndex = 0 + } else { + x.DeploymentModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.RevertedJobVersion != nil { + x.RevertedJobVersion = nil + } + } else { + if x.RevertedJobVersion == nil { + x.RevertedJobVersion = new(uint64) + } + + if false { + } else { + *x.RevertedJobVersion = (uint64)(r.DecodeUint64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeConnQueryResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Connected)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Connected\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Connected`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Connected)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.Established) + } else if yyxt7 := z.Extension(z.I2Rtid(x.Established)); yyxt7 != nil { + z.EncExtension(x.Established, yyxt7) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Established) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.Established) + } else { + z.EncFallback(x.Established) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Established\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Established`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.Established) + } else if yyxt8 := z.Extension(z.I2Rtid(x.Established)); yyxt8 != nil { + z.EncExtension(x.Established, yyxt8) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Established) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.Established) + } else { + z.EncFallback(x.Established) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { + z.EncExtension(x.LastContact, yyxt13) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.EncExtension(x.LastContact, yyxt14) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeConnQueryResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeConnQueryResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Connected": + if r.TryDecodeAsNil() { + x.Connected = false + } else { + x.Connected = (bool)(r.DecodeBool()) + } + case "Established": + if r.TryDecodeAsNil() { + x.Established = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.Established = r.DecodeTime() + } else if yyxt6 := z.Extension(z.I2Rtid(x.Established)); yyxt6 != nil { + z.DecExtension(x.Established, yyxt6) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Established) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.Established) + } else { + z.DecFallback(&x.Established, false) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.LastContact)); yyxt9 != nil { + z.DecExtension(x.LastContact, yyxt9) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeConnQueryResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Connected = false + } else { + x.Connected = (bool)(r.DecodeBool()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Established = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.Established = r.DecodeTime() + } else if yyxt15 := z.Extension(z.I2Rtid(x.Established)); yyxt15 != nil { + z.DecExtension(x.Established, yyxt15) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Established) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.Established) + } else { + z.DecFallback(&x.Established, false) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt18 := z.Extension(z.I2Rtid(x.LastContact)); yyxt18 != nil { + z.DecExtension(x.LastContact, yyxt18) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *HostDataRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(14) + } else { + r.WriteMapStart(14) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ServerID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServerID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ServerID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ServerID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ServerID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServerID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { + z.EncExtension(x.MaxQueryTime, yyxt19) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { + z.EncExtension(x.MaxQueryTime, yyxt20) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *HostDataRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *HostDataRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ServerID": + if r.TryDecodeAsNil() { + x.ServerID = "" + } else { + x.ServerID = (string)(r.DecodeString()) + } + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *HostDataRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj19 int + var yyb19 bool + var yyhl19 bool = l >= 0 + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ServerID = "" + } else { + x.ServerID = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { + z.DecExtension(x.MaxQueryTime, yyxt26) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj19-1, "") + } + r.ReadArrayEnd() +} + +func (x *HostDataResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AgentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AgentID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AgentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AgentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AgentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AgentID)) + } + } + } + var yyn6 bool + if x.HostData == nil { + yyn6 = true + goto LABEL6 + } + LABEL6: + if yyr2 || yy2arr2 { + if yyn6 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.HostData == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.HostData)); yyxt7 != nil { + z.EncExtension(x.HostData, yyxt7) + } else { + z.EncFallback(x.HostData) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HostData\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HostData`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.HostData == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.HostData)); yyxt8 != nil { + z.EncExtension(x.HostData, yyxt8) + } else { + z.EncFallback(x.HostData) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *HostDataResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *HostDataResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AgentID": + if r.TryDecodeAsNil() { + x.AgentID = "" + } else { + x.AgentID = (string)(r.DecodeString()) + } + case "HostData": + if r.TryDecodeAsNil() { + if true && x.HostData != nil { + x.HostData = nil + } + } else { + if x.HostData == nil { + x.HostData = new(pkg12_host.HostData) + } + + if false { + } else if yyxt6 := z.Extension(z.I2Rtid(x.HostData)); yyxt6 != nil { + z.DecExtension(x.HostData, yyxt6) + } else { + z.DecFallback(x.HostData, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *HostDataResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AgentID = "" + } else { + x.AgentID = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.HostData != nil { + x.HostData = nil + } + } else { + if x.HostData == nil { + x.HostData = new(pkg12_host.HostData) + } + + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.HostData)); yyxt10 != nil { + z.DecExtension(x.HostData, yyxt10) + } else { + z.DecFallback(x.HostData, false) + } + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *EmitNodeEventsRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.NodeEvents == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicePtrtoNodeEvent((map[string][]*NodeEvent)(x.NodeEvents), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeEvents\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeEvents`) + } + r.WriteMapElemValue() + if x.NodeEvents == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicePtrtoNodeEvent((map[string][]*NodeEvent)(x.NodeEvents), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EmitNodeEventsRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EmitNodeEventsRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodeEvents": + if r.TryDecodeAsNil() { + x.NodeEvents = nil + } else { + if false { + } else { + h.decMapstringSlicePtrtoNodeEvent((*map[string][]*NodeEvent)(&x.NodeEvents), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EmitNodeEventsRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeEvents = nil + } else { + if false { + } else { + h.decMapstringSlicePtrtoNodeEvent((*map[string][]*NodeEvent)(&x.NodeEvents), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *EmitNodeEventsResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EmitNodeEventsResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EmitNodeEventsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EmitNodeEventsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeEvent) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Message)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Message\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Message`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Message)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Subsystem))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Subsystem)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Subsystem\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Subsystem`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Subsystem))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Subsystem)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Details == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Details), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Details\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Details`) + } + r.WriteMapElemValue() + if x.Details == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Details), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.Timestamp) + } else if yyxt13 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt13 != nil { + z.EncExtension(x.Timestamp, yyxt13) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Timestamp) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.Timestamp) + } else { + z.EncFallback(x.Timestamp) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timestamp\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Timestamp`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.Timestamp) + } else if yyxt14 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt14 != nil { + z.EncExtension(x.Timestamp, yyxt14) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Timestamp) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.Timestamp) + } else { + z.EncFallback(x.Timestamp) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeEvent) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeEvent) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Message": + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = (string)(r.DecodeString()) + } + case "Subsystem": + if r.TryDecodeAsNil() { + x.Subsystem = "" + } else { + x.Subsystem = (string)(r.DecodeString()) + } + case "Details": + if r.TryDecodeAsNil() { + x.Details = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Details), d) + } + } + case "Timestamp": + if r.TryDecodeAsNil() { + x.Timestamp = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.Timestamp = r.DecodeTime() + } else if yyxt9 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt9 != nil { + z.DecExtension(x.Timestamp, yyxt9) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Timestamp) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.Timestamp) + } else { + z.DecFallback(&x.Timestamp, false) + } + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Subsystem = "" + } else { + x.Subsystem = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Details = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Details), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Timestamp = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.Timestamp = r.DecodeTime() + } else if yyxt17 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt17 != nil { + z.DecExtension(x.Timestamp, yyxt17) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Timestamp) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.Timestamp) + } else { + z.DecFallback(&x.Timestamp, false) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *DrainSpec) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt4 := z.Extension(z.I2Rtid(x.Deadline)); yyxt4 != nil { + z.EncExtension(x.Deadline, yyxt4) + } else { + r.EncodeInt(int64(x.Deadline)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Deadline\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Deadline`) + } + r.WriteMapElemValue() + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.Deadline)); yyxt5 != nil { + z.EncExtension(x.Deadline, yyxt5) + } else { + r.EncodeInt(int64(x.Deadline)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.IgnoreSystemJobs)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IgnoreSystemJobs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IgnoreSystemJobs`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.IgnoreSystemJobs)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DrainSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DrainSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Deadline": + if r.TryDecodeAsNil() { + x.Deadline = 0 + } else { + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.Deadline)); yyxt5 != nil { + z.DecExtension(x.Deadline, yyxt5) + } else { + x.Deadline = (time.Duration)(r.DecodeInt64()) + } + } + case "IgnoreSystemJobs": + if r.TryDecodeAsNil() { + x.IgnoreSystemJobs = false + } else { + x.IgnoreSystemJobs = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DrainSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Deadline = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.Deadline)); yyxt9 != nil { + z.DecExtension(x.Deadline, yyxt9) + } else { + x.Deadline = (time.Duration)(r.DecodeInt64()) + } + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.IgnoreSystemJobs = false + } else { + x.IgnoreSystemJobs = (bool)(r.DecodeBool()) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *DrainStrategy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt4 := z.Extension(z.I2Rtid(x.Deadline)); yyxt4 != nil { + z.EncExtension(x.Deadline, yyxt4) + } else { + r.EncodeInt(int64(x.Deadline)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Deadline\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Deadline`) + } + r.WriteMapElemValue() + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.Deadline)); yyxt5 != nil { + z.EncExtension(x.Deadline, yyxt5) + } else { + r.EncodeInt(int64(x.Deadline)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.IgnoreSystemJobs)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IgnoreSystemJobs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IgnoreSystemJobs`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.IgnoreSystemJobs)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.ForceDeadline) + } else if yyxt10 := z.Extension(z.I2Rtid(x.ForceDeadline)); yyxt10 != nil { + z.EncExtension(x.ForceDeadline, yyxt10) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.ForceDeadline) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.ForceDeadline) + } else { + z.EncFallback(x.ForceDeadline) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ForceDeadline\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ForceDeadline`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.ForceDeadline) + } else if yyxt11 := z.Extension(z.I2Rtid(x.ForceDeadline)); yyxt11 != nil { + z.EncExtension(x.ForceDeadline, yyxt11) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.ForceDeadline) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.ForceDeadline) + } else { + z.EncFallback(x.ForceDeadline) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.StartedAt) + } else if yyxt13 := z.Extension(z.I2Rtid(x.StartedAt)); yyxt13 != nil { + z.EncExtension(x.StartedAt, yyxt13) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.StartedAt) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.StartedAt) + } else { + z.EncFallback(x.StartedAt) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"StartedAt\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `StartedAt`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.StartedAt) + } else if yyxt14 := z.Extension(z.I2Rtid(x.StartedAt)); yyxt14 != nil { + z.EncExtension(x.StartedAt, yyxt14) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.StartedAt) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.StartedAt) + } else { + z.EncFallback(x.StartedAt) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DrainStrategy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DrainStrategy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Deadline": + if r.TryDecodeAsNil() { + x.DrainSpec.Deadline = 0 + } else { + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.Deadline)); yyxt5 != nil { + z.DecExtension(x.Deadline, yyxt5) + } else { + x.Deadline = (time.Duration)(r.DecodeInt64()) + } + } + case "IgnoreSystemJobs": + if r.TryDecodeAsNil() { + x.DrainSpec.IgnoreSystemJobs = false + } else { + x.IgnoreSystemJobs = (bool)(r.DecodeBool()) + } + case "ForceDeadline": + if r.TryDecodeAsNil() { + x.ForceDeadline = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.ForceDeadline = r.DecodeTime() + } else if yyxt8 := z.Extension(z.I2Rtid(x.ForceDeadline)); yyxt8 != nil { + z.DecExtension(x.ForceDeadline, yyxt8) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.ForceDeadline) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.ForceDeadline) + } else { + z.DecFallback(&x.ForceDeadline, false) + } + } + case "StartedAt": + if r.TryDecodeAsNil() { + x.StartedAt = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.StartedAt = r.DecodeTime() + } else if yyxt10 := z.Extension(z.I2Rtid(x.StartedAt)); yyxt10 != nil { + z.DecExtension(x.StartedAt, yyxt10) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.StartedAt) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.StartedAt) + } else { + z.DecFallback(&x.StartedAt, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DrainStrategy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DrainSpec.Deadline = 0 + } else { + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.Deadline)); yyxt13 != nil { + z.DecExtension(x.Deadline, yyxt13) + } else { + x.Deadline = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DrainSpec.IgnoreSystemJobs = false + } else { + x.IgnoreSystemJobs = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ForceDeadline = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.ForceDeadline = r.DecodeTime() + } else if yyxt16 := z.Extension(z.I2Rtid(x.ForceDeadline)); yyxt16 != nil { + z.DecExtension(x.ForceDeadline, yyxt16) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.ForceDeadline) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.ForceDeadline) + } else { + z.DecFallback(&x.ForceDeadline, false) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.StartedAt = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.StartedAt = r.DecodeTime() + } else if yyxt18 := z.Extension(z.I2Rtid(x.StartedAt)); yyxt18 != nil { + z.DecExtension(x.StartedAt, yyxt18) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.StartedAt) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.StartedAt) + } else { + z.DecFallback(&x.StartedAt, false) + } + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x DrainStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) + } + } +} + +func (x *DrainStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (DrainStatus)(r.DecodeString()) + } +} + +func (x *DrainMetadata) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.StartedAt) + } else if yyxt4 := z.Extension(z.I2Rtid(x.StartedAt)); yyxt4 != nil { + z.EncExtension(x.StartedAt, yyxt4) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.StartedAt) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.StartedAt) + } else { + z.EncFallback(x.StartedAt) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"StartedAt\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `StartedAt`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.StartedAt) + } else if yyxt5 := z.Extension(z.I2Rtid(x.StartedAt)); yyxt5 != nil { + z.EncExtension(x.StartedAt, yyxt5) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.StartedAt) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.StartedAt) + } else { + z.EncFallback(x.StartedAt) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.UpdatedAt) + } else if yyxt7 := z.Extension(z.I2Rtid(x.UpdatedAt)); yyxt7 != nil { + z.EncExtension(x.UpdatedAt, yyxt7) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.UpdatedAt) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.UpdatedAt) + } else { + z.EncFallback(x.UpdatedAt) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"UpdatedAt\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `UpdatedAt`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.UpdatedAt) + } else if yyxt8 := z.Extension(z.I2Rtid(x.UpdatedAt)); yyxt8 != nil { + z.EncExtension(x.UpdatedAt, yyxt8) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.UpdatedAt) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.UpdatedAt) + } else { + z.EncFallback(x.UpdatedAt) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Status.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Status\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) + } + r.WriteMapElemValue() + x.Status.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AccessorID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AccessorID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Meta), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Meta\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) + } + r.WriteMapElemValue() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Meta), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DrainMetadata) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DrainMetadata) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "StartedAt": + if r.TryDecodeAsNil() { + x.StartedAt = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.StartedAt = r.DecodeTime() + } else if yyxt5 := z.Extension(z.I2Rtid(x.StartedAt)); yyxt5 != nil { + z.DecExtension(x.StartedAt, yyxt5) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.StartedAt) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.StartedAt) + } else { + z.DecFallback(&x.StartedAt, false) + } + } + case "UpdatedAt": + if r.TryDecodeAsNil() { + x.UpdatedAt = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.UpdatedAt = r.DecodeTime() + } else if yyxt7 := z.Extension(z.I2Rtid(x.UpdatedAt)); yyxt7 != nil { + z.DecExtension(x.UpdatedAt, yyxt7) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.UpdatedAt) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.UpdatedAt) + } else { + z.DecFallback(&x.UpdatedAt, false) + } + } + case "Status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status.CodecDecodeSelf(d) + } + case "AccessorID": + if r.TryDecodeAsNil() { + x.AccessorID = "" + } else { + x.AccessorID = (string)(r.DecodeString()) + } + case "Meta": + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Meta), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DrainMetadata) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.StartedAt = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.StartedAt = r.DecodeTime() + } else if yyxt14 := z.Extension(z.I2Rtid(x.StartedAt)); yyxt14 != nil { + z.DecExtension(x.StartedAt, yyxt14) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.StartedAt) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.StartedAt) + } else { + z.DecFallback(&x.StartedAt, false) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.UpdatedAt = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.UpdatedAt = r.DecodeTime() + } else if yyxt16 := z.Extension(z.I2Rtid(x.UpdatedAt)); yyxt16 != nil { + z.DecExtension(x.UpdatedAt, yyxt16) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.UpdatedAt) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.UpdatedAt) + } else { + z.DecFallback(&x.UpdatedAt, false) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AccessorID = "" + } else { + x.AccessorID = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Meta), d) + } + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *Node) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(35) + } else { + r.WriteMapStart(35) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SecretID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SecretID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Datacenter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Datacenter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.CgroupParent))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.CgroupParent)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CgroupParent\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CgroupParent`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.CgroupParent))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.CgroupParent)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.HTTPAddr))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HTTPAddr)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HTTPAddr\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HTTPAddr`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.HTTPAddr))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HTTPAddr)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.TLSEnabled)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TLSEnabled\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TLSEnabled`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.TLSEnabled)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Attributes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Attributes), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Attributes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Attributes`) + } + r.WriteMapElemValue() + if x.Attributes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Attributes), e) + } + } + } + var yyn27 bool + if x.NodeResources == nil { + yyn27 = true + goto LABEL27 + } + LABEL27: + if yyr2 || yy2arr2 { + if yyn27 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.NodeResources == nil { + r.EncodeNil() + } else { + x.NodeResources.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeResources\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeResources`) + } + r.WriteMapElemValue() + if yyn27 { + r.EncodeNil() + } else { + if x.NodeResources == nil { + r.EncodeNil() + } else { + x.NodeResources.CodecEncodeSelf(e) + } + } + } + var yyn30 bool + if x.ReservedResources == nil { + yyn30 = true + goto LABEL30 + } + LABEL30: + if yyr2 || yy2arr2 { + if yyn30 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ReservedResources == nil { + r.EncodeNil() + } else { + x.ReservedResources.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ReservedResources\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ReservedResources`) + } + r.WriteMapElemValue() + if yyn30 { + r.EncodeNil() + } else { + if x.ReservedResources == nil { + r.EncodeNil() + } else { + x.ReservedResources.CodecEncodeSelf(e) + } + } + } + var yyn33 bool + if x.Resources == nil { + yyn33 = true + goto LABEL33 + } + LABEL33: + if yyr2 || yy2arr2 { + if yyn33 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Resources == nil { + r.EncodeNil() + } else { + x.Resources.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Resources\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Resources`) + } + r.WriteMapElemValue() + if yyn33 { + r.EncodeNil() + } else { + if x.Resources == nil { + r.EncodeNil() + } else { + x.Resources.CodecEncodeSelf(e) + } + } + } + var yyn36 bool + if x.Reserved == nil { + yyn36 = true + goto LABEL36 + } + LABEL36: + if yyr2 || yy2arr2 { + if yyn36 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Reserved == nil { + r.EncodeNil() + } else { + x.Reserved.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reserved\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reserved`) + } + r.WriteMapElemValue() + if yyn36 { + r.EncodeNil() + } else { + if x.Reserved == nil { + r.EncodeNil() + } else { + x.Reserved.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Links == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Links), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Links\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Links`) + } + r.WriteMapElemValue() + if x.Links == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Links), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Meta), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Meta\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) + } + r.WriteMapElemValue() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Meta), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeClass))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeClass)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeClass\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeClass`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeClass))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeClass)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodePool))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodePool)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodePool\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodePool`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodePool))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodePool)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ComputedClass))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ComputedClass)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ComputedClass\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ComputedClass`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ComputedClass))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ComputedClass)) + } + } + } + var yyn54 bool + if x.DrainStrategy == nil { + yyn54 = true + goto LABEL54 + } + LABEL54: + if yyr2 || yy2arr2 { + if yyn54 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.DrainStrategy == nil { + r.EncodeNil() + } else { + x.DrainStrategy.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DrainStrategy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DrainStrategy`) + } + r.WriteMapElemValue() + if yyn54 { + r.EncodeNil() + } else { + if x.DrainStrategy == nil { + r.EncodeNil() + } else { + x.DrainStrategy.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SchedulingEligibility))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SchedulingEligibility)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SchedulingEligibility\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SchedulingEligibility`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SchedulingEligibility))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SchedulingEligibility)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Status\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"StatusDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `StatusDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.StatusUpdatedAt)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"StatusUpdatedAt\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `StatusUpdatedAt`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.StatusUpdatedAt)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Events == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeEvent(([]*NodeEvent)(x.Events), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Events\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Events`) + } + r.WriteMapElemValue() + if x.Events == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeEvent(([]*NodeEvent)(x.Events), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Drivers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoDriverInfo((map[string]*DriverInfo)(x.Drivers), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Drivers\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Drivers`) + } + r.WriteMapElemValue() + if x.Drivers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoDriverInfo((map[string]*DriverInfo)(x.Drivers), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.CSIControllerPlugins == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoCSIInfo((map[string]*CSIInfo)(x.CSIControllerPlugins), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CSIControllerPlugins\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CSIControllerPlugins`) + } + r.WriteMapElemValue() + if x.CSIControllerPlugins == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoCSIInfo((map[string]*CSIInfo)(x.CSIControllerPlugins), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.CSINodePlugins == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoCSIInfo((map[string]*CSIInfo)(x.CSINodePlugins), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CSINodePlugins\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CSINodePlugins`) + } + r.WriteMapElemValue() + if x.CSINodePlugins == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoCSIInfo((map[string]*CSIInfo)(x.CSINodePlugins), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.HostVolumes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoClientHostVolumeConfig((map[string]*ClientHostVolumeConfig)(x.HostVolumes), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HostVolumes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HostVolumes`) + } + r.WriteMapElemValue() + if x.HostVolumes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoClientHostVolumeConfig((map[string]*ClientHostVolumeConfig)(x.HostVolumes), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.GCVolumesOnNodeGC)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"GCVolumesOnNodeGC\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `GCVolumesOnNodeGC`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.GCVolumesOnNodeGC)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.HostNetworks == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoClientHostNetworkConfig((map[string]*ClientHostNetworkConfig)(x.HostNetworks), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HostNetworks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HostNetworks`) + } + r.WriteMapElemValue() + if x.HostNetworks == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoClientHostNetworkConfig((map[string]*ClientHostNetworkConfig)(x.HostNetworks), e) + } + } + } + var yyn90 bool + if x.LastDrain == nil { + yyn90 = true + goto LABEL90 + } + LABEL90: + if yyr2 || yy2arr2 { + if yyn90 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.LastDrain == nil { + r.EncodeNil() + } else { + x.LastDrain.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastDrain\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastDrain`) + } + r.WriteMapElemValue() + if yyn90 { + r.EncodeNil() + } else { + if x.LastDrain == nil { + r.EncodeNil() + } else { + x.LastDrain.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.NodeMaxAllocs)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeMaxAllocs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeMaxAllocs`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.NodeMaxAllocs)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.LastMissedHeartbeatIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastMissedHeartbeatIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastMissedHeartbeatIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.LastMissedHeartbeatIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.LastAllocUpdateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastAllocUpdateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastAllocUpdateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.LastAllocUpdateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Node) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "SecretID": + if r.TryDecodeAsNil() { + x.SecretID = "" + } else { + x.SecretID = (string)(r.DecodeString()) + } + case "Datacenter": + if r.TryDecodeAsNil() { + x.Datacenter = "" + } else { + x.Datacenter = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "CgroupParent": + if r.TryDecodeAsNil() { + x.CgroupParent = "" + } else { + x.CgroupParent = (string)(r.DecodeString()) + } + case "HTTPAddr": + if r.TryDecodeAsNil() { + x.HTTPAddr = "" + } else { + x.HTTPAddr = (string)(r.DecodeString()) + } + case "TLSEnabled": + if r.TryDecodeAsNil() { + x.TLSEnabled = false + } else { + x.TLSEnabled = (bool)(r.DecodeBool()) + } + case "Attributes": + if r.TryDecodeAsNil() { + x.Attributes = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Attributes), d) + } + } + case "NodeResources": + if r.TryDecodeAsNil() { + if true && x.NodeResources != nil { + x.NodeResources = nil + } + } else { + if x.NodeResources == nil { + x.NodeResources = new(NodeResources) + } + + x.NodeResources.CodecDecodeSelf(d) + } + case "ReservedResources": + if r.TryDecodeAsNil() { + if true && x.ReservedResources != nil { + x.ReservedResources = nil + } + } else { + if x.ReservedResources == nil { + x.ReservedResources = new(NodeReservedResources) + } + + x.ReservedResources.CodecDecodeSelf(d) + } + case "Resources": + if r.TryDecodeAsNil() { + if true && x.Resources != nil { + x.Resources = nil + } + } else { + if x.Resources == nil { + x.Resources = new(Resources) + } + + x.Resources.CodecDecodeSelf(d) + } + case "Reserved": + if r.TryDecodeAsNil() { + if true && x.Reserved != nil { + x.Reserved = nil + } + } else { + if x.Reserved == nil { + x.Reserved = new(Resources) + } + + x.Reserved.CodecDecodeSelf(d) + } + case "Links": + if r.TryDecodeAsNil() { + x.Links = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Links), d) + } + } + case "Meta": + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Meta), d) + } + } + case "NodeClass": + if r.TryDecodeAsNil() { + x.NodeClass = "" + } else { + x.NodeClass = (string)(r.DecodeString()) + } + case "NodePool": + if r.TryDecodeAsNil() { + x.NodePool = "" + } else { + x.NodePool = (string)(r.DecodeString()) + } + case "ComputedClass": + if r.TryDecodeAsNil() { + x.ComputedClass = "" + } else { + x.ComputedClass = (string)(r.DecodeString()) + } + case "DrainStrategy": + if r.TryDecodeAsNil() { + if true && x.DrainStrategy != nil { + x.DrainStrategy = nil + } + } else { + if x.DrainStrategy == nil { + x.DrainStrategy = new(DrainStrategy) + } + + x.DrainStrategy.CodecDecodeSelf(d) + } + case "SchedulingEligibility": + if r.TryDecodeAsNil() { + x.SchedulingEligibility = "" + } else { + x.SchedulingEligibility = (string)(r.DecodeString()) + } + case "Status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + case "StatusDescription": + if r.TryDecodeAsNil() { + x.StatusDescription = "" + } else { + x.StatusDescription = (string)(r.DecodeString()) + } + case "StatusUpdatedAt": + if r.TryDecodeAsNil() { + x.StatusUpdatedAt = 0 + } else { + x.StatusUpdatedAt = (int64)(r.DecodeInt64()) + } + case "Events": + if r.TryDecodeAsNil() { + x.Events = nil + } else { + if false { + } else { + h.decSlicePtrtoNodeEvent((*[]*NodeEvent)(&x.Events), d) + } + } + case "Drivers": + if r.TryDecodeAsNil() { + x.Drivers = nil + } else { + if false { + } else { + h.decMapstringPtrtoDriverInfo((*map[string]*DriverInfo)(&x.Drivers), d) + } + } + case "CSIControllerPlugins": + if r.TryDecodeAsNil() { + x.CSIControllerPlugins = nil + } else { + if false { + } else { + h.decMapstringPtrtoCSIInfo((*map[string]*CSIInfo)(&x.CSIControllerPlugins), d) + } + } + case "CSINodePlugins": + if r.TryDecodeAsNil() { + x.CSINodePlugins = nil + } else { + if false { + } else { + h.decMapstringPtrtoCSIInfo((*map[string]*CSIInfo)(&x.CSINodePlugins), d) + } + } + case "HostVolumes": + if r.TryDecodeAsNil() { + x.HostVolumes = nil + } else { + if false { + } else { + h.decMapstringPtrtoClientHostVolumeConfig((*map[string]*ClientHostVolumeConfig)(&x.HostVolumes), d) + } + } + case "GCVolumesOnNodeGC": + if r.TryDecodeAsNil() { + x.GCVolumesOnNodeGC = false + } else { + x.GCVolumesOnNodeGC = (bool)(r.DecodeBool()) + } + case "HostNetworks": + if r.TryDecodeAsNil() { + x.HostNetworks = nil + } else { + if false { + } else { + h.decMapstringPtrtoClientHostNetworkConfig((*map[string]*ClientHostNetworkConfig)(&x.HostNetworks), d) + } + } + case "LastDrain": + if r.TryDecodeAsNil() { + if true && x.LastDrain != nil { + x.LastDrain = nil + } + } else { + if x.LastDrain == nil { + x.LastDrain = new(DrainMetadata) + } + + x.LastDrain.CodecDecodeSelf(d) + } + case "NodeMaxAllocs": + if r.TryDecodeAsNil() { + x.NodeMaxAllocs = 0 + } else { + x.NodeMaxAllocs = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "LastMissedHeartbeatIndex": + if r.TryDecodeAsNil() { + x.LastMissedHeartbeatIndex = 0 + } else { + x.LastMissedHeartbeatIndex = (uint64)(r.DecodeUint64()) + } + case "LastAllocUpdateIndex": + if r.TryDecodeAsNil() { + x.LastAllocUpdateIndex = 0 + } else { + x.LastAllocUpdateIndex = (uint64)(r.DecodeUint64()) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj48 int + var yyb48 bool + var yyhl48 bool = l >= 0 + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SecretID = "" + } else { + x.SecretID = (string)(r.DecodeString()) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Datacenter = "" + } else { + x.Datacenter = (string)(r.DecodeString()) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CgroupParent = "" + } else { + x.CgroupParent = (string)(r.DecodeString()) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HTTPAddr = "" + } else { + x.HTTPAddr = (string)(r.DecodeString()) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TLSEnabled = false + } else { + x.TLSEnabled = (bool)(r.DecodeBool()) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Attributes = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Attributes), d) + } + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.NodeResources != nil { + x.NodeResources = nil + } + } else { + if x.NodeResources == nil { + x.NodeResources = new(NodeResources) + } + + x.NodeResources.CodecDecodeSelf(d) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ReservedResources != nil { + x.ReservedResources = nil + } + } else { + if x.ReservedResources == nil { + x.ReservedResources = new(NodeReservedResources) + } + + x.ReservedResources.CodecDecodeSelf(d) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Resources != nil { + x.Resources = nil + } + } else { + if x.Resources == nil { + x.Resources = new(Resources) + } + + x.Resources.CodecDecodeSelf(d) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Reserved != nil { + x.Reserved = nil + } + } else { + if x.Reserved == nil { + x.Reserved = new(Resources) + } + + x.Reserved.CodecDecodeSelf(d) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Links = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Links), d) + } + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Meta), d) + } + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeClass = "" + } else { + x.NodeClass = (string)(r.DecodeString()) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodePool = "" + } else { + x.NodePool = (string)(r.DecodeString()) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ComputedClass = "" + } else { + x.ComputedClass = (string)(r.DecodeString()) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.DrainStrategy != nil { + x.DrainStrategy = nil + } + } else { + if x.DrainStrategy == nil { + x.DrainStrategy = new(DrainStrategy) + } + + x.DrainStrategy.CodecDecodeSelf(d) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SchedulingEligibility = "" + } else { + x.SchedulingEligibility = (string)(r.DecodeString()) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.StatusDescription = "" + } else { + x.StatusDescription = (string)(r.DecodeString()) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.StatusUpdatedAt = 0 + } else { + x.StatusUpdatedAt = (int64)(r.DecodeInt64()) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Events = nil + } else { + if false { + } else { + h.decSlicePtrtoNodeEvent((*[]*NodeEvent)(&x.Events), d) + } + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Drivers = nil + } else { + if false { + } else { + h.decMapstringPtrtoDriverInfo((*map[string]*DriverInfo)(&x.Drivers), d) + } + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CSIControllerPlugins = nil + } else { + if false { + } else { + h.decMapstringPtrtoCSIInfo((*map[string]*CSIInfo)(&x.CSIControllerPlugins), d) + } + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CSINodePlugins = nil + } else { + if false { + } else { + h.decMapstringPtrtoCSIInfo((*map[string]*CSIInfo)(&x.CSINodePlugins), d) + } + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HostVolumes = nil + } else { + if false { + } else { + h.decMapstringPtrtoClientHostVolumeConfig((*map[string]*ClientHostVolumeConfig)(&x.HostVolumes), d) + } + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.GCVolumesOnNodeGC = false + } else { + x.GCVolumesOnNodeGC = (bool)(r.DecodeBool()) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HostNetworks = nil + } else { + if false { + } else { + h.decMapstringPtrtoClientHostNetworkConfig((*map[string]*ClientHostNetworkConfig)(&x.HostNetworks), d) + } + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.LastDrain != nil { + x.LastDrain = nil + } + } else { + if x.LastDrain == nil { + x.LastDrain = new(DrainMetadata) + } + + x.LastDrain.CodecDecodeSelf(d) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeMaxAllocs = 0 + } else { + x.NodeMaxAllocs = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LastMissedHeartbeatIndex = 0 + } else { + x.LastMissedHeartbeatIndex = (uint64)(r.DecodeUint64()) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LastAllocUpdateIndex = 0 + } else { + x.LastAllocUpdateIndex = (uint64)(r.DecodeUint64()) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj48-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeListStub) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(19) + } else { + r.WriteMapStart(19) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Address\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Address`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Attributes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Attributes), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Attributes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Attributes`) + } + r.WriteMapElemValue() + if x.Attributes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Attributes), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Datacenter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Datacenter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodePool))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodePool)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodePool\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodePool`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodePool))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodePool)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeClass))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeClass)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeClass\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeClass`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeClass))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeClass)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Version))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Version)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Version\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Version`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Version))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Version)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Drain)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Drain\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Drain`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Drain)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SchedulingEligibility))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SchedulingEligibility)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SchedulingEligibility\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SchedulingEligibility`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SchedulingEligibility))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SchedulingEligibility)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Status\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"StatusDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `StatusDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Drivers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoDriverInfo((map[string]*DriverInfo)(x.Drivers), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Drivers\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Drivers`) + } + r.WriteMapElemValue() + if x.Drivers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoDriverInfo((map[string]*DriverInfo)(x.Drivers), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.HostVolumes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoClientHostVolumeConfig((map[string]*ClientHostVolumeConfig)(x.HostVolumes), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HostVolumes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HostVolumes`) + } + r.WriteMapElemValue() + if x.HostVolumes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoClientHostVolumeConfig((map[string]*ClientHostVolumeConfig)(x.HostVolumes), e) + } + } + } + var yyn45 bool + if x.NodeResources == nil { + yyn45 = true + goto LABEL45 + } + LABEL45: + if yyr2 || yy2arr2 { + if yyn45 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.NodeResources == nil { + r.EncodeNil() + } else { + x.NodeResources.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeResources\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeResources`) + } + r.WriteMapElemValue() + if yyn45 { + r.EncodeNil() + } else { + if x.NodeResources == nil { + r.EncodeNil() + } else { + x.NodeResources.CodecEncodeSelf(e) + } + } + } + var yyn48 bool + if x.ReservedResources == nil { + yyn48 = true + goto LABEL48 + } + LABEL48: + if yyr2 || yy2arr2 { + if yyn48 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ReservedResources == nil { + r.EncodeNil() + } else { + x.ReservedResources.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ReservedResources\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ReservedResources`) + } + r.WriteMapElemValue() + if yyn48 { + r.EncodeNil() + } else { + if x.ReservedResources == nil { + r.EncodeNil() + } else { + x.ReservedResources.CodecEncodeSelf(e) + } + } + } + var yyn51 bool + if x.LastDrain == nil { + yyn51 = true + goto LABEL51 + } + LABEL51: + if yyr2 || yy2arr2 { + if yyn51 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.LastDrain == nil { + r.EncodeNil() + } else { + x.LastDrain.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastDrain\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastDrain`) + } + r.WriteMapElemValue() + if yyn51 { + r.EncodeNil() + } else { + if x.LastDrain == nil { + r.EncodeNil() + } else { + x.LastDrain.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeListStub) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Address": + if r.TryDecodeAsNil() { + x.Address = "" + } else { + x.Address = (string)(r.DecodeString()) + } + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Attributes": + if r.TryDecodeAsNil() { + x.Attributes = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Attributes), d) + } + } + case "Datacenter": + if r.TryDecodeAsNil() { + x.Datacenter = "" + } else { + x.Datacenter = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "NodePool": + if r.TryDecodeAsNil() { + x.NodePool = "" + } else { + x.NodePool = (string)(r.DecodeString()) + } + case "NodeClass": + if r.TryDecodeAsNil() { + x.NodeClass = "" + } else { + x.NodeClass = (string)(r.DecodeString()) + } + case "Version": + if r.TryDecodeAsNil() { + x.Version = "" + } else { + x.Version = (string)(r.DecodeString()) + } + case "Drain": + if r.TryDecodeAsNil() { + x.Drain = false + } else { + x.Drain = (bool)(r.DecodeBool()) + } + case "SchedulingEligibility": + if r.TryDecodeAsNil() { + x.SchedulingEligibility = "" + } else { + x.SchedulingEligibility = (string)(r.DecodeString()) + } + case "Status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + case "StatusDescription": + if r.TryDecodeAsNil() { + x.StatusDescription = "" + } else { + x.StatusDescription = (string)(r.DecodeString()) + } + case "Drivers": + if r.TryDecodeAsNil() { + x.Drivers = nil + } else { + if false { + } else { + h.decMapstringPtrtoDriverInfo((*map[string]*DriverInfo)(&x.Drivers), d) + } + } + case "HostVolumes": + if r.TryDecodeAsNil() { + x.HostVolumes = nil + } else { + if false { + } else { + h.decMapstringPtrtoClientHostVolumeConfig((*map[string]*ClientHostVolumeConfig)(&x.HostVolumes), d) + } + } + case "NodeResources": + if r.TryDecodeAsNil() { + if true && x.NodeResources != nil { + x.NodeResources = nil + } + } else { + if x.NodeResources == nil { + x.NodeResources = new(NodeResources) + } + + x.NodeResources.CodecDecodeSelf(d) + } + case "ReservedResources": + if r.TryDecodeAsNil() { + if true && x.ReservedResources != nil { + x.ReservedResources = nil + } + } else { + if x.ReservedResources == nil { + x.ReservedResources = new(NodeReservedResources) + } + + x.ReservedResources.CodecDecodeSelf(d) + } + case "LastDrain": + if r.TryDecodeAsNil() { + if true && x.LastDrain != nil { + x.LastDrain = nil + } + } else { + if x.LastDrain == nil { + x.LastDrain = new(DrainMetadata) + } + + x.LastDrain.CodecDecodeSelf(d) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj26 int + var yyb26 bool + var yyhl26 bool = l >= 0 + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Address = "" + } else { + x.Address = (string)(r.DecodeString()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Attributes = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Attributes), d) + } + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Datacenter = "" + } else { + x.Datacenter = (string)(r.DecodeString()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodePool = "" + } else { + x.NodePool = (string)(r.DecodeString()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeClass = "" + } else { + x.NodeClass = (string)(r.DecodeString()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Version = "" + } else { + x.Version = (string)(r.DecodeString()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Drain = false + } else { + x.Drain = (bool)(r.DecodeBool()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SchedulingEligibility = "" + } else { + x.SchedulingEligibility = (string)(r.DecodeString()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.StatusDescription = "" + } else { + x.StatusDescription = (string)(r.DecodeString()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Drivers = nil + } else { + if false { + } else { + h.decMapstringPtrtoDriverInfo((*map[string]*DriverInfo)(&x.Drivers), d) + } + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HostVolumes = nil + } else { + if false { + } else { + h.decMapstringPtrtoClientHostVolumeConfig((*map[string]*ClientHostVolumeConfig)(&x.HostVolumes), d) + } + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.NodeResources != nil { + x.NodeResources = nil + } + } else { + if x.NodeResources == nil { + x.NodeResources = new(NodeResources) + } + + x.NodeResources.CodecDecodeSelf(d) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ReservedResources != nil { + x.ReservedResources = nil + } + } else { + if x.ReservedResources == nil { + x.ReservedResources = new(NodeReservedResources) + } + + x.ReservedResources.CodecDecodeSelf(d) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.LastDrain != nil { + x.LastDrain = nil + } + } else { + if x.LastDrain == nil { + x.LastDrain = new(DrainMetadata) + } + + x.LastDrain.CodecDecodeSelf(d) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj26-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeStubFields) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Resources)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Resources\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Resources`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Resources)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.OS)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"OS\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `OS`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.OS)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeStubFields) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeStubFields) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Resources": + if r.TryDecodeAsNil() { + x.Resources = false + } else { + x.Resources = (bool)(r.DecodeBool()) + } + case "OS": + if r.TryDecodeAsNil() { + x.OS = false + } else { + x.OS = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeStubFields) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Resources = false + } else { + x.Resources = (bool)(r.DecodeBool()) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.OS = false + } else { + x.OS = (bool)(r.DecodeBool()) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *Resources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(10) + } else { + r.WriteMapStart(10) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CPU)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CPU\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CPU`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CPU)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Cores)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Cores\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Cores`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Cores)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.MemoryMB)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MemoryMB\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MemoryMB`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.MemoryMB)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.MemoryMaxMB)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MemoryMaxMB\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MemoryMaxMB`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.MemoryMaxMB)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.DiskMB)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DiskMB\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DiskMB`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.DiskMB)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.IOPS)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IOPS\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IOPS`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.IOPS)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Networks == nil { + r.EncodeNil() + } else { + x.Networks.CodecEncodeSelf(e) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Networks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Networks`) + } + r.WriteMapElemValue() + if x.Networks == nil { + r.EncodeNil() + } else { + x.Networks.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Devices == nil { + r.EncodeNil() + } else { + x.Devices.CodecEncodeSelf(e) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Devices\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Devices`) + } + r.WriteMapElemValue() + if x.Devices == nil { + r.EncodeNil() + } else { + x.Devices.CodecEncodeSelf(e) + } + } + var yyn27 bool + if x.NUMA == nil { + yyn27 = true + goto LABEL27 + } + LABEL27: + if yyr2 || yy2arr2 { + if yyn27 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.NUMA == nil { + r.EncodeNil() + } else { + x.NUMA.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NUMA\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NUMA`) + } + r.WriteMapElemValue() + if yyn27 { + r.EncodeNil() + } else { + if x.NUMA == nil { + r.EncodeNil() + } else { + x.NUMA.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.SecretsMB)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SecretsMB\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SecretsMB`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.SecretsMB)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Resources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Resources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "CPU": + if r.TryDecodeAsNil() { + x.CPU = 0 + } else { + x.CPU = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Cores": + if r.TryDecodeAsNil() { + x.Cores = 0 + } else { + x.Cores = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "MemoryMB": + if r.TryDecodeAsNil() { + x.MemoryMB = 0 + } else { + x.MemoryMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "MemoryMaxMB": + if r.TryDecodeAsNil() { + x.MemoryMaxMB = 0 + } else { + x.MemoryMaxMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "DiskMB": + if r.TryDecodeAsNil() { + x.DiskMB = 0 + } else { + x.DiskMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "IOPS": + if r.TryDecodeAsNil() { + x.IOPS = 0 + } else { + x.IOPS = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Networks": + if r.TryDecodeAsNil() { + x.Networks = nil + } else { + x.Networks.CodecDecodeSelf(d) + } + case "Devices": + if r.TryDecodeAsNil() { + x.Devices = nil + } else { + x.Devices.CodecDecodeSelf(d) + } + case "NUMA": + if r.TryDecodeAsNil() { + if true && x.NUMA != nil { + x.NUMA = nil + } + } else { + if x.NUMA == nil { + x.NUMA = new(NUMA) + } + + x.NUMA.CodecDecodeSelf(d) + } + case "SecretsMB": + if r.TryDecodeAsNil() { + x.SecretsMB = 0 + } else { + x.SecretsMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Resources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj14 int + var yyb14 bool + var yyhl14 bool = l >= 0 + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CPU = 0 + } else { + x.CPU = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Cores = 0 + } else { + x.Cores = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MemoryMB = 0 + } else { + x.MemoryMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MemoryMaxMB = 0 + } else { + x.MemoryMaxMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DiskMB = 0 + } else { + x.DiskMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.IOPS = 0 + } else { + x.IOPS = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Networks = nil + } else { + x.Networks.CodecDecodeSelf(d) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Devices = nil + } else { + x.Devices.CodecDecodeSelf(d) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.NUMA != nil { + x.NUMA = nil + } + } else { + if x.NUMA == nil { + x.NUMA = new(NUMA) + } + + x.NUMA.CodecDecodeSelf(d) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SecretsMB = 0 + } else { + x.SecretsMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + for { + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj14-1, "") + } + r.ReadArrayEnd() +} + +func (x ResourceDevices) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encResourceDevices((ResourceDevices)(x), e) + } + } +} + +func (x *ResourceDevices) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + h.decResourceDevices((*ResourceDevices)(x), d) + } +} + +func (x *NodeNetworkResource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Mode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Mode)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Mode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Mode`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Mode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Mode)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Device))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Device)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Device\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Device`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Device))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Device)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.MacAddress))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.MacAddress)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MacAddress\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MacAddress`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.MacAddress))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.MacAddress)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Speed)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Speed\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Speed`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Speed)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Addresses == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceNodeNetworkAddress(([]NodeNetworkAddress)(x.Addresses), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Addresses\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Addresses`) + } + r.WriteMapElemValue() + if x.Addresses == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceNodeNetworkAddress(([]NodeNetworkAddress)(x.Addresses), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeNetworkResource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeNetworkResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Mode": + if r.TryDecodeAsNil() { + x.Mode = "" + } else { + x.Mode = (string)(r.DecodeString()) + } + case "Device": + if r.TryDecodeAsNil() { + x.Device = "" + } else { + x.Device = (string)(r.DecodeString()) + } + case "MacAddress": + if r.TryDecodeAsNil() { + x.MacAddress = "" + } else { + x.MacAddress = (string)(r.DecodeString()) + } + case "Speed": + if r.TryDecodeAsNil() { + x.Speed = 0 + } else { + x.Speed = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Addresses": + if r.TryDecodeAsNil() { + x.Addresses = nil + } else { + if false { + } else { + h.decSliceNodeNetworkAddress((*[]NodeNetworkAddress)(&x.Addresses), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeNetworkResource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Mode = "" + } else { + x.Mode = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Device = "" + } else { + x.Device = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MacAddress = "" + } else { + x.MacAddress = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Speed = 0 + } else { + x.Speed = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Addresses = nil + } else { + if false { + } else { + h.decSliceNodeNetworkAddress((*[]NodeNetworkAddress)(&x.Addresses), d) + } + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x NodeNetworkAF) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) + } + } +} + +func (x *NodeNetworkAF) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (NodeNetworkAF)(r.DecodeString()) + } +} + +func (x *NodeNetworkAddress) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Family.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Family\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Family`) + } + r.WriteMapElemValue() + x.Family.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Alias))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Alias)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Alias\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Alias`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Alias))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Alias)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Address\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Address`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ReservedPorts))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ReservedPorts)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ReservedPorts\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ReservedPorts`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ReservedPorts))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ReservedPorts)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Gateway))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Gateway)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Gateway\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Gateway`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Gateway))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Gateway)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeNetworkAddress) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeNetworkAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Family": + if r.TryDecodeAsNil() { + x.Family = "" + } else { + x.Family.CodecDecodeSelf(d) + } + case "Alias": + if r.TryDecodeAsNil() { + x.Alias = "" + } else { + x.Alias = (string)(r.DecodeString()) + } + case "Address": + if r.TryDecodeAsNil() { + x.Address = "" + } else { + x.Address = (string)(r.DecodeString()) + } + case "ReservedPorts": + if r.TryDecodeAsNil() { + x.ReservedPorts = "" + } else { + x.ReservedPorts = (string)(r.DecodeString()) + } + case "Gateway": + if r.TryDecodeAsNil() { + x.Gateway = "" + } else { + x.Gateway = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeNetworkAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Family = "" + } else { + x.Family.CodecDecodeSelf(d) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Alias = "" + } else { + x.Alias = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Address = "" + } else { + x.Address = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ReservedPorts = "" + } else { + x.ReservedPorts = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Gateway = "" + } else { + x.Gateway = (string)(r.DecodeString()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocatedPortMapping) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyq2 = [5]bool{ // should field at this index be written? + x.Label != "", // Label + x.Value != 0, // Value + x.To != 0, // To + x.HostIP != "", // HostIP + x.IgnoreCollision, // IgnoreCollision + } + _ = yyq2 + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + var yynn2 int + for _, b := range yyq2 { + if b { + yynn2++ + } + } + r.WriteMapStart(yynn2) + yynn2 = 0 + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[0] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Label))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Label)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[0] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Label\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Label`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Label))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Label)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[1] { + if false { + } else { + r.EncodeInt(int64(x.Value)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2[1] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Value\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Value`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Value)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[2] { + if false { + } else { + r.EncodeInt(int64(x.To)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2[2] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"To\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `To`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.To)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[3] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.HostIP))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HostIP)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[3] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HostIP\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HostIP`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.HostIP))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HostIP)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[4] { + if false { + } else { + r.EncodeBool(bool(x.IgnoreCollision)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq2[4] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IgnoreCollision\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IgnoreCollision`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.IgnoreCollision)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocatedPortMapping) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocatedPortMapping) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Label": + if r.TryDecodeAsNil() { + x.Label = "" + } else { + x.Label = (string)(r.DecodeString()) + } + case "Value": + if r.TryDecodeAsNil() { + x.Value = 0 + } else { + x.Value = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "To": + if r.TryDecodeAsNil() { + x.To = 0 + } else { + x.To = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "HostIP": + if r.TryDecodeAsNil() { + x.HostIP = "" + } else { + x.HostIP = (string)(r.DecodeString()) + } + case "IgnoreCollision": + if r.TryDecodeAsNil() { + x.IgnoreCollision = false + } else { + x.IgnoreCollision = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocatedPortMapping) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Label = "" + } else { + x.Label = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Value = 0 + } else { + x.Value = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.To = 0 + } else { + x.To = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HostIP = "" + } else { + x.HostIP = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.IgnoreCollision = false + } else { + x.IgnoreCollision = (bool)(r.DecodeBool()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x AllocatedPorts) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encAllocatedPorts((AllocatedPorts)(x), e) + } + } +} + +func (x *AllocatedPorts) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + h.decAllocatedPorts((*AllocatedPorts)(x), d) + } +} + +func (x *Port) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyq2 = [5]bool{ // should field at this index be written? + x.Label != "", // Label + x.Value != 0, // Value + x.To != 0, // To + x.HostNetwork != "", // HostNetwork + x.IgnoreCollision, // IgnoreCollision + } + _ = yyq2 + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + var yynn2 int + for _, b := range yyq2 { + if b { + yynn2++ + } + } + r.WriteMapStart(yynn2) + yynn2 = 0 + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[0] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Label))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Label)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[0] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Label\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Label`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Label))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Label)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[1] { + if false { + } else { + r.EncodeInt(int64(x.Value)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2[1] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Value\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Value`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Value)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[2] { + if false { + } else { + r.EncodeInt(int64(x.To)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2[2] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"To\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `To`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.To)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[3] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.HostNetwork))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HostNetwork)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[3] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HostNetwork\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HostNetwork`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.HostNetwork))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HostNetwork)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[4] { + if false { + } else { + r.EncodeBool(bool(x.IgnoreCollision)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq2[4] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IgnoreCollision\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IgnoreCollision`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.IgnoreCollision)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Port) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Port) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Label": + if r.TryDecodeAsNil() { + x.Label = "" + } else { + x.Label = (string)(r.DecodeString()) + } + case "Value": + if r.TryDecodeAsNil() { + x.Value = 0 + } else { + x.Value = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "To": + if r.TryDecodeAsNil() { + x.To = 0 + } else { + x.To = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "HostNetwork": + if r.TryDecodeAsNil() { + x.HostNetwork = "" + } else { + x.HostNetwork = (string)(r.DecodeString()) + } + case "IgnoreCollision": + if r.TryDecodeAsNil() { + x.IgnoreCollision = false + } else { + x.IgnoreCollision = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Port) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Label = "" + } else { + x.Label = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Value = 0 + } else { + x.Value = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.To = 0 + } else { + x.To = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HostNetwork = "" + } else { + x.HostNetwork = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.IgnoreCollision = false + } else { + x.IgnoreCollision = (bool)(r.DecodeBool()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *DNSConfig) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Servers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Servers), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Servers\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Servers`) + } + r.WriteMapElemValue() + if x.Servers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Servers), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Searches == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Searches), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Searches\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Searches`) + } + r.WriteMapElemValue() + if x.Searches == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Searches), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Options == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Options), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Options\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Options`) + } + r.WriteMapElemValue() + if x.Options == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Options), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DNSConfig) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DNSConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Servers": + if r.TryDecodeAsNil() { + x.Servers = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Servers), d) + } + } + case "Searches": + if r.TryDecodeAsNil() { + x.Searches = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Searches), d) + } + } + case "Options": + if r.TryDecodeAsNil() { + x.Options = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Options), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DNSConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Servers = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Servers), d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Searches = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Searches), d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Options = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Options), d) + } + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *NetworkResource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyq2 = [10]bool{ // should field at this index be written? + x.Mode != "", // Mode + x.Device != "", // Device + x.CIDR != "", // CIDR + x.IP != "", // IP + x.Hostname != "", // Hostname + x.MBits != 0, // MBits + x.DNS != nil, // DNS + len(x.ReservedPorts) != 0, // ReservedPorts + len(x.DynamicPorts) != 0, // DynamicPorts + x.CNI != nil, // CNI + } + _ = yyq2 + if yyr2 || yy2arr2 { + r.WriteArrayStart(10) + } else { + var yynn2 int + for _, b := range yyq2 { + if b { + yynn2++ + } + } + r.WriteMapStart(yynn2) + yynn2 = 0 + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[0] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Mode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Mode)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[0] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Mode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Mode`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Mode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Mode)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[1] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Device))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Device)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[1] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Device\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Device`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Device))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Device)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[2] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.CIDR))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.CIDR)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[2] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CIDR\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CIDR`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.CIDR))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.CIDR)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[3] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IP))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IP)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[3] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IP\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IP`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IP))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IP)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[4] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Hostname))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Hostname)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[4] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Hostname\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Hostname`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Hostname))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Hostname)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[5] { + if false { + } else { + r.EncodeInt(int64(x.MBits)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2[5] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MBits\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MBits`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.MBits)) + } + } + } + var yyn21 bool + if x.DNS == nil { + yyn21 = true + goto LABEL21 + } + LABEL21: + if yyr2 || yy2arr2 { + if yyn21 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[6] { + if x.DNS == nil { + r.EncodeNil() + } else { + x.DNS.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[6] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DNS\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DNS`) + } + r.WriteMapElemValue() + if yyn21 { + r.EncodeNil() + } else { + if x.DNS == nil { + r.EncodeNil() + } else { + x.DNS.CodecEncodeSelf(e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[7] { + if x.ReservedPorts == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePort(([]Port)(x.ReservedPorts), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[7] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ReservedPorts\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ReservedPorts`) + } + r.WriteMapElemValue() + if x.ReservedPorts == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePort(([]Port)(x.ReservedPorts), e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[8] { + if x.DynamicPorts == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePort(([]Port)(x.DynamicPorts), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[8] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DynamicPorts\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DynamicPorts`) + } + r.WriteMapElemValue() + if x.DynamicPorts == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePort(([]Port)(x.DynamicPorts), e) + } + } + } + } + var yyn30 bool + if x.CNI == nil { + yyn30 = true + goto LABEL30 + } + LABEL30: + if yyr2 || yy2arr2 { + if yyn30 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[9] { + if x.CNI == nil { + r.EncodeNil() + } else { + x.CNI.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[9] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CNI\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CNI`) + } + r.WriteMapElemValue() + if yyn30 { + r.EncodeNil() + } else { + if x.CNI == nil { + r.EncodeNil() + } else { + x.CNI.CodecEncodeSelf(e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NetworkResource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NetworkResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Mode": + if r.TryDecodeAsNil() { + x.Mode = "" + } else { + x.Mode = (string)(r.DecodeString()) + } + case "Device": + if r.TryDecodeAsNil() { + x.Device = "" + } else { + x.Device = (string)(r.DecodeString()) + } + case "CIDR": + if r.TryDecodeAsNil() { + x.CIDR = "" + } else { + x.CIDR = (string)(r.DecodeString()) + } + case "IP": + if r.TryDecodeAsNil() { + x.IP = "" + } else { + x.IP = (string)(r.DecodeString()) + } + case "Hostname": + if r.TryDecodeAsNil() { + x.Hostname = "" + } else { + x.Hostname = (string)(r.DecodeString()) + } + case "MBits": + if r.TryDecodeAsNil() { + x.MBits = 0 + } else { + x.MBits = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "DNS": + if r.TryDecodeAsNil() { + if true && x.DNS != nil { + x.DNS = nil + } + } else { + if x.DNS == nil { + x.DNS = new(DNSConfig) + } + + x.DNS.CodecDecodeSelf(d) + } + case "ReservedPorts": + if r.TryDecodeAsNil() { + x.ReservedPorts = nil + } else { + if false { + } else { + h.decSlicePort((*[]Port)(&x.ReservedPorts), d) + } + } + case "DynamicPorts": + if r.TryDecodeAsNil() { + x.DynamicPorts = nil + } else { + if false { + } else { + h.decSlicePort((*[]Port)(&x.DynamicPorts), d) + } + } + case "CNI": + if r.TryDecodeAsNil() { + if true && x.CNI != nil { + x.CNI = nil + } + } else { + if x.CNI == nil { + x.CNI = new(CNIConfig) + } + + x.CNI.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NetworkResource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj16 int + var yyb16 bool + var yyhl16 bool = l >= 0 + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Mode = "" + } else { + x.Mode = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Device = "" + } else { + x.Device = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CIDR = "" + } else { + x.CIDR = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.IP = "" + } else { + x.IP = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Hostname = "" + } else { + x.Hostname = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MBits = 0 + } else { + x.MBits = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.DNS != nil { + x.DNS = nil + } + } else { + if x.DNS == nil { + x.DNS = new(DNSConfig) + } + + x.DNS.CodecDecodeSelf(d) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ReservedPorts = nil + } else { + if false { + } else { + h.decSlicePort((*[]Port)(&x.ReservedPorts), d) + } + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DynamicPorts = nil + } else { + if false { + } else { + h.decSlicePort((*[]Port)(&x.DynamicPorts), d) + } + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.CNI != nil { + x.CNI = nil + } + } else { + if x.CNI == nil { + x.CNI = new(CNIConfig) + } + + x.CNI.CodecDecodeSelf(d) + } + for { + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj16-1, "") + } + r.ReadArrayEnd() +} + +func (x Networks) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encNetworks((Networks)(x), e) + } + } +} + +func (x *Networks) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + h.decNetworks((*Networks)(x), d) + } +} + +func (x *RequestedDevice) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Count)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Count\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Count`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Count)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Constraints == nil { + r.EncodeNil() + } else { + x.Constraints.CodecEncodeSelf(e) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Constraints\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Constraints`) + } + r.WriteMapElemValue() + if x.Constraints == nil { + r.EncodeNil() + } else { + x.Constraints.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Affinities == nil { + r.EncodeNil() + } else { + x.Affinities.CodecEncodeSelf(e) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Affinities\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Affinities`) + } + r.WriteMapElemValue() + if x.Affinities == nil { + r.EncodeNil() + } else { + x.Affinities.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *RequestedDevice) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *RequestedDevice) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Count": + if r.TryDecodeAsNil() { + x.Count = 0 + } else { + x.Count = (uint64)(r.DecodeUint64()) + } + case "Constraints": + if r.TryDecodeAsNil() { + x.Constraints = nil + } else { + x.Constraints.CodecDecodeSelf(d) + } + case "Affinities": + if r.TryDecodeAsNil() { + x.Affinities = nil + } else { + x.Affinities.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *RequestedDevice) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Count = 0 + } else { + x.Count = (uint64)(r.DecodeUint64()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Constraints = nil + } else { + x.Constraints.CodecDecodeSelf(d) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Affinities = nil + } else { + x.Affinities.CodecDecodeSelf(d) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeResources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy4 := &x.Cpu + yy4.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Cpu\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Cpu`) + } + r.WriteMapElemValue() + yy6 := &x.Cpu + yy6.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy9 := &x.Processors + yy9.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Processors\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Processors`) + } + r.WriteMapElemValue() + yy11 := &x.Processors + yy11.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy14 := &x.Memory + yy14.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Memory\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Memory`) + } + r.WriteMapElemValue() + yy16 := &x.Memory + yy16.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy19 := &x.Disk + yy19.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Disk\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Disk`) + } + r.WriteMapElemValue() + yy21 := &x.Disk + yy21.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Devices == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeDeviceResource(([]*NodeDeviceResource)(x.Devices), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Devices\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Devices`) + } + r.WriteMapElemValue() + if x.Devices == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeDeviceResource(([]*NodeDeviceResource)(x.Devices), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.NodeNetworks == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeNetworkResource(([]*NodeNetworkResource)(x.NodeNetworks), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeNetworks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeNetworks`) + } + r.WriteMapElemValue() + if x.NodeNetworks == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeNetworkResource(([]*NodeNetworkResource)(x.NodeNetworks), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Networks == nil { + r.EncodeNil() + } else { + x.Networks.CodecEncodeSelf(e) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Networks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Networks`) + } + r.WriteMapElemValue() + if x.Networks == nil { + r.EncodeNil() + } else { + x.Networks.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.MinDynamicPort)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinDynamicPort\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinDynamicPort`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.MinDynamicPort)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.MaxDynamicPort)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxDynamicPort\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxDynamicPort`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.MaxDynamicPort)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeResources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Cpu": + if r.TryDecodeAsNil() { + x.Cpu = LegacyNodeCpuResources{} + } else { + x.Cpu.CodecDecodeSelf(d) + } + case "Processors": + if r.TryDecodeAsNil() { + x.Processors = NodeProcessorResources{} + } else { + x.Processors.CodecDecodeSelf(d) + } + case "Memory": + if r.TryDecodeAsNil() { + x.Memory = NodeMemoryResources{} + } else { + x.Memory.CodecDecodeSelf(d) + } + case "Disk": + if r.TryDecodeAsNil() { + x.Disk = NodeDiskResources{} + } else { + x.Disk.CodecDecodeSelf(d) + } + case "Devices": + if r.TryDecodeAsNil() { + x.Devices = nil + } else { + if false { + } else { + h.decSlicePtrtoNodeDeviceResource((*[]*NodeDeviceResource)(&x.Devices), d) + } + } + case "NodeNetworks": + if r.TryDecodeAsNil() { + x.NodeNetworks = nil + } else { + if false { + } else { + h.decSlicePtrtoNodeNetworkResource((*[]*NodeNetworkResource)(&x.NodeNetworks), d) + } + } + case "Networks": + if r.TryDecodeAsNil() { + x.Networks = nil + } else { + x.Networks.CodecDecodeSelf(d) + } + case "MinDynamicPort": + if r.TryDecodeAsNil() { + x.MinDynamicPort = 0 + } else { + x.MinDynamicPort = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "MaxDynamicPort": + if r.TryDecodeAsNil() { + x.MaxDynamicPort = 0 + } else { + x.MaxDynamicPort = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj15 int + var yyb15 bool + var yyhl15 bool = l >= 0 + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Cpu = LegacyNodeCpuResources{} + } else { + x.Cpu.CodecDecodeSelf(d) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Processors = NodeProcessorResources{} + } else { + x.Processors.CodecDecodeSelf(d) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Memory = NodeMemoryResources{} + } else { + x.Memory.CodecDecodeSelf(d) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Disk = NodeDiskResources{} + } else { + x.Disk.CodecDecodeSelf(d) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Devices = nil + } else { + if false { + } else { + h.decSlicePtrtoNodeDeviceResource((*[]*NodeDeviceResource)(&x.Devices), d) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeNetworks = nil + } else { + if false { + } else { + h.decSlicePtrtoNodeNetworkResource((*[]*NodeNetworkResource)(&x.NodeNetworks), d) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Networks = nil + } else { + x.Networks.CodecDecodeSelf(d) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MinDynamicPort = 0 + } else { + x.MinDynamicPort = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MaxDynamicPort = 0 + } else { + x.MaxDynamicPort = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + for { + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj15-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeMemoryResources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.MemoryMB)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MemoryMB\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MemoryMB`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.MemoryMB)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeMemoryResources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeMemoryResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "MemoryMB": + if r.TryDecodeAsNil() { + x.MemoryMB = 0 + } else { + x.MemoryMB = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeMemoryResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MemoryMB = 0 + } else { + x.MemoryMB = (int64)(r.DecodeInt64()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeDiskResources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.DiskMB)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DiskMB\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DiskMB`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.DiskMB)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeDiskResources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeDiskResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DiskMB": + if r.TryDecodeAsNil() { + x.DiskMB = 0 + } else { + x.DiskMB = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeDiskResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DiskMB = 0 + } else { + x.DiskMB = (int64)(r.DecodeInt64()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeviceIdTuple) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Vendor))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Vendor)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Vendor\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Vendor`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Vendor))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Vendor)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeviceIdTuple) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeviceIdTuple) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Vendor": + if r.TryDecodeAsNil() { + x.Vendor = "" + } else { + x.Vendor = (string)(r.DecodeString()) + } + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeviceIdTuple) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Vendor = "" + } else { + x.Vendor = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeDeviceResource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Vendor))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Vendor)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Vendor\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Vendor`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Vendor))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Vendor)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Instances == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeDevice(([]*NodeDevice)(x.Instances), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Instances\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Instances`) + } + r.WriteMapElemValue() + if x.Instances == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeDevice(([]*NodeDevice)(x.Instances), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Attributes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtostructs_Attribute((map[string]*pkg3_structs.Attribute)(x.Attributes), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Attributes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Attributes`) + } + r.WriteMapElemValue() + if x.Attributes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtostructs_Attribute((map[string]*pkg3_structs.Attribute)(x.Attributes), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeDeviceResource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeDeviceResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Vendor": + if r.TryDecodeAsNil() { + x.Vendor = "" + } else { + x.Vendor = (string)(r.DecodeString()) + } + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Instances": + if r.TryDecodeAsNil() { + x.Instances = nil + } else { + if false { + } else { + h.decSlicePtrtoNodeDevice((*[]*NodeDevice)(&x.Instances), d) + } + } + case "Attributes": + if r.TryDecodeAsNil() { + x.Attributes = nil + } else { + if false { + } else { + h.decMapstringPtrtostructs_Attribute((*map[string]*pkg3_structs.Attribute)(&x.Attributes), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeDeviceResource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Vendor = "" + } else { + x.Vendor = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Instances = nil + } else { + if false { + } else { + h.decSlicePtrtoNodeDevice((*[]*NodeDevice)(&x.Instances), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Attributes = nil + } else { + if false { + } else { + h.decMapstringPtrtostructs_Attribute((*map[string]*pkg3_structs.Attribute)(&x.Attributes), d) + } + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeDevice) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Healthy)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Healthy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Healthy`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Healthy)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.HealthDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthDescription)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HealthDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HealthDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.HealthDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthDescription)) + } + } + } + var yyn12 bool + if x.Locality == nil { + yyn12 = true + goto LABEL12 + } + LABEL12: + if yyr2 || yy2arr2 { + if yyn12 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Locality == nil { + r.EncodeNil() + } else { + x.Locality.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Locality\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Locality`) + } + r.WriteMapElemValue() + if yyn12 { + r.EncodeNil() + } else { + if x.Locality == nil { + r.EncodeNil() + } else { + x.Locality.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeDevice) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeDevice) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Healthy": + if r.TryDecodeAsNil() { + x.Healthy = false + } else { + x.Healthy = (bool)(r.DecodeBool()) + } + case "HealthDescription": + if r.TryDecodeAsNil() { + x.HealthDescription = "" + } else { + x.HealthDescription = (string)(r.DecodeString()) + } + case "Locality": + if r.TryDecodeAsNil() { + if true && x.Locality != nil { + x.Locality = nil + } + } else { + if x.Locality == nil { + x.Locality = new(NodeDeviceLocality) + } + + x.Locality.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeDevice) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Healthy = false + } else { + x.Healthy = (bool)(r.DecodeBool()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HealthDescription = "" + } else { + x.HealthDescription = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Locality != nil { + x.Locality = nil + } + } else { + if x.Locality == nil { + x.Locality = new(NodeDeviceLocality) + } + + x.Locality.CodecDecodeSelf(d) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeDeviceLocality) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PciBusID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PciBusID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PciBusID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PciBusID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PciBusID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PciBusID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeDeviceLocality) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeDeviceLocality) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "PciBusID": + if r.TryDecodeAsNil() { + x.PciBusID = "" + } else { + x.PciBusID = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeDeviceLocality) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PciBusID = "" + } else { + x.PciBusID = (string)(r.DecodeString()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeReservedResources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy4 := &x.Cpu + yy4.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Cpu\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Cpu`) + } + r.WriteMapElemValue() + yy6 := &x.Cpu + yy6.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy9 := &x.Memory + yy9.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Memory\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Memory`) + } + r.WriteMapElemValue() + yy11 := &x.Memory + yy11.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy14 := &x.Disk + yy14.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Disk\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Disk`) + } + r.WriteMapElemValue() + yy16 := &x.Disk + yy16.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy19 := &x.Networks + yy19.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Networks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Networks`) + } + r.WriteMapElemValue() + yy21 := &x.Networks + yy21.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeReservedResources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeReservedResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Cpu": + if r.TryDecodeAsNil() { + x.Cpu = NodeReservedCpuResources{} + } else { + x.Cpu.CodecDecodeSelf(d) + } + case "Memory": + if r.TryDecodeAsNil() { + x.Memory = NodeReservedMemoryResources{} + } else { + x.Memory.CodecDecodeSelf(d) + } + case "Disk": + if r.TryDecodeAsNil() { + x.Disk = NodeReservedDiskResources{} + } else { + x.Disk.CodecDecodeSelf(d) + } + case "Networks": + if r.TryDecodeAsNil() { + x.Networks = NodeReservedNetworkResources{} + } else { + x.Networks.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeReservedResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Cpu = NodeReservedCpuResources{} + } else { + x.Cpu.CodecDecodeSelf(d) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Memory = NodeReservedMemoryResources{} + } else { + x.Memory.CodecDecodeSelf(d) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Disk = NodeReservedDiskResources{} + } else { + x.Disk.CodecDecodeSelf(d) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Networks = NodeReservedNetworkResources{} + } else { + x.Networks.CodecDecodeSelf(d) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeReservedCpuResources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CpuShares)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CpuShares\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CpuShares`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CpuShares)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ReservedCpuCores == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceuint16(([]uint16)(x.ReservedCpuCores), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ReservedCpuCores\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ReservedCpuCores`) + } + r.WriteMapElemValue() + if x.ReservedCpuCores == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceuint16(([]uint16)(x.ReservedCpuCores), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeReservedCpuResources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeReservedCpuResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "CpuShares": + if r.TryDecodeAsNil() { + x.CpuShares = 0 + } else { + x.CpuShares = (int64)(r.DecodeInt64()) + } + case "ReservedCpuCores": + if r.TryDecodeAsNil() { + x.ReservedCpuCores = nil + } else { + if false { + } else { + h.decSliceuint16((*[]uint16)(&x.ReservedCpuCores), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeReservedCpuResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CpuShares = 0 + } else { + x.CpuShares = (int64)(r.DecodeInt64()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ReservedCpuCores = nil + } else { + if false { + } else { + h.decSliceuint16((*[]uint16)(&x.ReservedCpuCores), d) + } + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeReservedMemoryResources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.MemoryMB)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MemoryMB\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MemoryMB`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.MemoryMB)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeReservedMemoryResources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeReservedMemoryResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "MemoryMB": + if r.TryDecodeAsNil() { + x.MemoryMB = 0 + } else { + x.MemoryMB = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeReservedMemoryResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MemoryMB = 0 + } else { + x.MemoryMB = (int64)(r.DecodeInt64()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeReservedDiskResources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.DiskMB)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DiskMB\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DiskMB`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.DiskMB)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeReservedDiskResources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeReservedDiskResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DiskMB": + if r.TryDecodeAsNil() { + x.DiskMB = 0 + } else { + x.DiskMB = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeReservedDiskResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DiskMB = 0 + } else { + x.DiskMB = (int64)(r.DecodeInt64()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeReservedNetworkResources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ReservedHostPorts))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ReservedHostPorts)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ReservedHostPorts\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ReservedHostPorts`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ReservedHostPorts))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ReservedHostPorts)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeReservedNetworkResources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeReservedNetworkResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ReservedHostPorts": + if r.TryDecodeAsNil() { + x.ReservedHostPorts = "" + } else { + x.ReservedHostPorts = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeReservedNetworkResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ReservedHostPorts = "" + } else { + x.ReservedHostPorts = (string)(r.DecodeString()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocatedResources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Tasks == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoAllocatedTaskResources((map[string]*AllocatedTaskResources)(x.Tasks), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Tasks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Tasks`) + } + r.WriteMapElemValue() + if x.Tasks == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoAllocatedTaskResources((map[string]*AllocatedTaskResources)(x.Tasks), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.TaskLifecycles == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoTaskLifecycleConfig((map[string]*TaskLifecycleConfig)(x.TaskLifecycles), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskLifecycles\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskLifecycles`) + } + r.WriteMapElemValue() + if x.TaskLifecycles == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoTaskLifecycleConfig((map[string]*TaskLifecycleConfig)(x.TaskLifecycles), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy10 := &x.Shared + yy10.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Shared\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Shared`) + } + r.WriteMapElemValue() + yy12 := &x.Shared + yy12.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocatedResources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocatedResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Tasks": + if r.TryDecodeAsNil() { + x.Tasks = nil + } else { + if false { + } else { + h.decMapstringPtrtoAllocatedTaskResources((*map[string]*AllocatedTaskResources)(&x.Tasks), d) + } + } + case "TaskLifecycles": + if r.TryDecodeAsNil() { + x.TaskLifecycles = nil + } else { + if false { + } else { + h.decMapstringPtrtoTaskLifecycleConfig((*map[string]*TaskLifecycleConfig)(&x.TaskLifecycles), d) + } + } + case "Shared": + if r.TryDecodeAsNil() { + x.Shared = AllocatedSharedResources{} + } else { + x.Shared.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocatedResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Tasks = nil + } else { + if false { + } else { + h.decMapstringPtrtoAllocatedTaskResources((*map[string]*AllocatedTaskResources)(&x.Tasks), d) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskLifecycles = nil + } else { + if false { + } else { + h.decMapstringPtrtoTaskLifecycleConfig((*map[string]*TaskLifecycleConfig)(&x.TaskLifecycles), d) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Shared = AllocatedSharedResources{} + } else { + x.Shared.CodecDecodeSelf(d) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocatedTaskResources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy4 := &x.Cpu + yy4.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Cpu\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Cpu`) + } + r.WriteMapElemValue() + yy6 := &x.Cpu + yy6.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy9 := &x.Memory + yy9.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Memory\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Memory`) + } + r.WriteMapElemValue() + yy11 := &x.Memory + yy11.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Networks == nil { + r.EncodeNil() + } else { + x.Networks.CodecEncodeSelf(e) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Networks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Networks`) + } + r.WriteMapElemValue() + if x.Networks == nil { + r.EncodeNil() + } else { + x.Networks.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Devices == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocatedDeviceResource(([]*AllocatedDeviceResource)(x.Devices), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Devices\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Devices`) + } + r.WriteMapElemValue() + if x.Devices == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocatedDeviceResource(([]*AllocatedDeviceResource)(x.Devices), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocatedTaskResources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocatedTaskResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Cpu": + if r.TryDecodeAsNil() { + x.Cpu = AllocatedCpuResources{} + } else { + x.Cpu.CodecDecodeSelf(d) + } + case "Memory": + if r.TryDecodeAsNil() { + x.Memory = AllocatedMemoryResources{} + } else { + x.Memory.CodecDecodeSelf(d) + } + case "Networks": + if r.TryDecodeAsNil() { + x.Networks = nil + } else { + x.Networks.CodecDecodeSelf(d) + } + case "Devices": + if r.TryDecodeAsNil() { + x.Devices = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocatedDeviceResource((*[]*AllocatedDeviceResource)(&x.Devices), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocatedTaskResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Cpu = AllocatedCpuResources{} + } else { + x.Cpu.CodecDecodeSelf(d) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Memory = AllocatedMemoryResources{} + } else { + x.Memory.CodecDecodeSelf(d) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Networks = nil + } else { + x.Networks.CodecDecodeSelf(d) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Devices = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocatedDeviceResource((*[]*AllocatedDeviceResource)(&x.Devices), d) + } + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocatedSharedResources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Networks == nil { + r.EncodeNil() + } else { + x.Networks.CodecEncodeSelf(e) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Networks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Networks`) + } + r.WriteMapElemValue() + if x.Networks == nil { + r.EncodeNil() + } else { + x.Networks.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.DiskMB)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DiskMB\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DiskMB`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.DiskMB)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Ports == nil { + r.EncodeNil() + } else { + x.Ports.CodecEncodeSelf(e) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Ports\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Ports`) + } + r.WriteMapElemValue() + if x.Ports == nil { + r.EncodeNil() + } else { + x.Ports.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocatedSharedResources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocatedSharedResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Networks": + if r.TryDecodeAsNil() { + x.Networks = nil + } else { + x.Networks.CodecDecodeSelf(d) + } + case "DiskMB": + if r.TryDecodeAsNil() { + x.DiskMB = 0 + } else { + x.DiskMB = (int64)(r.DecodeInt64()) + } + case "Ports": + if r.TryDecodeAsNil() { + x.Ports = nil + } else { + x.Ports.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocatedSharedResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Networks = nil + } else { + x.Networks.CodecDecodeSelf(d) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DiskMB = 0 + } else { + x.DiskMB = (int64)(r.DecodeInt64()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Ports = nil + } else { + x.Ports.CodecDecodeSelf(d) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocatedCpuResources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CpuShares)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CpuShares\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CpuShares`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CpuShares)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ReservedCores == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceuint16(([]uint16)(x.ReservedCores), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ReservedCores\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ReservedCores`) + } + r.WriteMapElemValue() + if x.ReservedCores == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceuint16(([]uint16)(x.ReservedCores), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocatedCpuResources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocatedCpuResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "CpuShares": + if r.TryDecodeAsNil() { + x.CpuShares = 0 + } else { + x.CpuShares = (int64)(r.DecodeInt64()) + } + case "ReservedCores": + if r.TryDecodeAsNil() { + x.ReservedCores = nil + } else { + if false { + } else { + h.decSliceuint16((*[]uint16)(&x.ReservedCores), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocatedCpuResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CpuShares = 0 + } else { + x.CpuShares = (int64)(r.DecodeInt64()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ReservedCores = nil + } else { + if false { + } else { + h.decSliceuint16((*[]uint16)(&x.ReservedCores), d) + } + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocatedMemoryResources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.MemoryMB)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MemoryMB\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MemoryMB`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.MemoryMB)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.MemoryMaxMB)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MemoryMaxMB\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MemoryMaxMB`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.MemoryMaxMB)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocatedMemoryResources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocatedMemoryResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "MemoryMB": + if r.TryDecodeAsNil() { + x.MemoryMB = 0 + } else { + x.MemoryMB = (int64)(r.DecodeInt64()) + } + case "MemoryMaxMB": + if r.TryDecodeAsNil() { + x.MemoryMaxMB = 0 + } else { + x.MemoryMaxMB = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocatedMemoryResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MemoryMB = 0 + } else { + x.MemoryMB = (int64)(r.DecodeInt64()) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MemoryMaxMB = 0 + } else { + x.MemoryMaxMB = (int64)(r.DecodeInt64()) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x AllocatedDevices) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encAllocatedDevices((AllocatedDevices)(x), e) + } + } +} + +func (x *AllocatedDevices) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + h.decAllocatedDevices((*AllocatedDevices)(x), d) + } +} + +func (x *AllocatedDeviceResource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Vendor))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Vendor)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Vendor\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Vendor`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Vendor))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Vendor)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.DeviceIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.DeviceIDs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeviceIDs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeviceIDs`) + } + r.WriteMapElemValue() + if x.DeviceIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.DeviceIDs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocatedDeviceResource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocatedDeviceResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Vendor": + if r.TryDecodeAsNil() { + x.Vendor = "" + } else { + x.Vendor = (string)(r.DecodeString()) + } + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "DeviceIDs": + if r.TryDecodeAsNil() { + x.DeviceIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.DeviceIDs), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocatedDeviceResource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Vendor = "" + } else { + x.Vendor = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeviceIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.DeviceIDs), d) + } + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *ComparableResources) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy4 := &x.Flattened + yy4.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Flattened\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Flattened`) + } + r.WriteMapElemValue() + yy6 := &x.Flattened + yy6.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy9 := &x.Shared + yy9.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Shared\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Shared`) + } + r.WriteMapElemValue() + yy11 := &x.Shared + yy11.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ComparableResources) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ComparableResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Flattened": + if r.TryDecodeAsNil() { + x.Flattened = AllocatedTaskResources{} + } else { + x.Flattened.CodecDecodeSelf(d) + } + case "Shared": + if r.TryDecodeAsNil() { + x.Shared = AllocatedSharedResources{} + } else { + x.Shared.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ComparableResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Flattened = AllocatedTaskResources{} + } else { + x.Flattened.CodecDecodeSelf(d) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Shared = AllocatedSharedResources{} + } else { + x.Shared.CodecDecodeSelf(d) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobSubmission) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Source))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Source)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Source\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Source`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Source))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Source)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Format))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Format)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Format\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Format`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Format))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Format)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.VariableFlags == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.VariableFlags), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VariableFlags\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `VariableFlags`) + } + r.WriteMapElemValue() + if x.VariableFlags == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.VariableFlags), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Variables))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Variables)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Variables\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Variables`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Variables))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Variables)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Version)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Version\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Version`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Version)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobSubmission) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobSubmission) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Source": + if r.TryDecodeAsNil() { + x.Source = "" + } else { + x.Source = (string)(r.DecodeString()) + } + case "Format": + if r.TryDecodeAsNil() { + x.Format = "" + } else { + x.Format = (string)(r.DecodeString()) + } + case "VariableFlags": + if r.TryDecodeAsNil() { + x.VariableFlags = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.VariableFlags), d) + } + } + case "Variables": + if r.TryDecodeAsNil() { + x.Variables = "" + } else { + x.Variables = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "Version": + if r.TryDecodeAsNil() { + x.Version = 0 + } else { + x.Version = (uint64)(r.DecodeUint64()) + } + case "JobModifyIndex": + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobSubmission) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Source = "" + } else { + x.Source = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Format = "" + } else { + x.Format = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VariableFlags = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.VariableFlags), d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Variables = "" + } else { + x.Variables = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Version = 0 + } else { + x.Version = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *Job) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(36) + } else { + r.WriteMapStart(36) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Stop)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Stop\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Stop`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Stop)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ParentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ParentID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ParentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ParentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ParentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ParentID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Priority)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Priority\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Priority`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Priority)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllAtOnce)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllAtOnce\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllAtOnce`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllAtOnce)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Datacenters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Datacenters), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Datacenters\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Datacenters`) + } + r.WriteMapElemValue() + if x.Datacenters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Datacenters), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodePool))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodePool)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodePool\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodePool`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodePool))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodePool)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Constraints == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Constraints\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Constraints`) + } + r.WriteMapElemValue() + if x.Constraints == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Affinities == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAffinity(([]*Affinity)(x.Affinities), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Affinities\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Affinities`) + } + r.WriteMapElemValue() + if x.Affinities == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAffinity(([]*Affinity)(x.Affinities), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Spreads == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoSpread(([]*Spread)(x.Spreads), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Spreads\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Spreads`) + } + r.WriteMapElemValue() + if x.Spreads == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoSpread(([]*Spread)(x.Spreads), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.TaskGroups == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoTaskGroup(([]*TaskGroup)(x.TaskGroups), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskGroups\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroups`) + } + r.WriteMapElemValue() + if x.TaskGroups == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoTaskGroup(([]*TaskGroup)(x.TaskGroups), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy49 := &x.Update + yy49.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Update\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Update`) + } + r.WriteMapElemValue() + yy51 := &x.Update + yy51.CodecEncodeSelf(e) + } + var yyn53 bool + if x.Multiregion == nil { + yyn53 = true + goto LABEL53 + } + LABEL53: + if yyr2 || yy2arr2 { + if yyn53 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Multiregion == nil { + r.EncodeNil() + } else { + x.Multiregion.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Multiregion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Multiregion`) + } + r.WriteMapElemValue() + if yyn53 { + r.EncodeNil() + } else { + if x.Multiregion == nil { + r.EncodeNil() + } else { + x.Multiregion.CodecEncodeSelf(e) + } + } + } + var yyn56 bool + if x.Periodic == nil { + yyn56 = true + goto LABEL56 + } + LABEL56: + if yyr2 || yy2arr2 { + if yyn56 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Periodic == nil { + r.EncodeNil() + } else { + x.Periodic.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Periodic\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Periodic`) + } + r.WriteMapElemValue() + if yyn56 { + r.EncodeNil() + } else { + if x.Periodic == nil { + r.EncodeNil() + } else { + x.Periodic.CodecEncodeSelf(e) + } + } + } + var yyn59 bool + if x.ParameterizedJob == nil { + yyn59 = true + goto LABEL59 + } + LABEL59: + if yyr2 || yy2arr2 { + if yyn59 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ParameterizedJob == nil { + r.EncodeNil() + } else { + x.ParameterizedJob.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ParameterizedJob\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ParameterizedJob`) + } + r.WriteMapElemValue() + if yyn59 { + r.EncodeNil() + } else { + if x.ParameterizedJob == nil { + r.EncodeNil() + } else { + x.ParameterizedJob.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Dispatched)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Dispatched\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Dispatched`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Dispatched)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DispatchIdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DispatchIdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DispatchIdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DispatchIdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DispatchIdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DispatchIdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Payload == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Payload)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Payload\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Payload`) + } + r.WriteMapElemValue() + if x.Payload == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Payload)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Meta), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Meta\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) + } + r.WriteMapElemValue() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Meta), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ConsulNamespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ConsulNamespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ConsulNamespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ConsulNamespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ConsulNamespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ConsulNamespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.VaultNamespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VaultNamespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VaultNamespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `VaultNamespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.VaultNamespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VaultNamespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NomadTokenID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NomadTokenID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NomadTokenID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NomadTokenID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NomadTokenID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NomadTokenID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Status\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"StatusDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `StatusDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Stable)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Stable\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Stable`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Stable)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Version)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Version\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Version`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Version)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.SubmitTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SubmitTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SubmitTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.SubmitTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } + var yyn107 bool + if x.UI == nil { + yyn107 = true + goto LABEL107 + } + LABEL107: + if yyr2 || yy2arr2 { + if yyn107 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.UI == nil { + r.EncodeNil() + } else { + x.UI.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"UI\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `UI`) + } + r.WriteMapElemValue() + if yyn107 { + r.EncodeNil() + } else { + if x.UI == nil { + r.EncodeNil() + } else { + x.UI.CodecEncodeSelf(e) + } + } + } + var yyn110 bool + if x.VersionTag == nil { + yyn110 = true + goto LABEL110 + } + LABEL110: + if yyr2 || yy2arr2 { + if yyn110 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.VersionTag == nil { + r.EncodeNil() + } else { + x.VersionTag.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VersionTag\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `VersionTag`) + } + r.WriteMapElemValue() + if yyn110 { + r.EncodeNil() + } else { + if x.VersionTag == nil { + r.EncodeNil() + } else { + x.VersionTag.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Job) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Job) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Stop": + if r.TryDecodeAsNil() { + x.Stop = false + } else { + x.Stop = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "ParentID": + if r.TryDecodeAsNil() { + x.ParentID = "" + } else { + x.ParentID = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + case "Priority": + if r.TryDecodeAsNil() { + x.Priority = 0 + } else { + x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "AllAtOnce": + if r.TryDecodeAsNil() { + x.AllAtOnce = false + } else { + x.AllAtOnce = (bool)(r.DecodeBool()) + } + case "Datacenters": + if r.TryDecodeAsNil() { + x.Datacenters = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Datacenters), d) + } + } + case "NodePool": + if r.TryDecodeAsNil() { + x.NodePool = "" + } else { + x.NodePool = (string)(r.DecodeString()) + } + case "Constraints": + if r.TryDecodeAsNil() { + x.Constraints = nil + } else { + if false { + } else { + h.decSlicePtrtoConstraint((*[]*Constraint)(&x.Constraints), d) + } + } + case "Affinities": + if r.TryDecodeAsNil() { + x.Affinities = nil + } else { + if false { + } else { + h.decSlicePtrtoAffinity((*[]*Affinity)(&x.Affinities), d) + } + } + case "Spreads": + if r.TryDecodeAsNil() { + x.Spreads = nil + } else { + if false { + } else { + h.decSlicePtrtoSpread((*[]*Spread)(&x.Spreads), d) + } + } + case "TaskGroups": + if r.TryDecodeAsNil() { + x.TaskGroups = nil + } else { + if false { + } else { + h.decSlicePtrtoTaskGroup((*[]*TaskGroup)(&x.TaskGroups), d) + } + } + case "Update": + if r.TryDecodeAsNil() { + x.Update = UpdateStrategy{} + } else { + x.Update.CodecDecodeSelf(d) + } + case "Multiregion": + if r.TryDecodeAsNil() { + if true && x.Multiregion != nil { + x.Multiregion = nil + } + } else { + if x.Multiregion == nil { + x.Multiregion = new(Multiregion) + } + + x.Multiregion.CodecDecodeSelf(d) + } + case "Periodic": + if r.TryDecodeAsNil() { + if true && x.Periodic != nil { + x.Periodic = nil + } + } else { + if x.Periodic == nil { + x.Periodic = new(PeriodicConfig) + } + + x.Periodic.CodecDecodeSelf(d) + } + case "ParameterizedJob": + if r.TryDecodeAsNil() { + if true && x.ParameterizedJob != nil { + x.ParameterizedJob = nil + } + } else { + if x.ParameterizedJob == nil { + x.ParameterizedJob = new(ParameterizedJobConfig) + } + + x.ParameterizedJob.CodecDecodeSelf(d) + } + case "Dispatched": + if r.TryDecodeAsNil() { + x.Dispatched = false + } else { + x.Dispatched = (bool)(r.DecodeBool()) + } + case "DispatchIdempotencyToken": + if r.TryDecodeAsNil() { + x.DispatchIdempotencyToken = "" + } else { + x.DispatchIdempotencyToken = (string)(r.DecodeString()) + } + case "Payload": + if r.TryDecodeAsNil() { + x.Payload = nil + } else { + if false { + } else { + x.Payload = r.DecodeBytes(([]byte)(x.Payload), false) + } + } + case "Meta": + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Meta), d) + } + } + case "ConsulNamespace": + if r.TryDecodeAsNil() { + x.ConsulNamespace = "" + } else { + x.ConsulNamespace = (string)(r.DecodeString()) + } + case "VaultNamespace": + if r.TryDecodeAsNil() { + x.VaultNamespace = "" + } else { + x.VaultNamespace = (string)(r.DecodeString()) + } + case "NomadTokenID": + if r.TryDecodeAsNil() { + x.NomadTokenID = "" + } else { + x.NomadTokenID = (string)(r.DecodeString()) + } + case "Status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + case "StatusDescription": + if r.TryDecodeAsNil() { + x.StatusDescription = "" + } else { + x.StatusDescription = (string)(r.DecodeString()) + } + case "Stable": + if r.TryDecodeAsNil() { + x.Stable = false + } else { + x.Stable = (bool)(r.DecodeBool()) + } + case "Version": + if r.TryDecodeAsNil() { + x.Version = 0 + } else { + x.Version = (uint64)(r.DecodeUint64()) + } + case "SubmitTime": + if r.TryDecodeAsNil() { + x.SubmitTime = 0 + } else { + x.SubmitTime = (int64)(r.DecodeInt64()) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + case "JobModifyIndex": + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + case "UI": + if r.TryDecodeAsNil() { + if true && x.UI != nil { + x.UI = nil + } + } else { + if x.UI == nil { + x.UI = new(JobUIConfig) + } + + x.UI.CodecDecodeSelf(d) + } + case "VersionTag": + if r.TryDecodeAsNil() { + if true && x.VersionTag != nil { + x.VersionTag = nil + } + } else { + if x.VersionTag == nil { + x.VersionTag = new(JobVersionTag) + } + + x.VersionTag.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Job) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj47 int + var yyb47 bool + var yyhl47 bool = l >= 0 + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Stop = false + } else { + x.Stop = (bool)(r.DecodeBool()) + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ParentID = "" + } else { + x.ParentID = (string)(r.DecodeString()) + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Priority = 0 + } else { + x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllAtOnce = false + } else { + x.AllAtOnce = (bool)(r.DecodeBool()) + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Datacenters = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Datacenters), d) + } + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodePool = "" + } else { + x.NodePool = (string)(r.DecodeString()) + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Constraints = nil + } else { + if false { + } else { + h.decSlicePtrtoConstraint((*[]*Constraint)(&x.Constraints), d) + } + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Affinities = nil + } else { + if false { + } else { + h.decSlicePtrtoAffinity((*[]*Affinity)(&x.Affinities), d) + } + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Spreads = nil + } else { + if false { + } else { + h.decSlicePtrtoSpread((*[]*Spread)(&x.Spreads), d) + } + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskGroups = nil + } else { + if false { + } else { + h.decSlicePtrtoTaskGroup((*[]*TaskGroup)(&x.TaskGroups), d) + } + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Update = UpdateStrategy{} + } else { + x.Update.CodecDecodeSelf(d) + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Multiregion != nil { + x.Multiregion = nil + } + } else { + if x.Multiregion == nil { + x.Multiregion = new(Multiregion) + } + + x.Multiregion.CodecDecodeSelf(d) + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Periodic != nil { + x.Periodic = nil + } + } else { + if x.Periodic == nil { + x.Periodic = new(PeriodicConfig) + } + + x.Periodic.CodecDecodeSelf(d) + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ParameterizedJob != nil { + x.ParameterizedJob = nil + } + } else { + if x.ParameterizedJob == nil { + x.ParameterizedJob = new(ParameterizedJobConfig) + } + + x.ParameterizedJob.CodecDecodeSelf(d) + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Dispatched = false + } else { + x.Dispatched = (bool)(r.DecodeBool()) + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DispatchIdempotencyToken = "" + } else { + x.DispatchIdempotencyToken = (string)(r.DecodeString()) + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Payload = nil + } else { + if false { + } else { + x.Payload = r.DecodeBytes(([]byte)(x.Payload), false) + } + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Meta), d) + } + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ConsulNamespace = "" + } else { + x.ConsulNamespace = (string)(r.DecodeString()) + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VaultNamespace = "" + } else { + x.VaultNamespace = (string)(r.DecodeString()) + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NomadTokenID = "" + } else { + x.NomadTokenID = (string)(r.DecodeString()) + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.StatusDescription = "" + } else { + x.StatusDescription = (string)(r.DecodeString()) + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Stable = false + } else { + x.Stable = (bool)(r.DecodeBool()) + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Version = 0 + } else { + x.Version = (uint64)(r.DecodeUint64()) + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SubmitTime = 0 + } else { + x.SubmitTime = (int64)(r.DecodeInt64()) + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.UI != nil { + x.UI = nil + } + } else { + if x.UI == nil { + x.UI = new(JobUIConfig) + } + + x.UI.CodecDecodeSelf(d) + } + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.VersionTag != nil { + x.VersionTag = nil + } + } else { + if x.VersionTag == nil { + x.VersionTag = new(JobVersionTag) + } + + x.VersionTag.CodecDecodeSelf(d) + } + for { + yyj47++ + if yyhl47 { + yyb47 = yyj47 > l + } else { + yyb47 = r.CheckBreak() + } + if yyb47 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj47-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobVersionTag) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Description\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Description`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.TaggedTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaggedTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaggedTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.TaggedTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobVersionTag) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobVersionTag) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Description": + if r.TryDecodeAsNil() { + x.Description = "" + } else { + x.Description = (string)(r.DecodeString()) + } + case "TaggedTime": + if r.TryDecodeAsNil() { + x.TaggedTime = 0 + } else { + x.TaggedTime = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobVersionTag) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Description = "" + } else { + x.Description = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaggedTime = 0 + } else { + x.TaggedTime = (int64)(r.DecodeInt64()) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobApplyTagRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + var yyn9 bool + if x.Tag == nil { + yyn9 = true + goto LABEL9 + } + LABEL9: + if yyr2 || yy2arr2 { + if yyn9 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Tag == nil { + r.EncodeNil() + } else { + x.Tag.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Tag\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Tag`) + } + r.WriteMapElemValue() + if yyn9 { + r.EncodeNil() + } else { + if x.Tag == nil { + r.EncodeNil() + } else { + x.Tag.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Version)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Version\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Version`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Version)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobApplyTagRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobApplyTagRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Tag": + if r.TryDecodeAsNil() { + if true && x.Tag != nil { + x.Tag = nil + } + } else { + if x.Tag == nil { + x.Tag = new(JobVersionTag) + } + + x.Tag.CodecDecodeSelf(d) + } + case "Version": + if r.TryDecodeAsNil() { + x.Version = 0 + } else { + x.Version = (uint64)(r.DecodeUint64()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobApplyTagRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Tag != nil { + x.Tag = nil + } + } else { + if x.Tag == nil { + x.Tag = new(JobVersionTag) + } + + x.Tag.CodecDecodeSelf(d) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Version = 0 + } else { + x.Version = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobTagResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Description\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Description`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.TaggedTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaggedTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaggedTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.TaggedTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.EncExtension(x.LastContact, yyxt16) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.LastContact)); yyxt17 != nil { + z.EncExtension(x.LastContact, yyxt17) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobTagResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobTagResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Description": + if r.TryDecodeAsNil() { + x.Description = "" + } else { + x.Description = (string)(r.DecodeString()) + } + case "TaggedTime": + if r.TryDecodeAsNil() { + x.TaggedTime = 0 + } else { + x.TaggedTime = (int64)(r.DecodeInt64()) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.LastContact)); yyxt9 != nil { + z.DecExtension(x.LastContact, yyxt9) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobTagResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Description = "" + } else { + x.Description = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaggedTime = 0 + } else { + x.TaggedTime = (int64)(r.DecodeInt64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt18 := z.Extension(z.I2Rtid(x.LastContact)); yyxt18 != nil { + z.DecExtension(x.LastContact, yyxt18) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobUIConfig) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Description\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Description`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Links == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoJobUILink(([]*JobUILink)(x.Links), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Links\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Links`) + } + r.WriteMapElemValue() + if x.Links == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoJobUILink(([]*JobUILink)(x.Links), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobUIConfig) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobUIConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Description": + if r.TryDecodeAsNil() { + x.Description = "" + } else { + x.Description = (string)(r.DecodeString()) + } + case "Links": + if r.TryDecodeAsNil() { + x.Links = nil + } else { + if false { + } else { + h.decSlicePtrtoJobUILink((*[]*JobUILink)(&x.Links), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobUIConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Description = "" + } else { + x.Description = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Links = nil + } else { + if false { + } else { + h.decSlicePtrtoJobUILink((*[]*JobUILink)(&x.Links), d) + } + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobUILink) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Label))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Label)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Label\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Label`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Label))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Label)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Url))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Url)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Url\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Url`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Url))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Url)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobUILink) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobUILink) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Label": + if r.TryDecodeAsNil() { + x.Label = "" + } else { + x.Label = (string)(r.DecodeString()) + } + case "Url": + if r.TryDecodeAsNil() { + x.Url = "" + } else { + x.Url = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobUILink) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Label = "" + } else { + x.Label = (string)(r.DecodeString()) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Url = "" + } else { + x.Url = (string)(r.DecodeString()) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobListStub) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(20) + } else { + r.WriteMapStart(20) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ParentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ParentID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ParentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ParentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ParentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ParentID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Datacenters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Datacenters), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Datacenters\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Datacenters`) + } + r.WriteMapElemValue() + if x.Datacenters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Datacenters), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodePool))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodePool)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodePool\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodePool`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodePool))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodePool)) + } + } + } + var yyn21 bool + if x.Multiregion == nil { + yyn21 = true + goto LABEL21 + } + LABEL21: + if yyr2 || yy2arr2 { + if yyn21 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Multiregion == nil { + r.EncodeNil() + } else { + x.Multiregion.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Multiregion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Multiregion`) + } + r.WriteMapElemValue() + if yyn21 { + r.EncodeNil() + } else { + if x.Multiregion == nil { + r.EncodeNil() + } else { + x.Multiregion.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Priority)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Priority\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Priority`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Priority)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Periodic)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Periodic\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Periodic`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Periodic)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.ParameterizedJob)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ParameterizedJob\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ParameterizedJob`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.ParameterizedJob)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Stop)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Stop\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Stop`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Stop)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Status\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"StatusDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `StatusDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) + } + } + } + var yyn45 bool + if x.JobSummary == nil { + yyn45 = true + goto LABEL45 + } + LABEL45: + if yyr2 || yy2arr2 { + if yyn45 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.JobSummary == nil { + r.EncodeNil() + } else { + x.JobSummary.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobSummary\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobSummary`) + } + r.WriteMapElemValue() + if yyn45 { + r.EncodeNil() + } else { + if x.JobSummary == nil { + r.EncodeNil() + } else { + x.JobSummary.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.SubmitTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SubmitTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SubmitTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.SubmitTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Meta), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Meta\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) + } + r.WriteMapElemValue() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Meta), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobListStub) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "ParentID": + if r.TryDecodeAsNil() { + x.ParentID = "" + } else { + x.ParentID = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "Datacenters": + if r.TryDecodeAsNil() { + x.Datacenters = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Datacenters), d) + } + } + case "NodePool": + if r.TryDecodeAsNil() { + x.NodePool = "" + } else { + x.NodePool = (string)(r.DecodeString()) + } + case "Multiregion": + if r.TryDecodeAsNil() { + if true && x.Multiregion != nil { + x.Multiregion = nil + } + } else { + if x.Multiregion == nil { + x.Multiregion = new(Multiregion) + } + + x.Multiregion.CodecDecodeSelf(d) + } + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + case "Priority": + if r.TryDecodeAsNil() { + x.Priority = 0 + } else { + x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Periodic": + if r.TryDecodeAsNil() { + x.Periodic = false + } else { + x.Periodic = (bool)(r.DecodeBool()) + } + case "ParameterizedJob": + if r.TryDecodeAsNil() { + x.ParameterizedJob = false + } else { + x.ParameterizedJob = (bool)(r.DecodeBool()) + } + case "Stop": + if r.TryDecodeAsNil() { + x.Stop = false + } else { + x.Stop = (bool)(r.DecodeBool()) + } + case "Status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + case "StatusDescription": + if r.TryDecodeAsNil() { + x.StatusDescription = "" + } else { + x.StatusDescription = (string)(r.DecodeString()) + } + case "JobSummary": + if r.TryDecodeAsNil() { + if true && x.JobSummary != nil { + x.JobSummary = nil + } + } else { + if x.JobSummary == nil { + x.JobSummary = new(JobSummary) + } + + x.JobSummary.CodecDecodeSelf(d) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + case "JobModifyIndex": + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + case "SubmitTime": + if r.TryDecodeAsNil() { + x.SubmitTime = 0 + } else { + x.SubmitTime = (int64)(r.DecodeInt64()) + } + case "Meta": + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Meta), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj26 int + var yyb26 bool + var yyhl26 bool = l >= 0 + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ParentID = "" + } else { + x.ParentID = (string)(r.DecodeString()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Datacenters = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Datacenters), d) + } + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodePool = "" + } else { + x.NodePool = (string)(r.DecodeString()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Multiregion != nil { + x.Multiregion = nil + } + } else { + if x.Multiregion == nil { + x.Multiregion = new(Multiregion) + } + + x.Multiregion.CodecDecodeSelf(d) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Priority = 0 + } else { + x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Periodic = false + } else { + x.Periodic = (bool)(r.DecodeBool()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ParameterizedJob = false + } else { + x.ParameterizedJob = (bool)(r.DecodeBool()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Stop = false + } else { + x.Stop = (bool)(r.DecodeBool()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.StatusDescription = "" + } else { + x.StatusDescription = (string)(r.DecodeString()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.JobSummary != nil { + x.JobSummary = nil + } + } else { + if x.JobSummary == nil { + x.JobSummary = new(JobSummary) + } + + x.JobSummary.CodecDecodeSelf(d) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SubmitTime = 0 + } else { + x.SubmitTime = (int64)(r.DecodeInt64()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Meta), d) + } + } + for { + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj26-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobSummary) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Summary == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringTaskGroupSummary((map[string]TaskGroupSummary)(x.Summary), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Summary\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Summary`) + } + r.WriteMapElemValue() + if x.Summary == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringTaskGroupSummary((map[string]TaskGroupSummary)(x.Summary), e) + } + } + } + var yyn12 bool + if x.Children == nil { + yyn12 = true + goto LABEL12 + } + LABEL12: + if yyr2 || yy2arr2 { + if yyn12 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Children == nil { + r.EncodeNil() + } else { + x.Children.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Children\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Children`) + } + r.WriteMapElemValue() + if yyn12 { + r.EncodeNil() + } else { + if x.Children == nil { + r.EncodeNil() + } else { + x.Children.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobSummary) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobSummary) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "Summary": + if r.TryDecodeAsNil() { + x.Summary = nil + } else { + if false { + } else { + h.decMapstringTaskGroupSummary((*map[string]TaskGroupSummary)(&x.Summary), d) + } + } + case "Children": + if r.TryDecodeAsNil() { + if true && x.Children != nil { + x.Children = nil + } + } else { + if x.Children == nil { + x.Children = new(JobChildrenSummary) + } + + x.Children.CodecDecodeSelf(d) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobSummary) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Summary = nil + } else { + if false { + } else { + h.decMapstringTaskGroupSummary((*map[string]TaskGroupSummary)(&x.Summary), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Children != nil { + x.Children = nil + } + } else { + if x.Children == nil { + x.Children = new(JobChildrenSummary) + } + + x.Children.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobChildrenSummary) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Pending)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Pending\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Pending`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Pending)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Running)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Running\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Running`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Running)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Dead)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Dead\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Dead`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Dead)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobChildrenSummary) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobChildrenSummary) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Pending": + if r.TryDecodeAsNil() { + x.Pending = 0 + } else { + x.Pending = (int64)(r.DecodeInt64()) + } + case "Running": + if r.TryDecodeAsNil() { + x.Running = 0 + } else { + x.Running = (int64)(r.DecodeInt64()) + } + case "Dead": + if r.TryDecodeAsNil() { + x.Dead = 0 + } else { + x.Dead = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobChildrenSummary) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Pending = 0 + } else { + x.Pending = (int64)(r.DecodeInt64()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Running = 0 + } else { + x.Running = (int64)(r.DecodeInt64()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Dead = 0 + } else { + x.Dead = (int64)(r.DecodeInt64()) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *TaskGroupSummary) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Queued)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Queued\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Queued`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Queued)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Complete)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Complete\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Complete`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Complete)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Failed)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Failed\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Failed`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Failed)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Running)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Running\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Running`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Running)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Starting)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Starting\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Starting`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Starting)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Lost)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Lost\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Lost`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Lost)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Unknown)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Unknown\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Unknown`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Unknown)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *TaskGroupSummary) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *TaskGroupSummary) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Queued": + if r.TryDecodeAsNil() { + x.Queued = 0 + } else { + x.Queued = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Complete": + if r.TryDecodeAsNil() { + x.Complete = 0 + } else { + x.Complete = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Failed": + if r.TryDecodeAsNil() { + x.Failed = 0 + } else { + x.Failed = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Running": + if r.TryDecodeAsNil() { + x.Running = 0 + } else { + x.Running = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Starting": + if r.TryDecodeAsNil() { + x.Starting = 0 + } else { + x.Starting = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Lost": + if r.TryDecodeAsNil() { + x.Lost = 0 + } else { + x.Lost = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Unknown": + if r.TryDecodeAsNil() { + x.Unknown = 0 + } else { + x.Unknown = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *TaskGroupSummary) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Queued = 0 + } else { + x.Queued = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Complete = 0 + } else { + x.Complete = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Failed = 0 + } else { + x.Failed = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Running = 0 + } else { + x.Running = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Starting = 0 + } else { + x.Starting = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Lost = 0 + } else { + x.Lost = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Unknown = 0 + } else { + x.Unknown = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *UpdateStrategy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt4 := z.Extension(z.I2Rtid(x.Stagger)); yyxt4 != nil { + z.EncExtension(x.Stagger, yyxt4) + } else { + r.EncodeInt(int64(x.Stagger)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Stagger\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Stagger`) + } + r.WriteMapElemValue() + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.Stagger)); yyxt5 != nil { + z.EncExtension(x.Stagger, yyxt5) + } else { + r.EncodeInt(int64(x.Stagger)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.MaxParallel)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxParallel\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxParallel`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.MaxParallel)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.HealthCheck))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthCheck)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HealthCheck\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HealthCheck`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.HealthCheck))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthCheck)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MinHealthyTime)); yyxt13 != nil { + z.EncExtension(x.MinHealthyTime, yyxt13) + } else { + r.EncodeInt(int64(x.MinHealthyTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinHealthyTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinHealthyTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MinHealthyTime)); yyxt14 != nil { + z.EncExtension(x.MinHealthyTime, yyxt14) + } else { + r.EncodeInt(int64(x.MinHealthyTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.HealthyDeadline)); yyxt16 != nil { + z.EncExtension(x.HealthyDeadline, yyxt16) + } else { + r.EncodeInt(int64(x.HealthyDeadline)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HealthyDeadline\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HealthyDeadline`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.HealthyDeadline)); yyxt17 != nil { + z.EncExtension(x.HealthyDeadline, yyxt17) + } else { + r.EncodeInt(int64(x.HealthyDeadline)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.ProgressDeadline)); yyxt19 != nil { + z.EncExtension(x.ProgressDeadline, yyxt19) + } else { + r.EncodeInt(int64(x.ProgressDeadline)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ProgressDeadline\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ProgressDeadline`) + } + r.WriteMapElemValue() + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.ProgressDeadline)); yyxt20 != nil { + z.EncExtension(x.ProgressDeadline, yyxt20) + } else { + r.EncodeInt(int64(x.ProgressDeadline)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AutoRevert)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AutoRevert\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AutoRevert`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AutoRevert)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AutoPromote)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AutoPromote\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AutoPromote`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AutoPromote)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Canary)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Canary\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Canary`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Canary)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *UpdateStrategy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *UpdateStrategy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Stagger": + if r.TryDecodeAsNil() { + x.Stagger = 0 + } else { + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.Stagger)); yyxt5 != nil { + z.DecExtension(x.Stagger, yyxt5) + } else { + x.Stagger = (time.Duration)(r.DecodeInt64()) + } + } + case "MaxParallel": + if r.TryDecodeAsNil() { + x.MaxParallel = 0 + } else { + x.MaxParallel = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "HealthCheck": + if r.TryDecodeAsNil() { + x.HealthCheck = "" + } else { + x.HealthCheck = (string)(r.DecodeString()) + } + case "MinHealthyTime": + if r.TryDecodeAsNil() { + x.MinHealthyTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MinHealthyTime)); yyxt9 != nil { + z.DecExtension(x.MinHealthyTime, yyxt9) + } else { + x.MinHealthyTime = (time.Duration)(r.DecodeInt64()) + } + } + case "HealthyDeadline": + if r.TryDecodeAsNil() { + x.HealthyDeadline = 0 + } else { + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.HealthyDeadline)); yyxt11 != nil { + z.DecExtension(x.HealthyDeadline, yyxt11) + } else { + x.HealthyDeadline = (time.Duration)(r.DecodeInt64()) + } + } + case "ProgressDeadline": + if r.TryDecodeAsNil() { + x.ProgressDeadline = 0 + } else { + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.ProgressDeadline)); yyxt13 != nil { + z.DecExtension(x.ProgressDeadline, yyxt13) + } else { + x.ProgressDeadline = (time.Duration)(r.DecodeInt64()) + } + } + case "AutoRevert": + if r.TryDecodeAsNil() { + x.AutoRevert = false + } else { + x.AutoRevert = (bool)(r.DecodeBool()) + } + case "AutoPromote": + if r.TryDecodeAsNil() { + x.AutoPromote = false + } else { + x.AutoPromote = (bool)(r.DecodeBool()) + } + case "Canary": + if r.TryDecodeAsNil() { + x.Canary = 0 + } else { + x.Canary = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *UpdateStrategy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Stagger = 0 + } else { + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.Stagger)); yyxt19 != nil { + z.DecExtension(x.Stagger, yyxt19) + } else { + x.Stagger = (time.Duration)(r.DecodeInt64()) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MaxParallel = 0 + } else { + x.MaxParallel = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HealthCheck = "" + } else { + x.HealthCheck = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MinHealthyTime = 0 + } else { + if false { + } else if yyxt23 := z.Extension(z.I2Rtid(x.MinHealthyTime)); yyxt23 != nil { + z.DecExtension(x.MinHealthyTime, yyxt23) + } else { + x.MinHealthyTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HealthyDeadline = 0 + } else { + if false { + } else if yyxt25 := z.Extension(z.I2Rtid(x.HealthyDeadline)); yyxt25 != nil { + z.DecExtension(x.HealthyDeadline, yyxt25) + } else { + x.HealthyDeadline = (time.Duration)(r.DecodeInt64()) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ProgressDeadline = 0 + } else { + if false { + } else if yyxt27 := z.Extension(z.I2Rtid(x.ProgressDeadline)); yyxt27 != nil { + z.DecExtension(x.ProgressDeadline, yyxt27) + } else { + x.ProgressDeadline = (time.Duration)(r.DecodeInt64()) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AutoRevert = false + } else { + x.AutoRevert = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AutoPromote = false + } else { + x.AutoPromote = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Canary = 0 + } else { + x.Canary = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } + r.ReadArrayEnd() +} + +func (x *Multiregion) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + var yyn3 bool + if x.Strategy == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Strategy == nil { + r.EncodeNil() + } else { + x.Strategy.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Strategy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Strategy`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Strategy == nil { + r.EncodeNil() + } else { + x.Strategy.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Regions == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoMultiregionRegion(([]*MultiregionRegion)(x.Regions), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Regions\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Regions`) + } + r.WriteMapElemValue() + if x.Regions == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoMultiregionRegion(([]*MultiregionRegion)(x.Regions), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Multiregion) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Multiregion) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Strategy": + if r.TryDecodeAsNil() { + if true && x.Strategy != nil { + x.Strategy = nil + } + } else { + if x.Strategy == nil { + x.Strategy = new(MultiregionStrategy) + } + + x.Strategy.CodecDecodeSelf(d) + } + case "Regions": + if r.TryDecodeAsNil() { + x.Regions = nil + } else { + if false { + } else { + h.decSlicePtrtoMultiregionRegion((*[]*MultiregionRegion)(&x.Regions), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Multiregion) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Strategy != nil { + x.Strategy = nil + } + } else { + if x.Strategy == nil { + x.Strategy = new(MultiregionStrategy) + } + + x.Strategy.CodecDecodeSelf(d) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Regions = nil + } else { + if false { + } else { + h.decSlicePtrtoMultiregionRegion((*[]*MultiregionRegion)(&x.Regions), d) + } + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *MultiregionStrategy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.MaxParallel)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxParallel\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxParallel`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.MaxParallel)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.OnFailure))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.OnFailure)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"OnFailure\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `OnFailure`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.OnFailure))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.OnFailure)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *MultiregionStrategy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *MultiregionStrategy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "MaxParallel": + if r.TryDecodeAsNil() { + x.MaxParallel = 0 + } else { + x.MaxParallel = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "OnFailure": + if r.TryDecodeAsNil() { + x.OnFailure = "" + } else { + x.OnFailure = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *MultiregionStrategy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MaxParallel = 0 + } else { + x.MaxParallel = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.OnFailure = "" + } else { + x.OnFailure = (string)(r.DecodeString()) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *MultiregionRegion) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Count)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Count\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Count`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Count)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Datacenters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Datacenters), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Datacenters\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Datacenters`) + } + r.WriteMapElemValue() + if x.Datacenters == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Datacenters), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodePool))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodePool)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodePool\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodePool`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodePool))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodePool)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Meta), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Meta\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) + } + r.WriteMapElemValue() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Meta), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *MultiregionRegion) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *MultiregionRegion) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Count": + if r.TryDecodeAsNil() { + x.Count = 0 + } else { + x.Count = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Datacenters": + if r.TryDecodeAsNil() { + x.Datacenters = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Datacenters), d) + } + } + case "NodePool": + if r.TryDecodeAsNil() { + x.NodePool = "" + } else { + x.NodePool = (string)(r.DecodeString()) + } + case "Meta": + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Meta), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *MultiregionRegion) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Count = 0 + } else { + x.Count = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Datacenters = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Datacenters), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodePool = "" + } else { + x.NodePool = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Meta), d) + } + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *Namespace) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(11) + } else { + r.WriteMapStart(11) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Description\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Description`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Quota))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Quota)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Quota\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Quota`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Quota))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Quota)) + } + } + } + var yyn12 bool + if x.Capabilities == nil { + yyn12 = true + goto LABEL12 + } + LABEL12: + if yyr2 || yy2arr2 { + if yyn12 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Capabilities == nil { + r.EncodeNil() + } else { + x.Capabilities.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Capabilities\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Capabilities`) + } + r.WriteMapElemValue() + if yyn12 { + r.EncodeNil() + } else { + if x.Capabilities == nil { + r.EncodeNil() + } else { + x.Capabilities.CodecEncodeSelf(e) + } + } + } + var yyn15 bool + if x.NodePoolConfiguration == nil { + yyn15 = true + goto LABEL15 + } + LABEL15: + if yyr2 || yy2arr2 { + if yyn15 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.NodePoolConfiguration == nil { + r.EncodeNil() + } else { + x.NodePoolConfiguration.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodePoolConfiguration\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodePoolConfiguration`) + } + r.WriteMapElemValue() + if yyn15 { + r.EncodeNil() + } else { + if x.NodePoolConfiguration == nil { + r.EncodeNil() + } else { + x.NodePoolConfiguration.CodecEncodeSelf(e) + } + } + } + var yyn18 bool + if x.VaultConfiguration == nil { + yyn18 = true + goto LABEL18 + } + LABEL18: + if yyr2 || yy2arr2 { + if yyn18 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.VaultConfiguration == nil { + r.EncodeNil() + } else { + x.VaultConfiguration.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VaultConfiguration\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `VaultConfiguration`) + } + r.WriteMapElemValue() + if yyn18 { + r.EncodeNil() + } else { + if x.VaultConfiguration == nil { + r.EncodeNil() + } else { + x.VaultConfiguration.CodecEncodeSelf(e) + } + } + } + var yyn21 bool + if x.ConsulConfiguration == nil { + yyn21 = true + goto LABEL21 + } + LABEL21: + if yyr2 || yy2arr2 { + if yyn21 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ConsulConfiguration == nil { + r.EncodeNil() + } else { + x.ConsulConfiguration.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ConsulConfiguration\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ConsulConfiguration`) + } + r.WriteMapElemValue() + if yyn21 { + r.EncodeNil() + } else { + if x.ConsulConfiguration == nil { + r.EncodeNil() + } else { + x.ConsulConfiguration.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Meta), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Meta\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) + } + r.WriteMapElemValue() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Meta), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Hash\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Hash`) + } + r.WriteMapElemValue() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Namespace) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Namespace) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Description": + if r.TryDecodeAsNil() { + x.Description = "" + } else { + x.Description = (string)(r.DecodeString()) + } + case "Quota": + if r.TryDecodeAsNil() { + x.Quota = "" + } else { + x.Quota = (string)(r.DecodeString()) + } + case "Capabilities": + if r.TryDecodeAsNil() { + if true && x.Capabilities != nil { + x.Capabilities = nil + } + } else { + if x.Capabilities == nil { + x.Capabilities = new(NamespaceCapabilities) + } + + x.Capabilities.CodecDecodeSelf(d) + } + case "NodePoolConfiguration": + if r.TryDecodeAsNil() { + if true && x.NodePoolConfiguration != nil { + x.NodePoolConfiguration = nil + } + } else { + if x.NodePoolConfiguration == nil { + x.NodePoolConfiguration = new(NamespaceNodePoolConfiguration) + } + + x.NodePoolConfiguration.CodecDecodeSelf(d) + } + case "VaultConfiguration": + if r.TryDecodeAsNil() { + if true && x.VaultConfiguration != nil { + x.VaultConfiguration = nil + } + } else { + if x.VaultConfiguration == nil { + x.VaultConfiguration = new(NamespaceVaultConfiguration) + } + + x.VaultConfiguration.CodecDecodeSelf(d) + } + case "ConsulConfiguration": + if r.TryDecodeAsNil() { + if true && x.ConsulConfiguration != nil { + x.ConsulConfiguration = nil + } + } else { + if x.ConsulConfiguration == nil { + x.ConsulConfiguration = new(NamespaceConsulConfiguration) + } + + x.ConsulConfiguration.CodecDecodeSelf(d) + } + case "Meta": + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Meta), d) + } + } + case "Hash": + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Description = "" + } else { + x.Description = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Quota = "" + } else { + x.Quota = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Capabilities != nil { + x.Capabilities = nil + } + } else { + if x.Capabilities == nil { + x.Capabilities = new(NamespaceCapabilities) + } + + x.Capabilities.CodecDecodeSelf(d) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.NodePoolConfiguration != nil { + x.NodePoolConfiguration = nil + } + } else { + if x.NodePoolConfiguration == nil { + x.NodePoolConfiguration = new(NamespaceNodePoolConfiguration) + } + + x.NodePoolConfiguration.CodecDecodeSelf(d) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.VaultConfiguration != nil { + x.VaultConfiguration = nil + } + } else { + if x.VaultConfiguration == nil { + x.VaultConfiguration = new(NamespaceVaultConfiguration) + } + + x.VaultConfiguration.CodecDecodeSelf(d) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ConsulConfiguration != nil { + x.ConsulConfiguration = nil + } + } else { + if x.ConsulConfiguration == nil { + x.ConsulConfiguration = new(NamespaceConsulConfiguration) + } + + x.ConsulConfiguration.CodecDecodeSelf(d) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Meta), d) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } + r.ReadArrayEnd() +} + +func (x *NamespaceCapabilities) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.EnabledTaskDrivers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.EnabledTaskDrivers), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EnabledTaskDrivers\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EnabledTaskDrivers`) + } + r.WriteMapElemValue() + if x.EnabledTaskDrivers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.EnabledTaskDrivers), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.DisabledTaskDrivers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.DisabledTaskDrivers), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DisabledTaskDrivers\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DisabledTaskDrivers`) + } + r.WriteMapElemValue() + if x.DisabledTaskDrivers == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.DisabledTaskDrivers), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.EnabledNetworkModes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.EnabledNetworkModes), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EnabledNetworkModes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EnabledNetworkModes`) + } + r.WriteMapElemValue() + if x.EnabledNetworkModes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.EnabledNetworkModes), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.DisabledNetworkModes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.DisabledNetworkModes), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DisabledNetworkModes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DisabledNetworkModes`) + } + r.WriteMapElemValue() + if x.DisabledNetworkModes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.DisabledNetworkModes), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NamespaceCapabilities) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NamespaceCapabilities) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "EnabledTaskDrivers": + if r.TryDecodeAsNil() { + x.EnabledTaskDrivers = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.EnabledTaskDrivers), d) + } + } + case "DisabledTaskDrivers": + if r.TryDecodeAsNil() { + x.DisabledTaskDrivers = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.DisabledTaskDrivers), d) + } + } + case "EnabledNetworkModes": + if r.TryDecodeAsNil() { + x.EnabledNetworkModes = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.EnabledNetworkModes), d) + } + } + case "DisabledNetworkModes": + if r.TryDecodeAsNil() { + x.DisabledNetworkModes = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.DisabledNetworkModes), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NamespaceCapabilities) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EnabledTaskDrivers = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.EnabledTaskDrivers), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DisabledTaskDrivers = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.DisabledTaskDrivers), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EnabledNetworkModes = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.EnabledNetworkModes), d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DisabledNetworkModes = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.DisabledNetworkModes), d) + } + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *NamespaceNodePoolConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Default))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Default)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Default\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Default`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Default))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Default)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Allowed == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Allowed), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Allowed\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Allowed`) + } + r.WriteMapElemValue() + if x.Allowed == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Allowed), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Denied == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Denied), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Denied\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Denied`) + } + r.WriteMapElemValue() + if x.Denied == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Denied), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NamespaceNodePoolConfiguration) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NamespaceNodePoolConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Default": + if r.TryDecodeAsNil() { + x.Default = "" + } else { + x.Default = (string)(r.DecodeString()) + } + case "Allowed": + if r.TryDecodeAsNil() { + x.Allowed = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Allowed), d) + } + } + case "Denied": + if r.TryDecodeAsNil() { + x.Denied = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Denied), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NamespaceNodePoolConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Default = "" + } else { + x.Default = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Allowed = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Allowed), d) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Denied = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Denied), d) + } + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *NamespaceListRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(12) + } else { + r.WriteMapStart(12) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.EncExtension(x.MaxQueryTime, yyxt13) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { + z.EncExtension(x.MaxQueryTime, yyxt14) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NamespaceListRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NamespaceListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { + z.DecExtension(x.MaxQueryTime, yyxt8) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NamespaceListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { + z.DecExtension(x.MaxQueryTime, yyxt22) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } + r.ReadArrayEnd() +} + +func (x *NamespaceListResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Namespaces == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNamespace(([]*Namespace)(x.Namespaces), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespaces\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespaces`) + } + r.WriteMapElemValue() + if x.Namespaces == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNamespace(([]*Namespace)(x.Namespaces), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NamespaceListResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NamespaceListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Namespaces": + if r.TryDecodeAsNil() { + x.Namespaces = nil + } else { + if false { + } else { + h.decSlicePtrtoNamespace((*[]*Namespace)(&x.Namespaces), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NamespaceListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespaces = nil + } else { + if false { + } else { + h.decSlicePtrtoNamespace((*[]*Namespace)(&x.Namespaces), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *NamespaceSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NamespaceSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NamespaceSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NamespaceSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt24 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt24 != nil { + z.DecExtension(x.MaxQueryTime, yyxt24) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *SingleNamespaceResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + var yyn3 bool + if x.Namespace == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Namespace == nil { + r.EncodeNil() + } else { + x.Namespace.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Namespace == nil { + r.EncodeNil() + } else { + x.Namespace.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SingleNamespaceResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SingleNamespaceResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Namespace": + if r.TryDecodeAsNil() { + if true && x.Namespace != nil { + x.Namespace = nil + } + } else { + if x.Namespace == nil { + x.Namespace = new(Namespace) + } + + x.Namespace.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SingleNamespaceResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Namespace != nil { + x.Namespace = nil + } + } else { + if x.Namespace == nil { + x.Namespace = new(Namespace) + } + + x.Namespace.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.DecExtension(x.LastContact, yyxt14) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *NamespaceSetRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Namespaces == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Namespaces), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespaces\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespaces`) + } + r.WriteMapElemValue() + if x.Namespaces == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Namespaces), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NamespaceSetRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NamespaceSetRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Namespaces": + if r.TryDecodeAsNil() { + x.Namespaces = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Namespaces), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NamespaceSetRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj19 int + var yyb19 bool + var yyhl19 bool = l >= 0 + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespaces = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Namespaces), d) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { + z.DecExtension(x.MaxQueryTime, yyxt26) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj19-1, "") + } + r.ReadArrayEnd() +} + +func (x *NamespaceSetResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Namespaces == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoNamespace((map[string]*Namespace)(x.Namespaces), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespaces\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespaces`) + } + r.WriteMapElemValue() + if x.Namespaces == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoNamespace((map[string]*Namespace)(x.Namespaces), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NamespaceSetResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NamespaceSetResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Namespaces": + if r.TryDecodeAsNil() { + x.Namespaces = nil + } else { + if false { + } else { + h.decMapstringPtrtoNamespace((*map[string]*Namespace)(&x.Namespaces), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NamespaceSetResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespaces = nil + } else { + if false { + } else { + h.decMapstringPtrtoNamespace((*map[string]*Namespace)(&x.Namespaces), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *NamespaceDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Namespaces == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Namespaces), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespaces\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespaces`) + } + r.WriteMapElemValue() + if x.Namespaces == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Namespaces), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NamespaceDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NamespaceDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Namespaces": + if r.TryDecodeAsNil() { + x.Namespaces = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Namespaces), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NamespaceDeleteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespaces = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Namespaces), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *NamespaceUpsertRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Namespaces == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNamespace(([]*Namespace)(x.Namespaces), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespaces\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespaces`) + } + r.WriteMapElemValue() + if x.Namespaces == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNamespace(([]*Namespace)(x.Namespaces), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NamespaceUpsertRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NamespaceUpsertRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Namespaces": + if r.TryDecodeAsNil() { + x.Namespaces = nil + } else { + if false { + } else { + h.decSlicePtrtoNamespace((*[]*Namespace)(&x.Namespaces), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NamespaceUpsertRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespaces = nil + } else { + if false { + } else { + h.decSlicePtrtoNamespace((*[]*Namespace)(&x.Namespaces), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *PeriodicConfig) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Enabled)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Enabled\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Enabled`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Enabled)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Spec))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Spec)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Spec\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Spec`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Spec))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Spec)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Specs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Specs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Specs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Specs`) + } + r.WriteMapElemValue() + if x.Specs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Specs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SpecType))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SpecType)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SpecType\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SpecType`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SpecType))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SpecType)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.ProhibitOverlap)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ProhibitOverlap\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ProhibitOverlap`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.ProhibitOverlap)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TimeZone))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TimeZone)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TimeZone\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TimeZone`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TimeZone))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TimeZone)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *PeriodicConfig) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *PeriodicConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Enabled": + if r.TryDecodeAsNil() { + x.Enabled = false + } else { + x.Enabled = (bool)(r.DecodeBool()) + } + case "Spec": + if r.TryDecodeAsNil() { + x.Spec = "" + } else { + x.Spec = (string)(r.DecodeString()) + } + case "Specs": + if r.TryDecodeAsNil() { + x.Specs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Specs), d) + } + } + case "SpecType": + if r.TryDecodeAsNil() { + x.SpecType = "" + } else { + x.SpecType = (string)(r.DecodeString()) + } + case "ProhibitOverlap": + if r.TryDecodeAsNil() { + x.ProhibitOverlap = false + } else { + x.ProhibitOverlap = (bool)(r.DecodeBool()) + } + case "TimeZone": + if r.TryDecodeAsNil() { + x.TimeZone = "" + } else { + x.TimeZone = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *PeriodicConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Enabled = false + } else { + x.Enabled = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Spec = "" + } else { + x.Spec = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Specs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Specs), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SpecType = "" + } else { + x.SpecType = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ProhibitOverlap = false + } else { + x.ProhibitOverlap = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TimeZone = "" + } else { + x.TimeZone = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *PeriodicLaunch) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.Launch) + } else if yyxt10 := z.Extension(z.I2Rtid(x.Launch)); yyxt10 != nil { + z.EncExtension(x.Launch, yyxt10) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Launch) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.Launch) + } else { + z.EncFallback(x.Launch) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Launch\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Launch`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.Launch) + } else if yyxt11 := z.Extension(z.I2Rtid(x.Launch)); yyxt11 != nil { + z.EncExtension(x.Launch, yyxt11) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Launch) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.Launch) + } else { + z.EncFallback(x.Launch) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *PeriodicLaunch) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *PeriodicLaunch) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "Launch": + if r.TryDecodeAsNil() { + x.Launch = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.Launch = r.DecodeTime() + } else if yyxt7 := z.Extension(z.I2Rtid(x.Launch)); yyxt7 != nil { + z.DecExtension(x.Launch, yyxt7) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Launch) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.Launch) + } else { + z.DecFallback(&x.Launch, false) + } + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *PeriodicLaunch) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Launch = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.Launch = r.DecodeTime() + } else if yyxt14 := z.Extension(z.I2Rtid(x.Launch)); yyxt14 != nil { + z.DecExtension(x.Launch, yyxt14) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Launch) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.Launch) + } else { + z.DecFallback(&x.Launch, false) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *ParameterizedJobConfig) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Payload))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Payload)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Payload\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Payload`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Payload))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Payload)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.MetaRequired == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.MetaRequired), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MetaRequired\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MetaRequired`) + } + r.WriteMapElemValue() + if x.MetaRequired == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.MetaRequired), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.MetaOptional == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.MetaOptional), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MetaOptional\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MetaOptional`) + } + r.WriteMapElemValue() + if x.MetaOptional == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.MetaOptional), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ParameterizedJobConfig) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ParameterizedJobConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Payload": + if r.TryDecodeAsNil() { + x.Payload = "" + } else { + x.Payload = (string)(r.DecodeString()) + } + case "MetaRequired": + if r.TryDecodeAsNil() { + x.MetaRequired = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.MetaRequired), d) + } + } + case "MetaOptional": + if r.TryDecodeAsNil() { + x.MetaOptional = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.MetaOptional), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ParameterizedJobConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Payload = "" + } else { + x.Payload = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MetaRequired = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.MetaRequired), d) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MetaOptional = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.MetaOptional), d) + } + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *DispatchPayloadConfig) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.File))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.File)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"File\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `File`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.File))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.File)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DispatchPayloadConfig) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DispatchPayloadConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "File": + if r.TryDecodeAsNil() { + x.File = "" + } else { + x.File = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DispatchPayloadConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.File = "" + } else { + x.File = (string)(r.DecodeString()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *TaskLifecycleConfig) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Hook))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Hook)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Hook\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Hook`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Hook))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Hook)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Sidecar)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Sidecar\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Sidecar`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Sidecar)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *TaskLifecycleConfig) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *TaskLifecycleConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Hook": + if r.TryDecodeAsNil() { + x.Hook = "" + } else { + x.Hook = (string)(r.DecodeString()) + } + case "Sidecar": + if r.TryDecodeAsNil() { + x.Sidecar = false + } else { + x.Sidecar = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *TaskLifecycleConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Hook = "" + } else { + x.Hook = (string)(r.DecodeString()) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Sidecar = false + } else { + x.Sidecar = (bool)(r.DecodeBool()) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobScalingEvents) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ScalingEvents == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicePtrtoScalingEvent((map[string][]*ScalingEvent)(x.ScalingEvents), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ScalingEvents\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ScalingEvents`) + } + r.WriteMapElemValue() + if x.ScalingEvents == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicePtrtoScalingEvent((map[string][]*ScalingEvent)(x.ScalingEvents), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobScalingEvents) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobScalingEvents) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "ScalingEvents": + if r.TryDecodeAsNil() { + x.ScalingEvents = nil + } else { + if false { + } else { + h.decMapstringSlicePtrtoScalingEvent((*map[string][]*ScalingEvent)(&x.ScalingEvents), d) + } + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobScalingEvents) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ScalingEvents = nil + } else { + if false { + } else { + h.decMapstringSlicePtrtoScalingEvent((*map[string][]*ScalingEvent)(&x.ScalingEvents), d) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *ScalingEvent) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Time)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Time\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Time`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Time)) + } + } + var yyn6 bool + if x.Count == nil { + yyn6 = true + goto LABEL6 + } + LABEL6: + if yyr2 || yy2arr2 { + if yyn6 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Count == nil { + r.EncodeNil() + } else { + yy7 := *x.Count + if false { + } else { + r.EncodeInt(int64(yy7)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Count\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Count`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.Count == nil { + r.EncodeNil() + } else { + yy9 := *x.Count + if false { + } else { + r.EncodeInt(int64(yy9)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PreviousCount)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PreviousCount\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PreviousCount`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PreviousCount)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Message)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Message\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Message`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Message)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Error)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Error\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Error`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Error)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringInterface((map[string]interface{})(x.Meta), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Meta\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) + } + r.WriteMapElemValue() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringInterface((map[string]interface{})(x.Meta), e) + } + } + } + var yyn23 bool + if x.EvalID == nil { + yyn23 = true + goto LABEL23 + } + LABEL23: + if yyr2 || yy2arr2 { + if yyn23 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.EvalID == nil { + r.EncodeNil() + } else { + yy24 := *x.EvalID + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yy24))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yy24)) + } + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) + } + r.WriteMapElemValue() + if yyn23 { + r.EncodeNil() + } else { + if x.EvalID == nil { + r.EncodeNil() + } else { + yy26 := *x.EvalID + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yy26))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yy26)) + } + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ScalingEvent) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ScalingEvent) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Time": + if r.TryDecodeAsNil() { + x.Time = 0 + } else { + x.Time = (int64)(r.DecodeInt64()) + } + case "Count": + if r.TryDecodeAsNil() { + if true && x.Count != nil { + x.Count = nil + } + } else { + if x.Count == nil { + x.Count = new(int64) + } + + if false { + } else { + *x.Count = (int64)(r.DecodeInt64()) + } + } + case "PreviousCount": + if r.TryDecodeAsNil() { + x.PreviousCount = 0 + } else { + x.PreviousCount = (int64)(r.DecodeInt64()) + } + case "Message": + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = (string)(r.DecodeString()) + } + case "Error": + if r.TryDecodeAsNil() { + x.Error = false + } else { + x.Error = (bool)(r.DecodeBool()) + } + case "Meta": + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringInterface((*map[string]interface{})(&x.Meta), d) + } + } + case "EvalID": + if r.TryDecodeAsNil() { + if true && x.EvalID != nil { + x.EvalID = nil + } + } else { + if x.EvalID == nil { + x.EvalID = new(string) + } + + if false { + } else { + *x.EvalID = (string)(r.DecodeString()) + } + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ScalingEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj15 int + var yyb15 bool + var yyhl15 bool = l >= 0 + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Time = 0 + } else { + x.Time = (int64)(r.DecodeInt64()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Count != nil { + x.Count = nil + } + } else { + if x.Count == nil { + x.Count = new(int64) + } + + if false { + } else { + *x.Count = (int64)(r.DecodeInt64()) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PreviousCount = 0 + } else { + x.PreviousCount = (int64)(r.DecodeInt64()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Error = false + } else { + x.Error = (bool)(r.DecodeBool()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringInterface((*map[string]interface{})(&x.Meta), d) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.EvalID != nil { + x.EvalID = nil + } + } else { + if x.EvalID == nil { + x.EvalID = new(string) + } + + if false { + } else { + *x.EvalID = (string)(r.DecodeString()) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj15-1, "") + } + r.ReadArrayEnd() +} + +func (x *ScalingEventRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroup))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroup)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskGroup\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroup`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroup))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroup)) + } + } + } + var yyn12 bool + if x.ScalingEvent == nil { + yyn12 = true + goto LABEL12 + } + LABEL12: + if yyr2 || yy2arr2 { + if yyn12 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ScalingEvent == nil { + r.EncodeNil() + } else { + x.ScalingEvent.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ScalingEvent\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ScalingEvent`) + } + r.WriteMapElemValue() + if yyn12 { + r.EncodeNil() + } else { + if x.ScalingEvent == nil { + r.EncodeNil() + } else { + x.ScalingEvent.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ScalingEventRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ScalingEventRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "TaskGroup": + if r.TryDecodeAsNil() { + x.TaskGroup = "" + } else { + x.TaskGroup = (string)(r.DecodeString()) + } + case "ScalingEvent": + if r.TryDecodeAsNil() { + if true && x.ScalingEvent != nil { + x.ScalingEvent = nil + } + } else { + if x.ScalingEvent == nil { + x.ScalingEvent = new(ScalingEvent) + } + + x.ScalingEvent.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ScalingEventRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskGroup = "" + } else { + x.TaskGroup = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ScalingEvent != nil { + x.ScalingEvent = nil + } + } else { + if x.ScalingEvent == nil { + x.ScalingEvent = new(ScalingEvent) + } + + x.ScalingEvent.CodecDecodeSelf(d) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *ScalingPolicy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Target == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Target), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Target\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Target`) + } + r.WriteMapElemValue() + if x.Target == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Target), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Policy == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringInterface((map[string]interface{})(x.Policy), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Policy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Policy`) + } + r.WriteMapElemValue() + if x.Policy == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringInterface((map[string]interface{})(x.Policy), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Min)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Min\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Min`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Min)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Max)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Max\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Max`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Max)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Enabled)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Enabled\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Enabled`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Enabled)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ScalingPolicy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ScalingPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + case "Target": + if r.TryDecodeAsNil() { + x.Target = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Target), d) + } + } + case "Policy": + if r.TryDecodeAsNil() { + x.Policy = nil + } else { + if false { + } else { + h.decMapstringInterface((*map[string]interface{})(&x.Policy), d) + } + } + case "Min": + if r.TryDecodeAsNil() { + x.Min = 0 + } else { + x.Min = (int64)(r.DecodeInt64()) + } + case "Max": + if r.TryDecodeAsNil() { + x.Max = 0 + } else { + x.Max = (int64)(r.DecodeInt64()) + } + case "Enabled": + if r.TryDecodeAsNil() { + x.Enabled = false + } else { + x.Enabled = (bool)(r.DecodeBool()) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ScalingPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj15 int + var yyb15 bool + var yyhl15 bool = l >= 0 + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Target = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Target), d) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Policy = nil + } else { + if false { + } else { + h.decMapstringInterface((*map[string]interface{})(&x.Policy), d) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Min = 0 + } else { + x.Min = (int64)(r.DecodeInt64()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Max = 0 + } else { + x.Max = (int64)(r.DecodeInt64()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Enabled = false + } else { + x.Enabled = (bool)(r.DecodeBool()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj15-1, "") + } + r.ReadArrayEnd() +} + +func (x *ScalingPolicyListStub) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Enabled)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Enabled\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Enabled`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Enabled)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Target == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Target), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Target\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Target`) + } + r.WriteMapElemValue() + if x.Target == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Target), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ScalingPolicyListStub) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ScalingPolicyListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Enabled": + if r.TryDecodeAsNil() { + x.Enabled = false + } else { + x.Enabled = (bool)(r.DecodeBool()) + } + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + case "Target": + if r.TryDecodeAsNil() { + x.Target = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Target), d) + } + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ScalingPolicyListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Enabled = false + } else { + x.Enabled = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Target = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Target), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *RestartPolicy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Attempts)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Attempts\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Attempts`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Attempts)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.Interval)); yyxt7 != nil { + z.EncExtension(x.Interval, yyxt7) + } else { + r.EncodeInt(int64(x.Interval)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Interval\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Interval`) + } + r.WriteMapElemValue() + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.Interval)); yyxt8 != nil { + z.EncExtension(x.Interval, yyxt8) + } else { + r.EncodeInt(int64(x.Interval)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.Delay)); yyxt10 != nil { + z.EncExtension(x.Delay, yyxt10) + } else { + r.EncodeInt(int64(x.Delay)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Delay\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Delay`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.Delay)); yyxt11 != nil { + z.EncExtension(x.Delay, yyxt11) + } else { + r.EncodeInt(int64(x.Delay)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Mode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Mode)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Mode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Mode`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Mode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Mode)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.RenderTemplates)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RenderTemplates\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RenderTemplates`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.RenderTemplates)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *RestartPolicy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *RestartPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Attempts": + if r.TryDecodeAsNil() { + x.Attempts = 0 + } else { + x.Attempts = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Interval": + if r.TryDecodeAsNil() { + x.Interval = 0 + } else { + if false { + } else if yyxt6 := z.Extension(z.I2Rtid(x.Interval)); yyxt6 != nil { + z.DecExtension(x.Interval, yyxt6) + } else { + x.Interval = (time.Duration)(r.DecodeInt64()) + } + } + case "Delay": + if r.TryDecodeAsNil() { + x.Delay = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.Delay)); yyxt8 != nil { + z.DecExtension(x.Delay, yyxt8) + } else { + x.Delay = (time.Duration)(r.DecodeInt64()) + } + } + case "Mode": + if r.TryDecodeAsNil() { + x.Mode = "" + } else { + x.Mode = (string)(r.DecodeString()) + } + case "RenderTemplates": + if r.TryDecodeAsNil() { + x.RenderTemplates = false + } else { + x.RenderTemplates = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *RestartPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Attempts = 0 + } else { + x.Attempts = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Interval = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.Interval)); yyxt14 != nil { + z.DecExtension(x.Interval, yyxt14) + } else { + x.Interval = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Delay = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.Delay)); yyxt16 != nil { + z.DecExtension(x.Delay, yyxt16) + } else { + x.Delay = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Mode = "" + } else { + x.Mode = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RenderTemplates = false + } else { + x.RenderTemplates = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *ReschedulePolicy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Attempts)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Attempts\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Attempts`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Attempts)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.Interval)); yyxt7 != nil { + z.EncExtension(x.Interval, yyxt7) + } else { + r.EncodeInt(int64(x.Interval)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Interval\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Interval`) + } + r.WriteMapElemValue() + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.Interval)); yyxt8 != nil { + z.EncExtension(x.Interval, yyxt8) + } else { + r.EncodeInt(int64(x.Interval)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.Delay)); yyxt10 != nil { + z.EncExtension(x.Delay, yyxt10) + } else { + r.EncodeInt(int64(x.Delay)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Delay\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Delay`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.Delay)); yyxt11 != nil { + z.EncExtension(x.Delay, yyxt11) + } else { + r.EncodeInt(int64(x.Delay)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DelayFunction))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DelayFunction)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DelayFunction\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DelayFunction`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DelayFunction))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DelayFunction)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxDelay)); yyxt16 != nil { + z.EncExtension(x.MaxDelay, yyxt16) + } else { + r.EncodeInt(int64(x.MaxDelay)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxDelay\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxDelay`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxDelay)); yyxt17 != nil { + z.EncExtension(x.MaxDelay, yyxt17) + } else { + r.EncodeInt(int64(x.MaxDelay)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Unlimited)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Unlimited\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Unlimited`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Unlimited)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ReschedulePolicy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ReschedulePolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Attempts": + if r.TryDecodeAsNil() { + x.Attempts = 0 + } else { + x.Attempts = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Interval": + if r.TryDecodeAsNil() { + x.Interval = 0 + } else { + if false { + } else if yyxt6 := z.Extension(z.I2Rtid(x.Interval)); yyxt6 != nil { + z.DecExtension(x.Interval, yyxt6) + } else { + x.Interval = (time.Duration)(r.DecodeInt64()) + } + } + case "Delay": + if r.TryDecodeAsNil() { + x.Delay = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.Delay)); yyxt8 != nil { + z.DecExtension(x.Delay, yyxt8) + } else { + x.Delay = (time.Duration)(r.DecodeInt64()) + } + } + case "DelayFunction": + if r.TryDecodeAsNil() { + x.DelayFunction = "" + } else { + x.DelayFunction = (string)(r.DecodeString()) + } + case "MaxDelay": + if r.TryDecodeAsNil() { + x.MaxDelay = 0 + } else { + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.MaxDelay)); yyxt11 != nil { + z.DecExtension(x.MaxDelay, yyxt11) + } else { + x.MaxDelay = (time.Duration)(r.DecodeInt64()) + } + } + case "Unlimited": + if r.TryDecodeAsNil() { + x.Unlimited = false + } else { + x.Unlimited = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ReschedulePolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Attempts = 0 + } else { + x.Attempts = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Interval = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.Interval)); yyxt16 != nil { + z.DecExtension(x.Interval, yyxt16) + } else { + x.Interval = (time.Duration)(r.DecodeInt64()) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Delay = 0 + } else { + if false { + } else if yyxt18 := z.Extension(z.I2Rtid(x.Delay)); yyxt18 != nil { + z.DecExtension(x.Delay, yyxt18) + } else { + x.Delay = (time.Duration)(r.DecodeInt64()) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DelayFunction = "" + } else { + x.DelayFunction = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MaxDelay = 0 + } else { + if false { + } else if yyxt21 := z.Extension(z.I2Rtid(x.MaxDelay)); yyxt21 != nil { + z.DecExtension(x.MaxDelay, yyxt21) + } else { + x.MaxDelay = (time.Duration)(r.DecodeInt64()) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Unlimited = false + } else { + x.Unlimited = (bool)(r.DecodeBool()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *MigrateStrategy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.MaxParallel)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxParallel\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxParallel`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.MaxParallel)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.HealthCheck))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthCheck)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HealthCheck\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HealthCheck`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.HealthCheck))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthCheck)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MinHealthyTime)); yyxt10 != nil { + z.EncExtension(x.MinHealthyTime, yyxt10) + } else { + r.EncodeInt(int64(x.MinHealthyTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinHealthyTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinHealthyTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.MinHealthyTime)); yyxt11 != nil { + z.EncExtension(x.MinHealthyTime, yyxt11) + } else { + r.EncodeInt(int64(x.MinHealthyTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.HealthyDeadline)); yyxt13 != nil { + z.EncExtension(x.HealthyDeadline, yyxt13) + } else { + r.EncodeInt(int64(x.HealthyDeadline)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HealthyDeadline\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HealthyDeadline`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.HealthyDeadline)); yyxt14 != nil { + z.EncExtension(x.HealthyDeadline, yyxt14) + } else { + r.EncodeInt(int64(x.HealthyDeadline)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *MigrateStrategy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *MigrateStrategy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "MaxParallel": + if r.TryDecodeAsNil() { + x.MaxParallel = 0 + } else { + x.MaxParallel = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "HealthCheck": + if r.TryDecodeAsNil() { + x.HealthCheck = "" + } else { + x.HealthCheck = (string)(r.DecodeString()) + } + case "MinHealthyTime": + if r.TryDecodeAsNil() { + x.MinHealthyTime = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.MinHealthyTime)); yyxt7 != nil { + z.DecExtension(x.MinHealthyTime, yyxt7) + } else { + x.MinHealthyTime = (time.Duration)(r.DecodeInt64()) + } + } + case "HealthyDeadline": + if r.TryDecodeAsNil() { + x.HealthyDeadline = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.HealthyDeadline)); yyxt9 != nil { + z.DecExtension(x.HealthyDeadline, yyxt9) + } else { + x.HealthyDeadline = (time.Duration)(r.DecodeInt64()) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *MigrateStrategy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MaxParallel = 0 + } else { + x.MaxParallel = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HealthCheck = "" + } else { + x.HealthCheck = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MinHealthyTime = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MinHealthyTime)); yyxt14 != nil { + z.DecExtension(x.MinHealthyTime, yyxt14) + } else { + x.MinHealthyTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HealthyDeadline = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.HealthyDeadline)); yyxt16 != nil { + z.DecExtension(x.HealthyDeadline, yyxt16) + } else { + x.HealthyDeadline = (time.Duration)(r.DecodeInt64()) + } + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *TaskGroup) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(22) + } else { + r.WriteMapStart(22) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Count)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Count\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Count`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Count)) + } + } + var yyn9 bool + if x.Update == nil { + yyn9 = true + goto LABEL9 + } + LABEL9: + if yyr2 || yy2arr2 { + if yyn9 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Update == nil { + r.EncodeNil() + } else { + x.Update.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Update\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Update`) + } + r.WriteMapElemValue() + if yyn9 { + r.EncodeNil() + } else { + if x.Update == nil { + r.EncodeNil() + } else { + x.Update.CodecEncodeSelf(e) + } + } + } + var yyn12 bool + if x.Migrate == nil { + yyn12 = true + goto LABEL12 + } + LABEL12: + if yyr2 || yy2arr2 { + if yyn12 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Migrate == nil { + r.EncodeNil() + } else { + x.Migrate.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Migrate\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Migrate`) + } + r.WriteMapElemValue() + if yyn12 { + r.EncodeNil() + } else { + if x.Migrate == nil { + r.EncodeNil() + } else { + x.Migrate.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Constraints == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Constraints\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Constraints`) + } + r.WriteMapElemValue() + if x.Constraints == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) + } + } + } + var yyn18 bool + if x.Scaling == nil { + yyn18 = true + goto LABEL18 + } + LABEL18: + if yyr2 || yy2arr2 { + if yyn18 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Scaling == nil { + r.EncodeNil() + } else { + x.Scaling.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Scaling\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Scaling`) + } + r.WriteMapElemValue() + if yyn18 { + r.EncodeNil() + } else { + if x.Scaling == nil { + r.EncodeNil() + } else { + x.Scaling.CodecEncodeSelf(e) + } + } + } + var yyn21 bool + if x.RestartPolicy == nil { + yyn21 = true + goto LABEL21 + } + LABEL21: + if yyr2 || yy2arr2 { + if yyn21 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.RestartPolicy == nil { + r.EncodeNil() + } else { + x.RestartPolicy.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RestartPolicy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RestartPolicy`) + } + r.WriteMapElemValue() + if yyn21 { + r.EncodeNil() + } else { + if x.RestartPolicy == nil { + r.EncodeNil() + } else { + x.RestartPolicy.CodecEncodeSelf(e) + } + } + } + var yyn24 bool + if x.Disconnect == nil { + yyn24 = true + goto LABEL24 + } + LABEL24: + if yyr2 || yy2arr2 { + if yyn24 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Disconnect == nil { + r.EncodeNil() + } else { + x.Disconnect.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Disconnect\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Disconnect`) + } + r.WriteMapElemValue() + if yyn24 { + r.EncodeNil() + } else { + if x.Disconnect == nil { + r.EncodeNil() + } else { + x.Disconnect.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Tasks == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoTask(([]*Task)(x.Tasks), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Tasks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Tasks`) + } + r.WriteMapElemValue() + if x.Tasks == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoTask(([]*Task)(x.Tasks), e) + } + } + } + var yyn30 bool + if x.EphemeralDisk == nil { + yyn30 = true + goto LABEL30 + } + LABEL30: + if yyr2 || yy2arr2 { + if yyn30 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.EphemeralDisk == nil { + r.EncodeNil() + } else { + x.EphemeralDisk.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EphemeralDisk\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EphemeralDisk`) + } + r.WriteMapElemValue() + if yyn30 { + r.EncodeNil() + } else { + if x.EphemeralDisk == nil { + r.EncodeNil() + } else { + x.EphemeralDisk.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Meta), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Meta\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) + } + r.WriteMapElemValue() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Meta), e) + } + } + } + var yyn36 bool + if x.ReschedulePolicy == nil { + yyn36 = true + goto LABEL36 + } + LABEL36: + if yyr2 || yy2arr2 { + if yyn36 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ReschedulePolicy == nil { + r.EncodeNil() + } else { + x.ReschedulePolicy.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ReschedulePolicy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ReschedulePolicy`) + } + r.WriteMapElemValue() + if yyn36 { + r.EncodeNil() + } else { + if x.ReschedulePolicy == nil { + r.EncodeNil() + } else { + x.ReschedulePolicy.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Affinities == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAffinity(([]*Affinity)(x.Affinities), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Affinities\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Affinities`) + } + r.WriteMapElemValue() + if x.Affinities == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAffinity(([]*Affinity)(x.Affinities), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Spreads == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoSpread(([]*Spread)(x.Spreads), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Spreads\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Spreads`) + } + r.WriteMapElemValue() + if x.Spreads == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoSpread(([]*Spread)(x.Spreads), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Networks == nil { + r.EncodeNil() + } else { + x.Networks.CodecEncodeSelf(e) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Networks\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Networks`) + } + r.WriteMapElemValue() + if x.Networks == nil { + r.EncodeNil() + } else { + x.Networks.CodecEncodeSelf(e) + } + } + var yyn48 bool + if x.Consul == nil { + yyn48 = true + goto LABEL48 + } + LABEL48: + if yyr2 || yy2arr2 { + if yyn48 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Consul == nil { + r.EncodeNil() + } else { + x.Consul.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Consul\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Consul`) + } + r.WriteMapElemValue() + if yyn48 { + r.EncodeNil() + } else { + if x.Consul == nil { + r.EncodeNil() + } else { + x.Consul.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Services == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoService(([]*Service)(x.Services), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Services\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Services`) + } + r.WriteMapElemValue() + if x.Services == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoService(([]*Service)(x.Services), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Volumes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoVolumeRequest((map[string]*VolumeRequest)(x.Volumes), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Volumes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Volumes`) + } + r.WriteMapElemValue() + if x.Volumes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoVolumeRequest((map[string]*VolumeRequest)(x.Volumes), e) + } + } + } + var yyn57 bool + if x.ShutdownDelay == nil { + yyn57 = true + goto LABEL57 + } + LABEL57: + if yyr2 || yy2arr2 { + if yyn57 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ShutdownDelay == nil { + r.EncodeNil() + } else { + yy58 := *x.ShutdownDelay + if false { + } else if yyxt59 := z.Extension(z.I2Rtid(yy58)); yyxt59 != nil { + z.EncExtension(yy58, yyxt59) + } else { + r.EncodeInt(int64(yy58)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ShutdownDelay\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ShutdownDelay`) + } + r.WriteMapElemValue() + if yyn57 { + r.EncodeNil() + } else { + if x.ShutdownDelay == nil { + r.EncodeNil() + } else { + yy60 := *x.ShutdownDelay + if false { + } else if yyxt61 := z.Extension(z.I2Rtid(yy60)); yyxt61 != nil { + z.EncExtension(yy60, yyxt61) + } else { + r.EncodeInt(int64(yy60)) + } + } + } + } + var yyn62 bool + if x.StopAfterClientDisconnect == nil { + yyn62 = true + goto LABEL62 + } + LABEL62: + if yyr2 || yy2arr2 { + if yyn62 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.StopAfterClientDisconnect == nil { + r.EncodeNil() + } else { + yy63 := *x.StopAfterClientDisconnect + if false { + } else if yyxt64 := z.Extension(z.I2Rtid(yy63)); yyxt64 != nil { + z.EncExtension(yy63, yyxt64) + } else { + r.EncodeInt(int64(yy63)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"StopAfterClientDisconnect\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `StopAfterClientDisconnect`) + } + r.WriteMapElemValue() + if yyn62 { + r.EncodeNil() + } else { + if x.StopAfterClientDisconnect == nil { + r.EncodeNil() + } else { + yy65 := *x.StopAfterClientDisconnect + if false { + } else if yyxt66 := z.Extension(z.I2Rtid(yy65)); yyxt66 != nil { + z.EncExtension(yy65, yyxt66) + } else { + r.EncodeInt(int64(yy65)) + } + } + } + } + var yyn67 bool + if x.MaxClientDisconnect == nil { + yyn67 = true + goto LABEL67 + } + LABEL67: + if yyr2 || yy2arr2 { + if yyn67 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.MaxClientDisconnect == nil { + r.EncodeNil() + } else { + yy68 := *x.MaxClientDisconnect + if false { + } else if yyxt69 := z.Extension(z.I2Rtid(yy68)); yyxt69 != nil { + z.EncExtension(yy68, yyxt69) + } else { + r.EncodeInt(int64(yy68)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxClientDisconnect\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxClientDisconnect`) + } + r.WriteMapElemValue() + if yyn67 { + r.EncodeNil() + } else { + if x.MaxClientDisconnect == nil { + r.EncodeNil() + } else { + yy70 := *x.MaxClientDisconnect + if false { + } else if yyxt71 := z.Extension(z.I2Rtid(yy70)); yyxt71 != nil { + z.EncExtension(yy70, yyxt71) + } else { + r.EncodeInt(int64(yy70)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.PreventRescheduleOnLost)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PreventRescheduleOnLost\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PreventRescheduleOnLost`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.PreventRescheduleOnLost)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *TaskGroup) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *TaskGroup) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Count": + if r.TryDecodeAsNil() { + x.Count = 0 + } else { + x.Count = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Update": + if r.TryDecodeAsNil() { + if true && x.Update != nil { + x.Update = nil + } + } else { + if x.Update == nil { + x.Update = new(UpdateStrategy) + } + + x.Update.CodecDecodeSelf(d) + } + case "Migrate": + if r.TryDecodeAsNil() { + if true && x.Migrate != nil { + x.Migrate = nil + } + } else { + if x.Migrate == nil { + x.Migrate = new(MigrateStrategy) + } + + x.Migrate.CodecDecodeSelf(d) + } + case "Constraints": + if r.TryDecodeAsNil() { + x.Constraints = nil + } else { + if false { + } else { + h.decSlicePtrtoConstraint((*[]*Constraint)(&x.Constraints), d) + } + } + case "Scaling": + if r.TryDecodeAsNil() { + if true && x.Scaling != nil { + x.Scaling = nil + } + } else { + if x.Scaling == nil { + x.Scaling = new(ScalingPolicy) + } + + x.Scaling.CodecDecodeSelf(d) + } + case "RestartPolicy": + if r.TryDecodeAsNil() { + if true && x.RestartPolicy != nil { + x.RestartPolicy = nil + } + } else { + if x.RestartPolicy == nil { + x.RestartPolicy = new(RestartPolicy) + } + + x.RestartPolicy.CodecDecodeSelf(d) + } + case "Disconnect": + if r.TryDecodeAsNil() { + if true && x.Disconnect != nil { + x.Disconnect = nil + } + } else { + if x.Disconnect == nil { + x.Disconnect = new(DisconnectStrategy) + } + + x.Disconnect.CodecDecodeSelf(d) + } + case "Tasks": + if r.TryDecodeAsNil() { + x.Tasks = nil + } else { + if false { + } else { + h.decSlicePtrtoTask((*[]*Task)(&x.Tasks), d) + } + } + case "EphemeralDisk": + if r.TryDecodeAsNil() { + if true && x.EphemeralDisk != nil { + x.EphemeralDisk = nil + } + } else { + if x.EphemeralDisk == nil { + x.EphemeralDisk = new(EphemeralDisk) + } + + x.EphemeralDisk.CodecDecodeSelf(d) + } + case "Meta": + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Meta), d) + } + } + case "ReschedulePolicy": + if r.TryDecodeAsNil() { + if true && x.ReschedulePolicy != nil { + x.ReschedulePolicy = nil + } + } else { + if x.ReschedulePolicy == nil { + x.ReschedulePolicy = new(ReschedulePolicy) + } + + x.ReschedulePolicy.CodecDecodeSelf(d) + } + case "Affinities": + if r.TryDecodeAsNil() { + x.Affinities = nil + } else { + if false { + } else { + h.decSlicePtrtoAffinity((*[]*Affinity)(&x.Affinities), d) + } + } + case "Spreads": + if r.TryDecodeAsNil() { + x.Spreads = nil + } else { + if false { + } else { + h.decSlicePtrtoSpread((*[]*Spread)(&x.Spreads), d) + } + } + case "Networks": + if r.TryDecodeAsNil() { + x.Networks = nil + } else { + x.Networks.CodecDecodeSelf(d) + } + case "Consul": + if r.TryDecodeAsNil() { + if true && x.Consul != nil { + x.Consul = nil + } + } else { + if x.Consul == nil { + x.Consul = new(Consul) + } + + x.Consul.CodecDecodeSelf(d) + } + case "Services": + if r.TryDecodeAsNil() { + x.Services = nil + } else { + if false { + } else { + h.decSlicePtrtoService((*[]*Service)(&x.Services), d) + } + } + case "Volumes": + if r.TryDecodeAsNil() { + x.Volumes = nil + } else { + if false { + } else { + h.decMapstringPtrtoVolumeRequest((*map[string]*VolumeRequest)(&x.Volumes), d) + } + } + case "ShutdownDelay": + if r.TryDecodeAsNil() { + if true && x.ShutdownDelay != nil { + x.ShutdownDelay = nil + } + } else { + if x.ShutdownDelay == nil { + x.ShutdownDelay = new(time.Duration) + } + + if false { + } else if yyxt30 := z.Extension(z.I2Rtid(x.ShutdownDelay)); yyxt30 != nil { + z.DecExtension(x.ShutdownDelay, yyxt30) + } else { + *x.ShutdownDelay = (time.Duration)(r.DecodeInt64()) + } + } + case "StopAfterClientDisconnect": + if r.TryDecodeAsNil() { + if true && x.StopAfterClientDisconnect != nil { + x.StopAfterClientDisconnect = nil + } + } else { + if x.StopAfterClientDisconnect == nil { + x.StopAfterClientDisconnect = new(time.Duration) + } + + if false { + } else if yyxt32 := z.Extension(z.I2Rtid(x.StopAfterClientDisconnect)); yyxt32 != nil { + z.DecExtension(x.StopAfterClientDisconnect, yyxt32) + } else { + *x.StopAfterClientDisconnect = (time.Duration)(r.DecodeInt64()) + } + } + case "MaxClientDisconnect": + if r.TryDecodeAsNil() { + if true && x.MaxClientDisconnect != nil { + x.MaxClientDisconnect = nil + } + } else { + if x.MaxClientDisconnect == nil { + x.MaxClientDisconnect = new(time.Duration) + } + + if false { + } else if yyxt34 := z.Extension(z.I2Rtid(x.MaxClientDisconnect)); yyxt34 != nil { + z.DecExtension(x.MaxClientDisconnect, yyxt34) + } else { + *x.MaxClientDisconnect = (time.Duration)(r.DecodeInt64()) + } + } + case "PreventRescheduleOnLost": + if r.TryDecodeAsNil() { + x.PreventRescheduleOnLost = false + } else { + x.PreventRescheduleOnLost = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *TaskGroup) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj36 int + var yyb36 bool + var yyhl36 bool = l >= 0 + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Count = 0 + } else { + x.Count = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Update != nil { + x.Update = nil + } + } else { + if x.Update == nil { + x.Update = new(UpdateStrategy) + } + + x.Update.CodecDecodeSelf(d) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Migrate != nil { + x.Migrate = nil + } + } else { + if x.Migrate == nil { + x.Migrate = new(MigrateStrategy) + } + + x.Migrate.CodecDecodeSelf(d) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Constraints = nil + } else { + if false { + } else { + h.decSlicePtrtoConstraint((*[]*Constraint)(&x.Constraints), d) + } + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Scaling != nil { + x.Scaling = nil + } + } else { + if x.Scaling == nil { + x.Scaling = new(ScalingPolicy) + } + + x.Scaling.CodecDecodeSelf(d) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.RestartPolicy != nil { + x.RestartPolicy = nil + } + } else { + if x.RestartPolicy == nil { + x.RestartPolicy = new(RestartPolicy) + } + + x.RestartPolicy.CodecDecodeSelf(d) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Disconnect != nil { + x.Disconnect = nil + } + } else { + if x.Disconnect == nil { + x.Disconnect = new(DisconnectStrategy) + } + + x.Disconnect.CodecDecodeSelf(d) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Tasks = nil + } else { + if false { + } else { + h.decSlicePtrtoTask((*[]*Task)(&x.Tasks), d) + } + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.EphemeralDisk != nil { + x.EphemeralDisk = nil + } + } else { + if x.EphemeralDisk == nil { + x.EphemeralDisk = new(EphemeralDisk) + } + + x.EphemeralDisk.CodecDecodeSelf(d) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Meta), d) + } + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ReschedulePolicy != nil { + x.ReschedulePolicy = nil + } + } else { + if x.ReschedulePolicy == nil { + x.ReschedulePolicy = new(ReschedulePolicy) + } + + x.ReschedulePolicy.CodecDecodeSelf(d) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Affinities = nil + } else { + if false { + } else { + h.decSlicePtrtoAffinity((*[]*Affinity)(&x.Affinities), d) + } + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Spreads = nil + } else { + if false { + } else { + h.decSlicePtrtoSpread((*[]*Spread)(&x.Spreads), d) + } + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Networks = nil + } else { + x.Networks.CodecDecodeSelf(d) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Consul != nil { + x.Consul = nil + } + } else { + if x.Consul == nil { + x.Consul = new(Consul) + } + + x.Consul.CodecDecodeSelf(d) + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Services = nil + } else { + if false { + } else { + h.decSlicePtrtoService((*[]*Service)(&x.Services), d) + } + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Volumes = nil + } else { + if false { + } else { + h.decMapstringPtrtoVolumeRequest((*map[string]*VolumeRequest)(&x.Volumes), d) + } + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ShutdownDelay != nil { + x.ShutdownDelay = nil + } + } else { + if x.ShutdownDelay == nil { + x.ShutdownDelay = new(time.Duration) + } + + if false { + } else if yyxt63 := z.Extension(z.I2Rtid(x.ShutdownDelay)); yyxt63 != nil { + z.DecExtension(x.ShutdownDelay, yyxt63) + } else { + *x.ShutdownDelay = (time.Duration)(r.DecodeInt64()) + } + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.StopAfterClientDisconnect != nil { + x.StopAfterClientDisconnect = nil + } + } else { + if x.StopAfterClientDisconnect == nil { + x.StopAfterClientDisconnect = new(time.Duration) + } + + if false { + } else if yyxt65 := z.Extension(z.I2Rtid(x.StopAfterClientDisconnect)); yyxt65 != nil { + z.DecExtension(x.StopAfterClientDisconnect, yyxt65) + } else { + *x.StopAfterClientDisconnect = (time.Duration)(r.DecodeInt64()) + } + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.MaxClientDisconnect != nil { + x.MaxClientDisconnect = nil + } + } else { + if x.MaxClientDisconnect == nil { + x.MaxClientDisconnect = new(time.Duration) + } + + if false { + } else if yyxt67 := z.Extension(z.I2Rtid(x.MaxClientDisconnect)); yyxt67 != nil { + z.DecExtension(x.MaxClientDisconnect, yyxt67) + } else { + *x.MaxClientDisconnect = (time.Duration)(r.DecodeInt64()) + } + } + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PreventRescheduleOnLost = false + } else { + x.PreventRescheduleOnLost = (bool)(r.DecodeBool()) + } + for { + yyj36++ + if yyhl36 { + yyb36 = yyj36 > l + } else { + yyb36 = r.CheckBreak() + } + if yyb36 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj36-1, "") + } + r.ReadArrayEnd() +} + +func (x *CheckRestart) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Limit)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Limit\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Limit`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Limit)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.Grace)); yyxt7 != nil { + z.EncExtension(x.Grace, yyxt7) + } else { + r.EncodeInt(int64(x.Grace)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Grace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Grace`) + } + r.WriteMapElemValue() + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.Grace)); yyxt8 != nil { + z.EncExtension(x.Grace, yyxt8) + } else { + r.EncodeInt(int64(x.Grace)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.IgnoreWarnings)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IgnoreWarnings\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IgnoreWarnings`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.IgnoreWarnings)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *CheckRestart) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *CheckRestart) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Limit": + if r.TryDecodeAsNil() { + x.Limit = 0 + } else { + x.Limit = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Grace": + if r.TryDecodeAsNil() { + x.Grace = 0 + } else { + if false { + } else if yyxt6 := z.Extension(z.I2Rtid(x.Grace)); yyxt6 != nil { + z.DecExtension(x.Grace, yyxt6) + } else { + x.Grace = (time.Duration)(r.DecodeInt64()) + } + } + case "IgnoreWarnings": + if r.TryDecodeAsNil() { + x.IgnoreWarnings = false + } else { + x.IgnoreWarnings = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *CheckRestart) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Limit = 0 + } else { + x.Limit = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Grace = 0 + } else { + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.Grace)); yyxt11 != nil { + z.DecExtension(x.Grace, yyxt11) + } else { + x.Grace = (time.Duration)(r.DecodeInt64()) + } + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.IgnoreWarnings = false + } else { + x.IgnoreWarnings = (bool)(r.DecodeBool()) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *LogConfig) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.MaxFiles)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxFiles\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxFiles`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.MaxFiles)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.MaxFileSizeMB)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxFileSizeMB\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxFileSizeMB`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.MaxFileSizeMB)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Disabled)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Disabled\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Disabled`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Disabled)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *LogConfig) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *LogConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "MaxFiles": + if r.TryDecodeAsNil() { + x.MaxFiles = 0 + } else { + x.MaxFiles = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "MaxFileSizeMB": + if r.TryDecodeAsNil() { + x.MaxFileSizeMB = 0 + } else { + x.MaxFileSizeMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Disabled": + if r.TryDecodeAsNil() { + x.Disabled = false + } else { + x.Disabled = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *LogConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MaxFiles = 0 + } else { + x.MaxFiles = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MaxFileSizeMB = 0 + } else { + x.MaxFileSizeMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Disabled = false + } else { + x.Disabled = (bool)(r.DecodeBool()) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *Task) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(30) + } else { + r.WriteMapStart(30) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Driver))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Driver)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Driver\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Driver`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Driver))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Driver)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.User))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.User)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"User\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `User`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.User))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.User)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Config == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringInterface((map[string]interface{})(x.Config), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Config\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Config`) + } + r.WriteMapElemValue() + if x.Config == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringInterface((map[string]interface{})(x.Config), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Env == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Env), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Env\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Env`) + } + r.WriteMapElemValue() + if x.Env == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Env), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Services == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoService(([]*Service)(x.Services), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Services\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Services`) + } + r.WriteMapElemValue() + if x.Services == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoService(([]*Service)(x.Services), e) + } + } + } + var yyn21 bool + if x.Vault == nil { + yyn21 = true + goto LABEL21 + } + LABEL21: + if yyr2 || yy2arr2 { + if yyn21 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Vault == nil { + r.EncodeNil() + } else { + x.Vault.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Vault\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Vault`) + } + r.WriteMapElemValue() + if yyn21 { + r.EncodeNil() + } else { + if x.Vault == nil { + r.EncodeNil() + } else { + x.Vault.CodecEncodeSelf(e) + } + } + } + var yyn24 bool + if x.Consul == nil { + yyn24 = true + goto LABEL24 + } + LABEL24: + if yyr2 || yy2arr2 { + if yyn24 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Consul == nil { + r.EncodeNil() + } else { + x.Consul.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Consul\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Consul`) + } + r.WriteMapElemValue() + if yyn24 { + r.EncodeNil() + } else { + if x.Consul == nil { + r.EncodeNil() + } else { + x.Consul.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Templates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoTemplate(([]*Template)(x.Templates), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Templates\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Templates`) + } + r.WriteMapElemValue() + if x.Templates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoTemplate(([]*Template)(x.Templates), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Constraints == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Constraints\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Constraints`) + } + r.WriteMapElemValue() + if x.Constraints == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Affinities == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAffinity(([]*Affinity)(x.Affinities), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Affinities\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Affinities`) + } + r.WriteMapElemValue() + if x.Affinities == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAffinity(([]*Affinity)(x.Affinities), e) + } + } + } + var yyn36 bool + if x.Resources == nil { + yyn36 = true + goto LABEL36 + } + LABEL36: + if yyr2 || yy2arr2 { + if yyn36 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Resources == nil { + r.EncodeNil() + } else { + x.Resources.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Resources\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Resources`) + } + r.WriteMapElemValue() + if yyn36 { + r.EncodeNil() + } else { + if x.Resources == nil { + r.EncodeNil() + } else { + x.Resources.CodecEncodeSelf(e) + } + } + } + var yyn39 bool + if x.RestartPolicy == nil { + yyn39 = true + goto LABEL39 + } + LABEL39: + if yyr2 || yy2arr2 { + if yyn39 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.RestartPolicy == nil { + r.EncodeNil() + } else { + x.RestartPolicy.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RestartPolicy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RestartPolicy`) + } + r.WriteMapElemValue() + if yyn39 { + r.EncodeNil() + } else { + if x.RestartPolicy == nil { + r.EncodeNil() + } else { + x.RestartPolicy.CodecEncodeSelf(e) + } + } + } + var yyn42 bool + if x.DispatchPayload == nil { + yyn42 = true + goto LABEL42 + } + LABEL42: + if yyr2 || yy2arr2 { + if yyn42 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.DispatchPayload == nil { + r.EncodeNil() + } else { + x.DispatchPayload.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DispatchPayload\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DispatchPayload`) + } + r.WriteMapElemValue() + if yyn42 { + r.EncodeNil() + } else { + if x.DispatchPayload == nil { + r.EncodeNil() + } else { + x.DispatchPayload.CodecEncodeSelf(e) + } + } + } + var yyn45 bool + if x.Lifecycle == nil { + yyn45 = true + goto LABEL45 + } + LABEL45: + if yyr2 || yy2arr2 { + if yyn45 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Lifecycle == nil { + r.EncodeNil() + } else { + x.Lifecycle.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Lifecycle\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Lifecycle`) + } + r.WriteMapElemValue() + if yyn45 { + r.EncodeNil() + } else { + if x.Lifecycle == nil { + r.EncodeNil() + } else { + x.Lifecycle.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Meta), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Meta\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) + } + r.WriteMapElemValue() + if x.Meta == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Meta), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt52 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt52 != nil { + z.EncExtension(x.KillTimeout, yyxt52) + } else { + r.EncodeInt(int64(x.KillTimeout)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KillTimeout\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KillTimeout`) + } + r.WriteMapElemValue() + if false { + } else if yyxt53 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt53 != nil { + z.EncExtension(x.KillTimeout, yyxt53) + } else { + r.EncodeInt(int64(x.KillTimeout)) + } + } + var yyn54 bool + if x.LogConfig == nil { + yyn54 = true + goto LABEL54 + } + LABEL54: + if yyr2 || yy2arr2 { + if yyn54 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.LogConfig == nil { + r.EncodeNil() + } else { + x.LogConfig.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LogConfig\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LogConfig`) + } + r.WriteMapElemValue() + if yyn54 { + r.EncodeNil() + } else { + if x.LogConfig == nil { + r.EncodeNil() + } else { + x.LogConfig.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Artifacts == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoTaskArtifact(([]*TaskArtifact)(x.Artifacts), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Artifacts\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Artifacts`) + } + r.WriteMapElemValue() + if x.Artifacts == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoTaskArtifact(([]*TaskArtifact)(x.Artifacts), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Leader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Leader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Leader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Leader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt64 := z.Extension(z.I2Rtid(x.ShutdownDelay)); yyxt64 != nil { + z.EncExtension(x.ShutdownDelay, yyxt64) + } else { + r.EncodeInt(int64(x.ShutdownDelay)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ShutdownDelay\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ShutdownDelay`) + } + r.WriteMapElemValue() + if false { + } else if yyxt65 := z.Extension(z.I2Rtid(x.ShutdownDelay)); yyxt65 != nil { + z.EncExtension(x.ShutdownDelay, yyxt65) + } else { + r.EncodeInt(int64(x.ShutdownDelay)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.VolumeMounts == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoVolumeMount(([]*VolumeMount)(x.VolumeMounts), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VolumeMounts\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `VolumeMounts`) + } + r.WriteMapElemValue() + if x.VolumeMounts == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoVolumeMount(([]*VolumeMount)(x.VolumeMounts), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ScalingPolicies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoScalingPolicy(([]*ScalingPolicy)(x.ScalingPolicies), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ScalingPolicies\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ScalingPolicies`) + } + r.WriteMapElemValue() + if x.ScalingPolicies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoScalingPolicy(([]*ScalingPolicy)(x.ScalingPolicies), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KillSignal))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KillSignal)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KillSignal\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KillSignal`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KillSignal))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KillSignal)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Kind.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Kind\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Kind`) + } + r.WriteMapElemValue() + x.Kind.CodecEncodeSelf(e) + } + var yyn78 bool + if x.CSIPluginConfig == nil { + yyn78 = true + goto LABEL78 + } + LABEL78: + if yyr2 || yy2arr2 { + if yyn78 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.CSIPluginConfig == nil { + r.EncodeNil() + } else { + x.CSIPluginConfig.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CSIPluginConfig\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CSIPluginConfig`) + } + r.WriteMapElemValue() + if yyn78 { + r.EncodeNil() + } else { + if x.CSIPluginConfig == nil { + r.EncodeNil() + } else { + x.CSIPluginConfig.CodecEncodeSelf(e) + } + } + } + var yyn81 bool + if x.Identity == nil { + yyn81 = true + goto LABEL81 + } + LABEL81: + if yyr2 || yy2arr2 { + if yyn81 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Identity == nil { + r.EncodeNil() + } else { + x.Identity.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Identity\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Identity`) + } + r.WriteMapElemValue() + if yyn81 { + r.EncodeNil() + } else { + if x.Identity == nil { + r.EncodeNil() + } else { + x.Identity.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Identities == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoWorkloadIdentity(([]*WorkloadIdentity)(x.Identities), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Identities\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Identities`) + } + r.WriteMapElemValue() + if x.Identities == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoWorkloadIdentity(([]*WorkloadIdentity)(x.Identities), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Actions == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAction(([]*Action)(x.Actions), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Actions\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Actions`) + } + r.WriteMapElemValue() + if x.Actions == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAction(([]*Action)(x.Actions), e) + } + } + } + var yyn90 bool + if x.Schedule == nil { + yyn90 = true + goto LABEL90 + } + LABEL90: + if yyr2 || yy2arr2 { + if yyn90 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Schedule == nil { + r.EncodeNil() + } else { + x.Schedule.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Schedule\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Schedule`) + } + r.WriteMapElemValue() + if yyn90 { + r.EncodeNil() + } else { + if x.Schedule == nil { + r.EncodeNil() + } else { + x.Schedule.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Task) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Task) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Driver": + if r.TryDecodeAsNil() { + x.Driver = "" + } else { + x.Driver = (string)(r.DecodeString()) + } + case "User": + if r.TryDecodeAsNil() { + x.User = "" + } else { + x.User = (string)(r.DecodeString()) + } + case "Config": + if r.TryDecodeAsNil() { + x.Config = nil + } else { + if false { + } else { + h.decMapstringInterface((*map[string]interface{})(&x.Config), d) + } + } + case "Env": + if r.TryDecodeAsNil() { + x.Env = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Env), d) + } + } + case "Services": + if r.TryDecodeAsNil() { + x.Services = nil + } else { + if false { + } else { + h.decSlicePtrtoService((*[]*Service)(&x.Services), d) + } + } + case "Vault": + if r.TryDecodeAsNil() { + if true && x.Vault != nil { + x.Vault = nil + } + } else { + if x.Vault == nil { + x.Vault = new(Vault) + } + + x.Vault.CodecDecodeSelf(d) + } + case "Consul": + if r.TryDecodeAsNil() { + if true && x.Consul != nil { + x.Consul = nil + } + } else { + if x.Consul == nil { + x.Consul = new(Consul) + } + + x.Consul.CodecDecodeSelf(d) + } + case "Templates": + if r.TryDecodeAsNil() { + x.Templates = nil + } else { + if false { + } else { + h.decSlicePtrtoTemplate((*[]*Template)(&x.Templates), d) + } + } + case "Constraints": + if r.TryDecodeAsNil() { + x.Constraints = nil + } else { + if false { + } else { + h.decSlicePtrtoConstraint((*[]*Constraint)(&x.Constraints), d) + } + } + case "Affinities": + if r.TryDecodeAsNil() { + x.Affinities = nil + } else { + if false { + } else { + h.decSlicePtrtoAffinity((*[]*Affinity)(&x.Affinities), d) + } + } + case "Resources": + if r.TryDecodeAsNil() { + if true && x.Resources != nil { + x.Resources = nil + } + } else { + if x.Resources == nil { + x.Resources = new(Resources) + } + + x.Resources.CodecDecodeSelf(d) + } + case "RestartPolicy": + if r.TryDecodeAsNil() { + if true && x.RestartPolicy != nil { + x.RestartPolicy = nil + } + } else { + if x.RestartPolicy == nil { + x.RestartPolicy = new(RestartPolicy) + } + + x.RestartPolicy.CodecDecodeSelf(d) + } + case "DispatchPayload": + if r.TryDecodeAsNil() { + if true && x.DispatchPayload != nil { + x.DispatchPayload = nil + } + } else { + if x.DispatchPayload == nil { + x.DispatchPayload = new(DispatchPayloadConfig) + } + + x.DispatchPayload.CodecDecodeSelf(d) + } + case "Lifecycle": + if r.TryDecodeAsNil() { + if true && x.Lifecycle != nil { + x.Lifecycle = nil + } + } else { + if x.Lifecycle == nil { + x.Lifecycle = new(TaskLifecycleConfig) + } + + x.Lifecycle.CodecDecodeSelf(d) + } + case "Meta": + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Meta), d) + } + } + case "KillTimeout": + if r.TryDecodeAsNil() { + x.KillTimeout = 0 + } else { + if false { + } else if yyxt28 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt28 != nil { + z.DecExtension(x.KillTimeout, yyxt28) + } else { + x.KillTimeout = (time.Duration)(r.DecodeInt64()) + } + } + case "LogConfig": + if r.TryDecodeAsNil() { + if true && x.LogConfig != nil { + x.LogConfig = nil + } + } else { + if x.LogConfig == nil { + x.LogConfig = new(LogConfig) + } + + x.LogConfig.CodecDecodeSelf(d) + } + case "Artifacts": + if r.TryDecodeAsNil() { + x.Artifacts = nil + } else { + if false { + } else { + h.decSlicePtrtoTaskArtifact((*[]*TaskArtifact)(&x.Artifacts), d) + } + } + case "Leader": + if r.TryDecodeAsNil() { + x.Leader = false + } else { + x.Leader = (bool)(r.DecodeBool()) + } + case "ShutdownDelay": + if r.TryDecodeAsNil() { + x.ShutdownDelay = 0 + } else { + if false { + } else if yyxt34 := z.Extension(z.I2Rtid(x.ShutdownDelay)); yyxt34 != nil { + z.DecExtension(x.ShutdownDelay, yyxt34) + } else { + x.ShutdownDelay = (time.Duration)(r.DecodeInt64()) + } + } + case "VolumeMounts": + if r.TryDecodeAsNil() { + x.VolumeMounts = nil + } else { + if false { + } else { + h.decSlicePtrtoVolumeMount((*[]*VolumeMount)(&x.VolumeMounts), d) + } + } + case "ScalingPolicies": + if r.TryDecodeAsNil() { + x.ScalingPolicies = nil + } else { + if false { + } else { + h.decSlicePtrtoScalingPolicy((*[]*ScalingPolicy)(&x.ScalingPolicies), d) + } + } + case "KillSignal": + if r.TryDecodeAsNil() { + x.KillSignal = "" + } else { + x.KillSignal = (string)(r.DecodeString()) + } + case "Kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind.CodecDecodeSelf(d) + } + case "CSIPluginConfig": + if r.TryDecodeAsNil() { + if true && x.CSIPluginConfig != nil { + x.CSIPluginConfig = nil + } + } else { + if x.CSIPluginConfig == nil { + x.CSIPluginConfig = new(TaskCSIPluginConfig) + } + + x.CSIPluginConfig.CodecDecodeSelf(d) + } + case "Identity": + if r.TryDecodeAsNil() { + if true && x.Identity != nil { + x.Identity = nil + } + } else { + if x.Identity == nil { + x.Identity = new(WorkloadIdentity) + } + + x.Identity.CodecDecodeSelf(d) + } + case "Identities": + if r.TryDecodeAsNil() { + x.Identities = nil + } else { + if false { + } else { + h.decSlicePtrtoWorkloadIdentity((*[]*WorkloadIdentity)(&x.Identities), d) + } + } + case "Actions": + if r.TryDecodeAsNil() { + x.Actions = nil + } else { + if false { + } else { + h.decSlicePtrtoAction((*[]*Action)(&x.Actions), d) + } + } + case "Schedule": + if r.TryDecodeAsNil() { + if true && x.Schedule != nil { + x.Schedule = nil + } + } else { + if x.Schedule == nil { + x.Schedule = new(TaskSchedule) + } + + x.Schedule.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Task) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj48 int + var yyb48 bool + var yyhl48 bool = l >= 0 + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Driver = "" + } else { + x.Driver = (string)(r.DecodeString()) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.User = "" + } else { + x.User = (string)(r.DecodeString()) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Config = nil + } else { + if false { + } else { + h.decMapstringInterface((*map[string]interface{})(&x.Config), d) + } + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Env = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Env), d) + } + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Services = nil + } else { + if false { + } else { + h.decSlicePtrtoService((*[]*Service)(&x.Services), d) + } + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Vault != nil { + x.Vault = nil + } + } else { + if x.Vault == nil { + x.Vault = new(Vault) + } + + x.Vault.CodecDecodeSelf(d) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Consul != nil { + x.Consul = nil + } + } else { + if x.Consul == nil { + x.Consul = new(Consul) + } + + x.Consul.CodecDecodeSelf(d) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Templates = nil + } else { + if false { + } else { + h.decSlicePtrtoTemplate((*[]*Template)(&x.Templates), d) + } + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Constraints = nil + } else { + if false { + } else { + h.decSlicePtrtoConstraint((*[]*Constraint)(&x.Constraints), d) + } + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Affinities = nil + } else { + if false { + } else { + h.decSlicePtrtoAffinity((*[]*Affinity)(&x.Affinities), d) + } + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Resources != nil { + x.Resources = nil + } + } else { + if x.Resources == nil { + x.Resources = new(Resources) + } + + x.Resources.CodecDecodeSelf(d) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.RestartPolicy != nil { + x.RestartPolicy = nil + } + } else { + if x.RestartPolicy == nil { + x.RestartPolicy = new(RestartPolicy) + } + + x.RestartPolicy.CodecDecodeSelf(d) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.DispatchPayload != nil { + x.DispatchPayload = nil + } + } else { + if x.DispatchPayload == nil { + x.DispatchPayload = new(DispatchPayloadConfig) + } + + x.DispatchPayload.CodecDecodeSelf(d) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Lifecycle != nil { + x.Lifecycle = nil + } + } else { + if x.Lifecycle == nil { + x.Lifecycle = new(TaskLifecycleConfig) + } + + x.Lifecycle.CodecDecodeSelf(d) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Meta = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Meta), d) + } + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.KillTimeout = 0 + } else { + if false { + } else if yyxt73 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt73 != nil { + z.DecExtension(x.KillTimeout, yyxt73) + } else { + x.KillTimeout = (time.Duration)(r.DecodeInt64()) + } + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.LogConfig != nil { + x.LogConfig = nil + } + } else { + if x.LogConfig == nil { + x.LogConfig = new(LogConfig) + } + + x.LogConfig.CodecDecodeSelf(d) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Artifacts = nil + } else { + if false { + } else { + h.decSlicePtrtoTaskArtifact((*[]*TaskArtifact)(&x.Artifacts), d) + } + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Leader = false + } else { + x.Leader = (bool)(r.DecodeBool()) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ShutdownDelay = 0 + } else { + if false { + } else if yyxt79 := z.Extension(z.I2Rtid(x.ShutdownDelay)); yyxt79 != nil { + z.DecExtension(x.ShutdownDelay, yyxt79) + } else { + x.ShutdownDelay = (time.Duration)(r.DecodeInt64()) + } + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VolumeMounts = nil + } else { + if false { + } else { + h.decSlicePtrtoVolumeMount((*[]*VolumeMount)(&x.VolumeMounts), d) + } + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ScalingPolicies = nil + } else { + if false { + } else { + h.decSlicePtrtoScalingPolicy((*[]*ScalingPolicy)(&x.ScalingPolicies), d) + } + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.KillSignal = "" + } else { + x.KillSignal = (string)(r.DecodeString()) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind.CodecDecodeSelf(d) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.CSIPluginConfig != nil { + x.CSIPluginConfig = nil + } + } else { + if x.CSIPluginConfig == nil { + x.CSIPluginConfig = new(TaskCSIPluginConfig) + } + + x.CSIPluginConfig.CodecDecodeSelf(d) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Identity != nil { + x.Identity = nil + } + } else { + if x.Identity == nil { + x.Identity = new(WorkloadIdentity) + } + + x.Identity.CodecDecodeSelf(d) + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Identities = nil + } else { + if false { + } else { + h.decSlicePtrtoWorkloadIdentity((*[]*WorkloadIdentity)(&x.Identities), d) + } + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Actions = nil + } else { + if false { + } else { + h.decSlicePtrtoAction((*[]*Action)(&x.Actions), d) + } + } + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Schedule != nil { + x.Schedule = nil + } + } else { + if x.Schedule == nil { + x.Schedule = new(TaskSchedule) + } + + x.Schedule.CodecDecodeSelf(d) + } + for { + yyj48++ + if yyhl48 { + yyb48 = yyj48 > l + } else { + yyb48 = r.CheckBreak() + } + if yyb48 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj48-1, "") + } + r.ReadArrayEnd() +} + +func (x TaskKind) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) + } + } +} + +func (x *TaskKind) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (TaskKind)(r.DecodeString()) + } +} + +func (x *Template) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(17) + } else { + r.WriteMapStart(17) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SourcePath))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SourcePath)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SourcePath\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SourcePath`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SourcePath))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SourcePath)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DestPath))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DestPath)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DestPath\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DestPath`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DestPath))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DestPath)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EmbeddedTmpl))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EmbeddedTmpl)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EmbeddedTmpl\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EmbeddedTmpl`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EmbeddedTmpl))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EmbeddedTmpl)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeMode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeMode)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ChangeMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ChangeMode`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeMode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeMode)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeSignal))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeSignal)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ChangeSignal\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ChangeSignal`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeSignal))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeSignal)) + } + } + } + var yyn18 bool + if x.ChangeScript == nil { + yyn18 = true + goto LABEL18 + } + LABEL18: + if yyr2 || yy2arr2 { + if yyn18 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ChangeScript == nil { + r.EncodeNil() + } else { + x.ChangeScript.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ChangeScript\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ChangeScript`) + } + r.WriteMapElemValue() + if yyn18 { + r.EncodeNil() + } else { + if x.ChangeScript == nil { + r.EncodeNil() + } else { + x.ChangeScript.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Once)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Once\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Once`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Once)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt25 := z.Extension(z.I2Rtid(x.Splay)); yyxt25 != nil { + z.EncExtension(x.Splay, yyxt25) + } else { + r.EncodeInt(int64(x.Splay)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Splay\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Splay`) + } + r.WriteMapElemValue() + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(x.Splay)); yyxt26 != nil { + z.EncExtension(x.Splay, yyxt26) + } else { + r.EncodeInt(int64(x.Splay)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Perms))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Perms)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Perms\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Perms`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Perms))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Perms)) + } + } + } + var yyn30 bool + if x.Uid == nil { + yyn30 = true + goto LABEL30 + } + LABEL30: + if yyr2 || yy2arr2 { + if yyn30 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Uid == nil { + r.EncodeNil() + } else { + yy31 := *x.Uid + if false { + } else { + r.EncodeInt(int64(yy31)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Uid\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Uid`) + } + r.WriteMapElemValue() + if yyn30 { + r.EncodeNil() + } else { + if x.Uid == nil { + r.EncodeNil() + } else { + yy33 := *x.Uid + if false { + } else { + r.EncodeInt(int64(yy33)) + } + } + } + } + var yyn35 bool + if x.Gid == nil { + yyn35 = true + goto LABEL35 + } + LABEL35: + if yyr2 || yy2arr2 { + if yyn35 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Gid == nil { + r.EncodeNil() + } else { + yy36 := *x.Gid + if false { + } else { + r.EncodeInt(int64(yy36)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Gid\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Gid`) + } + r.WriteMapElemValue() + if yyn35 { + r.EncodeNil() + } else { + if x.Gid == nil { + r.EncodeNil() + } else { + yy38 := *x.Gid + if false { + } else { + r.EncodeInt(int64(yy38)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LeftDelim))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LeftDelim)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LeftDelim\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LeftDelim`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LeftDelim))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LeftDelim)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RightDelim))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RightDelim)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RightDelim\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RightDelim`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RightDelim))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RightDelim)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Envvars)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Envvars\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Envvars`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Envvars)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt50 := z.Extension(z.I2Rtid(x.VaultGrace)); yyxt50 != nil { + z.EncExtension(x.VaultGrace, yyxt50) + } else { + r.EncodeInt(int64(x.VaultGrace)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VaultGrace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `VaultGrace`) + } + r.WriteMapElemValue() + if false { + } else if yyxt51 := z.Extension(z.I2Rtid(x.VaultGrace)); yyxt51 != nil { + z.EncExtension(x.VaultGrace, yyxt51) + } else { + r.EncodeInt(int64(x.VaultGrace)) + } + } + var yyn52 bool + if x.Wait == nil { + yyn52 = true + goto LABEL52 + } + LABEL52: + if yyr2 || yy2arr2 { + if yyn52 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Wait == nil { + r.EncodeNil() + } else { + x.Wait.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Wait\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Wait`) + } + r.WriteMapElemValue() + if yyn52 { + r.EncodeNil() + } else { + if x.Wait == nil { + r.EncodeNil() + } else { + x.Wait.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.ErrMissingKey)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ErrMissingKey\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ErrMissingKey`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.ErrMissingKey)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Template) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Template) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "SourcePath": + if r.TryDecodeAsNil() { + x.SourcePath = "" + } else { + x.SourcePath = (string)(r.DecodeString()) + } + case "DestPath": + if r.TryDecodeAsNil() { + x.DestPath = "" + } else { + x.DestPath = (string)(r.DecodeString()) + } + case "EmbeddedTmpl": + if r.TryDecodeAsNil() { + x.EmbeddedTmpl = "" + } else { + x.EmbeddedTmpl = (string)(r.DecodeString()) + } + case "ChangeMode": + if r.TryDecodeAsNil() { + x.ChangeMode = "" + } else { + x.ChangeMode = (string)(r.DecodeString()) + } + case "ChangeSignal": + if r.TryDecodeAsNil() { + x.ChangeSignal = "" + } else { + x.ChangeSignal = (string)(r.DecodeString()) + } + case "ChangeScript": + if r.TryDecodeAsNil() { + if true && x.ChangeScript != nil { + x.ChangeScript = nil + } + } else { + if x.ChangeScript == nil { + x.ChangeScript = new(ChangeScript) + } + + x.ChangeScript.CodecDecodeSelf(d) + } + case "Once": + if r.TryDecodeAsNil() { + x.Once = false + } else { + x.Once = (bool)(r.DecodeBool()) + } + case "Splay": + if r.TryDecodeAsNil() { + x.Splay = 0 + } else { + if false { + } else if yyxt12 := z.Extension(z.I2Rtid(x.Splay)); yyxt12 != nil { + z.DecExtension(x.Splay, yyxt12) + } else { + x.Splay = (time.Duration)(r.DecodeInt64()) + } + } + case "Perms": + if r.TryDecodeAsNil() { + x.Perms = "" + } else { + x.Perms = (string)(r.DecodeString()) + } + case "Uid": + if r.TryDecodeAsNil() { + if true && x.Uid != nil { + x.Uid = nil + } + } else { + if x.Uid == nil { + x.Uid = new(int) + } + + if false { + } else { + *x.Uid = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + } + case "Gid": + if r.TryDecodeAsNil() { + if true && x.Gid != nil { + x.Gid = nil + } + } else { + if x.Gid == nil { + x.Gid = new(int) + } + + if false { + } else { + *x.Gid = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + } + case "LeftDelim": + if r.TryDecodeAsNil() { + x.LeftDelim = "" + } else { + x.LeftDelim = (string)(r.DecodeString()) + } + case "RightDelim": + if r.TryDecodeAsNil() { + x.RightDelim = "" + } else { + x.RightDelim = (string)(r.DecodeString()) + } + case "Envvars": + if r.TryDecodeAsNil() { + x.Envvars = false + } else { + x.Envvars = (bool)(r.DecodeBool()) + } + case "VaultGrace": + if r.TryDecodeAsNil() { + x.VaultGrace = 0 + } else { + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.VaultGrace)); yyxt22 != nil { + z.DecExtension(x.VaultGrace, yyxt22) + } else { + x.VaultGrace = (time.Duration)(r.DecodeInt64()) + } + } + case "Wait": + if r.TryDecodeAsNil() { + if true && x.Wait != nil { + x.Wait = nil + } + } else { + if x.Wait == nil { + x.Wait = new(WaitConfig) + } + + x.Wait.CodecDecodeSelf(d) + } + case "ErrMissingKey": + if r.TryDecodeAsNil() { + x.ErrMissingKey = false + } else { + x.ErrMissingKey = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Template) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj25 int + var yyb25 bool + var yyhl25 bool = l >= 0 + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SourcePath = "" + } else { + x.SourcePath = (string)(r.DecodeString()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DestPath = "" + } else { + x.DestPath = (string)(r.DecodeString()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EmbeddedTmpl = "" + } else { + x.EmbeddedTmpl = (string)(r.DecodeString()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ChangeMode = "" + } else { + x.ChangeMode = (string)(r.DecodeString()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ChangeSignal = "" + } else { + x.ChangeSignal = (string)(r.DecodeString()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ChangeScript != nil { + x.ChangeScript = nil + } + } else { + if x.ChangeScript == nil { + x.ChangeScript = new(ChangeScript) + } + + x.ChangeScript.CodecDecodeSelf(d) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Once = false + } else { + x.Once = (bool)(r.DecodeBool()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Splay = 0 + } else { + if false { + } else if yyxt34 := z.Extension(z.I2Rtid(x.Splay)); yyxt34 != nil { + z.DecExtension(x.Splay, yyxt34) + } else { + x.Splay = (time.Duration)(r.DecodeInt64()) + } + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Perms = "" + } else { + x.Perms = (string)(r.DecodeString()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Uid != nil { + x.Uid = nil + } + } else { + if x.Uid == nil { + x.Uid = new(int) + } + + if false { + } else { + *x.Uid = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Gid != nil { + x.Gid = nil + } + } else { + if x.Gid == nil { + x.Gid = new(int) + } + + if false { + } else { + *x.Gid = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LeftDelim = "" + } else { + x.LeftDelim = (string)(r.DecodeString()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RightDelim = "" + } else { + x.RightDelim = (string)(r.DecodeString()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Envvars = false + } else { + x.Envvars = (bool)(r.DecodeBool()) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VaultGrace = 0 + } else { + if false { + } else if yyxt44 := z.Extension(z.I2Rtid(x.VaultGrace)); yyxt44 != nil { + z.DecExtension(x.VaultGrace, yyxt44) + } else { + x.VaultGrace = (time.Duration)(r.DecodeInt64()) + } + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Wait != nil { + x.Wait = nil + } + } else { + if x.Wait == nil { + x.Wait = new(WaitConfig) + } + + x.Wait.CodecDecodeSelf(d) + } + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ErrMissingKey = false + } else { + x.ErrMissingKey = (bool)(r.DecodeBool()) + } + for { + yyj25++ + if yyhl25 { + yyb25 = yyj25 > l + } else { + yyb25 = r.CheckBreak() + } + if yyb25 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj25-1, "") + } + r.ReadArrayEnd() +} + +func (x *ChangeScript) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Command))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Command)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Command\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Command`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Command))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Command)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Args == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Args), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Args\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Args`) + } + r.WriteMapElemValue() + if x.Args == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Args), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.Timeout)); yyxt10 != nil { + z.EncExtension(x.Timeout, yyxt10) + } else { + r.EncodeInt(int64(x.Timeout)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timeout\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Timeout`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.Timeout)); yyxt11 != nil { + z.EncExtension(x.Timeout, yyxt11) + } else { + r.EncodeInt(int64(x.Timeout)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.FailOnError)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FailOnError\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `FailOnError`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.FailOnError)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ChangeScript) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ChangeScript) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Command": + if r.TryDecodeAsNil() { + x.Command = "" + } else { + x.Command = (string)(r.DecodeString()) + } + case "Args": + if r.TryDecodeAsNil() { + x.Args = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Args), d) + } + } + case "Timeout": + if r.TryDecodeAsNil() { + x.Timeout = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.Timeout)); yyxt8 != nil { + z.DecExtension(x.Timeout, yyxt8) + } else { + x.Timeout = (time.Duration)(r.DecodeInt64()) + } + } + case "FailOnError": + if r.TryDecodeAsNil() { + x.FailOnError = false + } else { + x.FailOnError = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ChangeScript) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Command = "" + } else { + x.Command = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Args = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Args), d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Timeout = 0 + } else { + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.Timeout)); yyxt15 != nil { + z.DecExtension(x.Timeout, yyxt15) + } else { + x.Timeout = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.FailOnError = false + } else { + x.FailOnError = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *WaitConfig) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + var yyn3 bool + if x.Min == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Min == nil { + r.EncodeNil() + } else { + yy4 := *x.Min + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(yy4)); yyxt5 != nil { + z.EncExtension(yy4, yyxt5) + } else { + r.EncodeInt(int64(yy4)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Min\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Min`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Min == nil { + r.EncodeNil() + } else { + yy6 := *x.Min + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(yy6)); yyxt7 != nil { + z.EncExtension(yy6, yyxt7) + } else { + r.EncodeInt(int64(yy6)) + } + } + } + } + var yyn8 bool + if x.Max == nil { + yyn8 = true + goto LABEL8 + } + LABEL8: + if yyr2 || yy2arr2 { + if yyn8 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Max == nil { + r.EncodeNil() + } else { + yy9 := *x.Max + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(yy9)); yyxt10 != nil { + z.EncExtension(yy9, yyxt10) + } else { + r.EncodeInt(int64(yy9)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Max\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Max`) + } + r.WriteMapElemValue() + if yyn8 { + r.EncodeNil() + } else { + if x.Max == nil { + r.EncodeNil() + } else { + yy11 := *x.Max + if false { + } else if yyxt12 := z.Extension(z.I2Rtid(yy11)); yyxt12 != nil { + z.EncExtension(yy11, yyxt12) + } else { + r.EncodeInt(int64(yy11)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *WaitConfig) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *WaitConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Min": + if r.TryDecodeAsNil() { + if true && x.Min != nil { + x.Min = nil + } + } else { + if x.Min == nil { + x.Min = new(time.Duration) + } + + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.Min)); yyxt5 != nil { + z.DecExtension(x.Min, yyxt5) + } else { + *x.Min = (time.Duration)(r.DecodeInt64()) + } + } + case "Max": + if r.TryDecodeAsNil() { + if true && x.Max != nil { + x.Max = nil + } + } else { + if x.Max == nil { + x.Max = new(time.Duration) + } + + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.Max)); yyxt7 != nil { + z.DecExtension(x.Max, yyxt7) + } else { + *x.Max = (time.Duration)(r.DecodeInt64()) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *WaitConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Min != nil { + x.Min = nil + } + } else { + if x.Min == nil { + x.Min = new(time.Duration) + } + + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.Min)); yyxt10 != nil { + z.DecExtension(x.Min, yyxt10) + } else { + *x.Min = (time.Duration)(r.DecodeInt64()) + } + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Max != nil { + x.Max = nil + } + } else { + if x.Max == nil { + x.Max = new(time.Duration) + } + + if false { + } else if yyxt12 := z.Extension(z.I2Rtid(x.Max)); yyxt12 != nil { + z.DecExtension(x.Max, yyxt12) + } else { + *x.Max = (time.Duration)(r.DecodeInt64()) + } + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x AllocStateField) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + r.EncodeUint(uint64(x)) + } +} + +func (x *AllocStateField) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (AllocStateField)(z.C.UintV(r.DecodeUint64(), 8)) + } +} + +func (x *AllocState) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Field.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Field\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Field`) + } + r.WriteMapElemValue() + x.Field.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Value))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Value)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Value\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Value`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Value))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Value)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.Time) + } else if yyxt10 := z.Extension(z.I2Rtid(x.Time)); yyxt10 != nil { + z.EncExtension(x.Time, yyxt10) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Time) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.Time) + } else { + z.EncFallback(x.Time) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Time\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Time`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.Time) + } else if yyxt11 := z.Extension(z.I2Rtid(x.Time)); yyxt11 != nil { + z.EncExtension(x.Time, yyxt11) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Time) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.Time) + } else { + z.EncFallback(x.Time) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocState) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Field": + if r.TryDecodeAsNil() { + x.Field = 0 + } else { + x.Field.CodecDecodeSelf(d) + } + case "Value": + if r.TryDecodeAsNil() { + x.Value = "" + } else { + x.Value = (string)(r.DecodeString()) + } + case "Time": + if r.TryDecodeAsNil() { + x.Time = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.Time = r.DecodeTime() + } else if yyxt7 := z.Extension(z.I2Rtid(x.Time)); yyxt7 != nil { + z.DecExtension(x.Time, yyxt7) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Time) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.Time) + } else { + z.DecFallback(&x.Time, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Field = 0 + } else { + x.Field.CodecDecodeSelf(d) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Value = "" + } else { + x.Value = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Time = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.Time = r.DecodeTime() + } else if yyxt12 := z.Extension(z.I2Rtid(x.Time)); yyxt12 != nil { + z.DecExtension(x.Time, yyxt12) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Time) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.Time) + } else { + z.DecFallback(&x.Time, false) + } + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *TaskState) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.State))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.State)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"State\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `State`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.State))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.State)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Failed)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Failed\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Failed`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Failed)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Restarts)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Restarts\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Restarts`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Restarts)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.LastRestart) + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastRestart)); yyxt13 != nil { + z.EncExtension(x.LastRestart, yyxt13) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.LastRestart) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.LastRestart) + } else { + z.EncFallback(x.LastRestart) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastRestart\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastRestart`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.LastRestart) + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastRestart)); yyxt14 != nil { + z.EncExtension(x.LastRestart, yyxt14) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.LastRestart) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.LastRestart) + } else { + z.EncFallback(x.LastRestart) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.StartedAt) + } else if yyxt16 := z.Extension(z.I2Rtid(x.StartedAt)); yyxt16 != nil { + z.EncExtension(x.StartedAt, yyxt16) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.StartedAt) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.StartedAt) + } else { + z.EncFallback(x.StartedAt) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"StartedAt\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `StartedAt`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.StartedAt) + } else if yyxt17 := z.Extension(z.I2Rtid(x.StartedAt)); yyxt17 != nil { + z.EncExtension(x.StartedAt, yyxt17) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.StartedAt) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.StartedAt) + } else { + z.EncFallback(x.StartedAt) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.FinishedAt) + } else if yyxt19 := z.Extension(z.I2Rtid(x.FinishedAt)); yyxt19 != nil { + z.EncExtension(x.FinishedAt, yyxt19) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.FinishedAt) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.FinishedAt) + } else { + z.EncFallback(x.FinishedAt) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FinishedAt\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `FinishedAt`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.FinishedAt) + } else if yyxt20 := z.Extension(z.I2Rtid(x.FinishedAt)); yyxt20 != nil { + z.EncExtension(x.FinishedAt, yyxt20) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.FinishedAt) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.FinishedAt) + } else { + z.EncFallback(x.FinishedAt) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Events == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoTaskEvent(([]*TaskEvent)(x.Events), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Events\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Events`) + } + r.WriteMapElemValue() + if x.Events == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoTaskEvent(([]*TaskEvent)(x.Events), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Paused.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Paused\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Paused`) + } + r.WriteMapElemValue() + x.Paused.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *TaskState) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *TaskState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "State": + if r.TryDecodeAsNil() { + x.State = "" + } else { + x.State = (string)(r.DecodeString()) + } + case "Failed": + if r.TryDecodeAsNil() { + x.Failed = false + } else { + x.Failed = (bool)(r.DecodeBool()) + } + case "Restarts": + if r.TryDecodeAsNil() { + x.Restarts = 0 + } else { + x.Restarts = (uint64)(r.DecodeUint64()) + } + case "LastRestart": + if r.TryDecodeAsNil() { + x.LastRestart = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.LastRestart = r.DecodeTime() + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastRestart)); yyxt8 != nil { + z.DecExtension(x.LastRestart, yyxt8) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.LastRestart) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.LastRestart) + } else { + z.DecFallback(&x.LastRestart, false) + } + } + case "StartedAt": + if r.TryDecodeAsNil() { + x.StartedAt = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.StartedAt = r.DecodeTime() + } else if yyxt10 := z.Extension(z.I2Rtid(x.StartedAt)); yyxt10 != nil { + z.DecExtension(x.StartedAt, yyxt10) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.StartedAt) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.StartedAt) + } else { + z.DecFallback(&x.StartedAt, false) + } + } + case "FinishedAt": + if r.TryDecodeAsNil() { + x.FinishedAt = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.FinishedAt = r.DecodeTime() + } else if yyxt12 := z.Extension(z.I2Rtid(x.FinishedAt)); yyxt12 != nil { + z.DecExtension(x.FinishedAt, yyxt12) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.FinishedAt) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.FinishedAt) + } else { + z.DecFallback(&x.FinishedAt, false) + } + } + case "Events": + if r.TryDecodeAsNil() { + x.Events = nil + } else { + if false { + } else { + h.decSlicePtrtoTaskEvent((*[]*TaskEvent)(&x.Events), d) + } + } + case "Paused": + if r.TryDecodeAsNil() { + x.Paused = "" + } else { + x.Paused.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *TaskState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj16 int + var yyb16 bool + var yyhl16 bool = l >= 0 + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.State = "" + } else { + x.State = (string)(r.DecodeString()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Failed = false + } else { + x.Failed = (bool)(r.DecodeBool()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Restarts = 0 + } else { + x.Restarts = (uint64)(r.DecodeUint64()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LastRestart = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.LastRestart = r.DecodeTime() + } else if yyxt21 := z.Extension(z.I2Rtid(x.LastRestart)); yyxt21 != nil { + z.DecExtension(x.LastRestart, yyxt21) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.LastRestart) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.LastRestart) + } else { + z.DecFallback(&x.LastRestart, false) + } + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.StartedAt = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.StartedAt = r.DecodeTime() + } else if yyxt23 := z.Extension(z.I2Rtid(x.StartedAt)); yyxt23 != nil { + z.DecExtension(x.StartedAt, yyxt23) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.StartedAt) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.StartedAt) + } else { + z.DecFallback(&x.StartedAt, false) + } + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.FinishedAt = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.FinishedAt = r.DecodeTime() + } else if yyxt25 := z.Extension(z.I2Rtid(x.FinishedAt)); yyxt25 != nil { + z.DecExtension(x.FinishedAt, yyxt25) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.FinishedAt) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.FinishedAt) + } else { + z.DecFallback(&x.FinishedAt, false) + } + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Events = nil + } else { + if false { + } else { + h.decSlicePtrtoTaskEvent((*[]*TaskEvent)(&x.Events), d) + } + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Paused = "" + } else { + x.Paused.CodecDecodeSelf(d) + } + for { + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj16-1, "") + } + r.ReadArrayEnd() +} + +func (x *TaskEvent) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(24) + } else { + r.WriteMapStart(24) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Time)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Time\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Time`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Time)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Message)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Message\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Message`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Message)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DisplayMessage))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DisplayMessage)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DisplayMessage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DisplayMessage`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DisplayMessage))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DisplayMessage)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Details == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Details), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Details\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Details`) + } + r.WriteMapElemValue() + if x.Details == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Details), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.FailsTask)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FailsTask\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `FailsTask`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.FailsTask)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RestartReason))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RestartReason)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RestartReason\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RestartReason`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RestartReason))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RestartReason)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SetupError))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SetupError)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SetupError\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SetupError`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SetupError))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SetupError)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DriverError))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DriverError)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DriverError\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DriverError`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DriverError))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DriverError)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.ExitCode)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ExitCode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ExitCode`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.ExitCode)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Signal)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Signal\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Signal`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Signal)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt37 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt37 != nil { + z.EncExtension(x.KillTimeout, yyxt37) + } else { + r.EncodeInt(int64(x.KillTimeout)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KillTimeout\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KillTimeout`) + } + r.WriteMapElemValue() + if false { + } else if yyxt38 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt38 != nil { + z.EncExtension(x.KillTimeout, yyxt38) + } else { + r.EncodeInt(int64(x.KillTimeout)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KillError))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KillError)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KillError\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KillError`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KillError))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KillError)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KillReason))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KillReason)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KillReason\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KillReason`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KillReason))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KillReason)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.StartDelay)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"StartDelay\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `StartDelay`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.StartDelay)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DownloadError))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DownloadError)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DownloadError\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DownloadError`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DownloadError))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DownloadError)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ValidationError))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ValidationError)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ValidationError\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ValidationError`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ValidationError))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ValidationError)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.DiskLimit)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DiskLimit\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DiskLimit`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.DiskLimit)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.FailedSibling))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FailedSibling)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FailedSibling\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `FailedSibling`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.FailedSibling))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FailedSibling)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.VaultError))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VaultError)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VaultError\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `VaultError`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.VaultError))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VaultError)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskSignalReason))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskSignalReason)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskSignalReason\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskSignalReason`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskSignalReason))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskSignalReason)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskSignal))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskSignal)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskSignal\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskSignal`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskSignal))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskSignal)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DriverMessage))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DriverMessage)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DriverMessage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DriverMessage`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DriverMessage))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DriverMessage)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.GenericSource))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.GenericSource)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"GenericSource\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `GenericSource`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.GenericSource))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.GenericSource)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *TaskEvent) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *TaskEvent) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + case "Time": + if r.TryDecodeAsNil() { + x.Time = 0 + } else { + x.Time = (int64)(r.DecodeInt64()) + } + case "Message": + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = (string)(r.DecodeString()) + } + case "DisplayMessage": + if r.TryDecodeAsNil() { + x.DisplayMessage = "" + } else { + x.DisplayMessage = (string)(r.DecodeString()) + } + case "Details": + if r.TryDecodeAsNil() { + x.Details = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Details), d) + } + } + case "FailsTask": + if r.TryDecodeAsNil() { + x.FailsTask = false + } else { + x.FailsTask = (bool)(r.DecodeBool()) + } + case "RestartReason": + if r.TryDecodeAsNil() { + x.RestartReason = "" + } else { + x.RestartReason = (string)(r.DecodeString()) + } + case "SetupError": + if r.TryDecodeAsNil() { + x.SetupError = "" + } else { + x.SetupError = (string)(r.DecodeString()) + } + case "DriverError": + if r.TryDecodeAsNil() { + x.DriverError = "" + } else { + x.DriverError = (string)(r.DecodeString()) + } + case "ExitCode": + if r.TryDecodeAsNil() { + x.ExitCode = 0 + } else { + x.ExitCode = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Signal": + if r.TryDecodeAsNil() { + x.Signal = 0 + } else { + x.Signal = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "KillTimeout": + if r.TryDecodeAsNil() { + x.KillTimeout = 0 + } else { + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt17 != nil { + z.DecExtension(x.KillTimeout, yyxt17) + } else { + x.KillTimeout = (time.Duration)(r.DecodeInt64()) + } + } + case "KillError": + if r.TryDecodeAsNil() { + x.KillError = "" + } else { + x.KillError = (string)(r.DecodeString()) + } + case "KillReason": + if r.TryDecodeAsNil() { + x.KillReason = "" + } else { + x.KillReason = (string)(r.DecodeString()) + } + case "StartDelay": + if r.TryDecodeAsNil() { + x.StartDelay = 0 + } else { + x.StartDelay = (int64)(r.DecodeInt64()) + } + case "DownloadError": + if r.TryDecodeAsNil() { + x.DownloadError = "" + } else { + x.DownloadError = (string)(r.DecodeString()) + } + case "ValidationError": + if r.TryDecodeAsNil() { + x.ValidationError = "" + } else { + x.ValidationError = (string)(r.DecodeString()) + } + case "DiskLimit": + if r.TryDecodeAsNil() { + x.DiskLimit = 0 + } else { + x.DiskLimit = (int64)(r.DecodeInt64()) + } + case "FailedSibling": + if r.TryDecodeAsNil() { + x.FailedSibling = "" + } else { + x.FailedSibling = (string)(r.DecodeString()) + } + case "VaultError": + if r.TryDecodeAsNil() { + x.VaultError = "" + } else { + x.VaultError = (string)(r.DecodeString()) + } + case "TaskSignalReason": + if r.TryDecodeAsNil() { + x.TaskSignalReason = "" + } else { + x.TaskSignalReason = (string)(r.DecodeString()) + } + case "TaskSignal": + if r.TryDecodeAsNil() { + x.TaskSignal = "" + } else { + x.TaskSignal = (string)(r.DecodeString()) + } + case "DriverMessage": + if r.TryDecodeAsNil() { + x.DriverMessage = "" + } else { + x.DriverMessage = (string)(r.DecodeString()) + } + case "GenericSource": + if r.TryDecodeAsNil() { + x.GenericSource = "" + } else { + x.GenericSource = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *TaskEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj30 int + var yyb30 bool + var yyhl30 bool = l >= 0 + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Time = 0 + } else { + x.Time = (int64)(r.DecodeInt64()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DisplayMessage = "" + } else { + x.DisplayMessage = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Details = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Details), d) + } + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.FailsTask = false + } else { + x.FailsTask = (bool)(r.DecodeBool()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RestartReason = "" + } else { + x.RestartReason = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SetupError = "" + } else { + x.SetupError = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DriverError = "" + } else { + x.DriverError = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ExitCode = 0 + } else { + x.ExitCode = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Signal = 0 + } else { + x.Signal = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.KillTimeout = 0 + } else { + if false { + } else if yyxt44 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt44 != nil { + z.DecExtension(x.KillTimeout, yyxt44) + } else { + x.KillTimeout = (time.Duration)(r.DecodeInt64()) + } + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.KillError = "" + } else { + x.KillError = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.KillReason = "" + } else { + x.KillReason = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.StartDelay = 0 + } else { + x.StartDelay = (int64)(r.DecodeInt64()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DownloadError = "" + } else { + x.DownloadError = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ValidationError = "" + } else { + x.ValidationError = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DiskLimit = 0 + } else { + x.DiskLimit = (int64)(r.DecodeInt64()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.FailedSibling = "" + } else { + x.FailedSibling = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VaultError = "" + } else { + x.VaultError = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskSignalReason = "" + } else { + x.TaskSignalReason = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskSignal = "" + } else { + x.TaskSignal = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DriverMessage = "" + } else { + x.DriverMessage = (string)(r.DecodeString()) + } + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.GenericSource = "" + } else { + x.GenericSource = (string)(r.DecodeString()) + } + for { + yyj30++ + if yyhl30 { + yyb30 = yyj30 > l + } else { + yyb30 = r.CheckBreak() + } + if yyb30 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj30-1, "") + } + r.ReadArrayEnd() +} + +func (x *TaskArtifact) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.GetterSource))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.GetterSource)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"GetterSource\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `GetterSource`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.GetterSource))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.GetterSource)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.GetterOptions == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.GetterOptions), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"GetterOptions\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `GetterOptions`) + } + r.WriteMapElemValue() + if x.GetterOptions == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.GetterOptions), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.GetterHeaders == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.GetterHeaders), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"GetterHeaders\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `GetterHeaders`) + } + r.WriteMapElemValue() + if x.GetterHeaders == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.GetterHeaders), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.GetterMode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.GetterMode)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"GetterMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `GetterMode`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.GetterMode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.GetterMode)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.GetterInsecure)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"GetterInsecure\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `GetterInsecure`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.GetterInsecure)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RelativeDest))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RelativeDest)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RelativeDest\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RelativeDest`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RelativeDest))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RelativeDest)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Chown)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Chown\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Chown`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Chown)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *TaskArtifact) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *TaskArtifact) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "GetterSource": + if r.TryDecodeAsNil() { + x.GetterSource = "" + } else { + x.GetterSource = (string)(r.DecodeString()) + } + case "GetterOptions": + if r.TryDecodeAsNil() { + x.GetterOptions = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.GetterOptions), d) + } + } + case "GetterHeaders": + if r.TryDecodeAsNil() { + x.GetterHeaders = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.GetterHeaders), d) + } + } + case "GetterMode": + if r.TryDecodeAsNil() { + x.GetterMode = "" + } else { + x.GetterMode = (string)(r.DecodeString()) + } + case "GetterInsecure": + if r.TryDecodeAsNil() { + x.GetterInsecure = false + } else { + x.GetterInsecure = (bool)(r.DecodeBool()) + } + case "RelativeDest": + if r.TryDecodeAsNil() { + x.RelativeDest = "" + } else { + x.RelativeDest = (string)(r.DecodeString()) + } + case "Chown": + if r.TryDecodeAsNil() { + x.Chown = false + } else { + x.Chown = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *TaskArtifact) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.GetterSource = "" + } else { + x.GetterSource = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.GetterOptions = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.GetterOptions), d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.GetterHeaders = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.GetterHeaders), d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.GetterMode = "" + } else { + x.GetterMode = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.GetterInsecure = false + } else { + x.GetterInsecure = (bool)(r.DecodeBool()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RelativeDest = "" + } else { + x.RelativeDest = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Chown = false + } else { + x.Chown = (bool)(r.DecodeBool()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x *Constraint) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LTarget))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LTarget)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LTarget\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LTarget`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LTarget))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LTarget)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RTarget))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RTarget)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RTarget\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RTarget`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RTarget))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RTarget)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Operand))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Operand)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Operand\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Operand`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Operand))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Operand)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Constraint) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Constraint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "LTarget": + if r.TryDecodeAsNil() { + x.LTarget = "" + } else { + x.LTarget = (string)(r.DecodeString()) + } + case "RTarget": + if r.TryDecodeAsNil() { + x.RTarget = "" + } else { + x.RTarget = (string)(r.DecodeString()) + } + case "Operand": + if r.TryDecodeAsNil() { + x.Operand = "" + } else { + x.Operand = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Constraint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LTarget = "" + } else { + x.LTarget = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RTarget = "" + } else { + x.RTarget = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Operand = "" + } else { + x.Operand = (string)(r.DecodeString()) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x Constraints) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encConstraints((Constraints)(x), e) + } + } +} + +func (x *Constraints) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + h.decConstraints((*Constraints)(x), d) + } +} + +func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LTarget))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LTarget)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LTarget\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LTarget`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LTarget))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LTarget)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RTarget))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RTarget)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RTarget\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RTarget`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.RTarget))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RTarget)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Operand))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Operand)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Operand\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Operand`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Operand))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Operand)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Weight)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Weight\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Weight`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Weight)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Affinity) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Affinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "LTarget": + if r.TryDecodeAsNil() { + x.LTarget = "" + } else { + x.LTarget = (string)(r.DecodeString()) + } + case "RTarget": + if r.TryDecodeAsNil() { + x.RTarget = "" + } else { + x.RTarget = (string)(r.DecodeString()) + } + case "Operand": + if r.TryDecodeAsNil() { + x.Operand = "" + } else { + x.Operand = (string)(r.DecodeString()) + } + case "Weight": + if r.TryDecodeAsNil() { + x.Weight = 0 + } else { + x.Weight = (int8)(z.C.IntV(r.DecodeInt64(), 8)) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Affinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LTarget = "" + } else { + x.LTarget = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RTarget = "" + } else { + x.RTarget = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Operand = "" + } else { + x.Operand = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Weight = 0 + } else { + x.Weight = (int8)(z.C.IntV(r.DecodeInt64(), 8)) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *Spread) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Attribute))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Attribute)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Attribute\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Attribute`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Attribute))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Attribute)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Weight)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Weight\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Weight`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Weight)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.SpreadTarget == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoSpreadTarget(([]*SpreadTarget)(x.SpreadTarget), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SpreadTarget\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SpreadTarget`) + } + r.WriteMapElemValue() + if x.SpreadTarget == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoSpreadTarget(([]*SpreadTarget)(x.SpreadTarget), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Spread) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Spread) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Attribute": + if r.TryDecodeAsNil() { + x.Attribute = "" + } else { + x.Attribute = (string)(r.DecodeString()) + } + case "Weight": + if r.TryDecodeAsNil() { + x.Weight = 0 + } else { + x.Weight = (int8)(z.C.IntV(r.DecodeInt64(), 8)) + } + case "SpreadTarget": + if r.TryDecodeAsNil() { + x.SpreadTarget = nil + } else { + if false { + } else { + h.decSlicePtrtoSpreadTarget((*[]*SpreadTarget)(&x.SpreadTarget), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Spread) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Attribute = "" + } else { + x.Attribute = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Weight = 0 + } else { + x.Weight = (int8)(z.C.IntV(r.DecodeInt64(), 8)) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SpreadTarget = nil + } else { + if false { + } else { + h.decSlicePtrtoSpreadTarget((*[]*SpreadTarget)(&x.SpreadTarget), d) + } + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x Affinities) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encAffinities((Affinities)(x), e) + } + } +} + +func (x *Affinities) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + h.decAffinities((*Affinities)(x), d) + } +} + +func (x *SpreadTarget) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Value))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Value)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Value\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Value`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Value))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Value)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Percent)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Percent\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Percent`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Percent)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SpreadTarget) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SpreadTarget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Value": + if r.TryDecodeAsNil() { + x.Value = "" + } else { + x.Value = (string)(r.DecodeString()) + } + case "Percent": + if r.TryDecodeAsNil() { + x.Percent = 0 + } else { + x.Percent = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SpreadTarget) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Value = "" + } else { + x.Value = (string)(r.DecodeString()) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Percent = 0 + } else { + x.Percent = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *EphemeralDisk) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Sticky)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Sticky\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Sticky`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Sticky)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.SizeMB)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SizeMB\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SizeMB`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.SizeMB)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Migrate)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Migrate\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Migrate`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Migrate)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EphemeralDisk) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EphemeralDisk) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Sticky": + if r.TryDecodeAsNil() { + x.Sticky = false + } else { + x.Sticky = (bool)(r.DecodeBool()) + } + case "SizeMB": + if r.TryDecodeAsNil() { + x.SizeMB = 0 + } else { + x.SizeMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Migrate": + if r.TryDecodeAsNil() { + x.Migrate = false + } else { + x.Migrate = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EphemeralDisk) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Sticky = false + } else { + x.Sticky = (bool)(r.DecodeBool()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SizeMB = 0 + } else { + x.SizeMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Migrate = false + } else { + x.Migrate = (bool)(r.DecodeBool()) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *Vault) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Role))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Role)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Role\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Role`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Role))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Role)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Cluster))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Cluster)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Cluster\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Cluster`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Cluster))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Cluster)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Env)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Env\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Env`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Env)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.DisableFile)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DisableFile\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DisableFile`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.DisableFile)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeMode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeMode)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ChangeMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ChangeMode`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeMode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeMode)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeSignal))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeSignal)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ChangeSignal\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ChangeSignal`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeSignal))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeSignal)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowTokenExpiration)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowTokenExpiration\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowTokenExpiration`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowTokenExpiration)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Vault) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Vault) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Role": + if r.TryDecodeAsNil() { + x.Role = "" + } else { + x.Role = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "Cluster": + if r.TryDecodeAsNil() { + x.Cluster = "" + } else { + x.Cluster = (string)(r.DecodeString()) + } + case "Env": + if r.TryDecodeAsNil() { + x.Env = false + } else { + x.Env = (bool)(r.DecodeBool()) + } + case "DisableFile": + if r.TryDecodeAsNil() { + x.DisableFile = false + } else { + x.DisableFile = (bool)(r.DecodeBool()) + } + case "ChangeMode": + if r.TryDecodeAsNil() { + x.ChangeMode = "" + } else { + x.ChangeMode = (string)(r.DecodeString()) + } + case "ChangeSignal": + if r.TryDecodeAsNil() { + x.ChangeSignal = "" + } else { + x.ChangeSignal = (string)(r.DecodeString()) + } + case "AllowTokenExpiration": + if r.TryDecodeAsNil() { + x.AllowTokenExpiration = false + } else { + x.AllowTokenExpiration = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Vault) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Role = "" + } else { + x.Role = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Cluster = "" + } else { + x.Cluster = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Env = false + } else { + x.Env = (bool)(r.DecodeBool()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DisableFile = false + } else { + x.DisableFile = (bool)(r.DecodeBool()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ChangeMode = "" + } else { + x.ChangeMode = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ChangeSignal = "" + } else { + x.ChangeSignal = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllowTokenExpiration = false + } else { + x.AllowTokenExpiration = (bool)(r.DecodeBool()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *Deployment) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(16) + } else { + r.WriteMapStart(16) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobVersion)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobVersion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobVersion`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobVersion)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobSpecModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobSpecModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobSpecModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobSpecModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobCreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobCreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobCreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobCreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.IsMultiregion)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IsMultiregion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IsMultiregion`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.IsMultiregion)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.TaskGroups == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoDeploymentState((map[string]*DeploymentState)(x.TaskGroups), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskGroups\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroups`) + } + r.WriteMapElemValue() + if x.TaskGroups == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoDeploymentState((map[string]*DeploymentState)(x.TaskGroups), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Status\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"StatusDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `StatusDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.EvalPriority)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalPriority\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalPriority`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.EvalPriority)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Deployment) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Deployment) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "JobVersion": + if r.TryDecodeAsNil() { + x.JobVersion = 0 + } else { + x.JobVersion = (uint64)(r.DecodeUint64()) + } + case "JobModifyIndex": + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + case "JobSpecModifyIndex": + if r.TryDecodeAsNil() { + x.JobSpecModifyIndex = 0 + } else { + x.JobSpecModifyIndex = (uint64)(r.DecodeUint64()) + } + case "JobCreateIndex": + if r.TryDecodeAsNil() { + x.JobCreateIndex = 0 + } else { + x.JobCreateIndex = (uint64)(r.DecodeUint64()) + } + case "IsMultiregion": + if r.TryDecodeAsNil() { + x.IsMultiregion = false + } else { + x.IsMultiregion = (bool)(r.DecodeBool()) + } + case "TaskGroups": + if r.TryDecodeAsNil() { + x.TaskGroups = nil + } else { + if false { + } else { + h.decMapstringPtrtoDeploymentState((*map[string]*DeploymentState)(&x.TaskGroups), d) + } + } + case "Status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + case "StatusDescription": + if r.TryDecodeAsNil() { + x.StatusDescription = "" + } else { + x.StatusDescription = (string)(r.DecodeString()) + } + case "EvalPriority": + if r.TryDecodeAsNil() { + x.EvalPriority = 0 + } else { + x.EvalPriority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + case "CreateTime": + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + case "ModifyTime": + if r.TryDecodeAsNil() { + x.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Deployment) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj21 int + var yyb21 bool + var yyhl21 bool = l >= 0 + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobVersion = 0 + } else { + x.JobVersion = (uint64)(r.DecodeUint64()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobSpecModifyIndex = 0 + } else { + x.JobSpecModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobCreateIndex = 0 + } else { + x.JobCreateIndex = (uint64)(r.DecodeUint64()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.IsMultiregion = false + } else { + x.IsMultiregion = (bool)(r.DecodeBool()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskGroups = nil + } else { + if false { + } else { + h.decMapstringPtrtoDeploymentState((*map[string]*DeploymentState)(&x.TaskGroups), d) + } + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.StatusDescription = "" + } else { + x.StatusDescription = (string)(r.DecodeString()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalPriority = 0 + } else { + x.EvalPriority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + for { + yyj21++ + if yyhl21 { + yyb21 = yyj21 > l + } else { + yyb21 = r.CheckBreak() + } + if yyb21 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj21-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeploymentState) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(11) + } else { + r.WriteMapStart(11) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AutoRevert)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AutoRevert\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AutoRevert`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AutoRevert)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AutoPromote)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AutoPromote\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AutoPromote`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AutoPromote)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.ProgressDeadline)); yyxt10 != nil { + z.EncExtension(x.ProgressDeadline, yyxt10) + } else { + r.EncodeInt(int64(x.ProgressDeadline)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ProgressDeadline\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ProgressDeadline`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.ProgressDeadline)); yyxt11 != nil { + z.EncExtension(x.ProgressDeadline, yyxt11) + } else { + r.EncodeInt(int64(x.ProgressDeadline)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.RequireProgressBy) + } else if yyxt13 := z.Extension(z.I2Rtid(x.RequireProgressBy)); yyxt13 != nil { + z.EncExtension(x.RequireProgressBy, yyxt13) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.RequireProgressBy) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.RequireProgressBy) + } else { + z.EncFallback(x.RequireProgressBy) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RequireProgressBy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RequireProgressBy`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.RequireProgressBy) + } else if yyxt14 := z.Extension(z.I2Rtid(x.RequireProgressBy)); yyxt14 != nil { + z.EncExtension(x.RequireProgressBy, yyxt14) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.RequireProgressBy) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.RequireProgressBy) + } else { + z.EncFallback(x.RequireProgressBy) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Promoted)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Promoted\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Promoted`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Promoted)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.PlacedCanaries == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.PlacedCanaries), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PlacedCanaries\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PlacedCanaries`) + } + r.WriteMapElemValue() + if x.PlacedCanaries == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.PlacedCanaries), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.DesiredCanaries)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DesiredCanaries\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredCanaries`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.DesiredCanaries)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.DesiredTotal)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DesiredTotal\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredTotal`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.DesiredTotal)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PlacedAllocs)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PlacedAllocs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PlacedAllocs`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PlacedAllocs)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.HealthyAllocs)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"HealthyAllocs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `HealthyAllocs`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.HealthyAllocs)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.UnhealthyAllocs)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"UnhealthyAllocs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `UnhealthyAllocs`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.UnhealthyAllocs)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeploymentState) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeploymentState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AutoRevert": + if r.TryDecodeAsNil() { + x.AutoRevert = false + } else { + x.AutoRevert = (bool)(r.DecodeBool()) + } + case "AutoPromote": + if r.TryDecodeAsNil() { + x.AutoPromote = false + } else { + x.AutoPromote = (bool)(r.DecodeBool()) + } + case "ProgressDeadline": + if r.TryDecodeAsNil() { + x.ProgressDeadline = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.ProgressDeadline)); yyxt7 != nil { + z.DecExtension(x.ProgressDeadline, yyxt7) + } else { + x.ProgressDeadline = (time.Duration)(r.DecodeInt64()) + } + } + case "RequireProgressBy": + if r.TryDecodeAsNil() { + x.RequireProgressBy = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.RequireProgressBy = r.DecodeTime() + } else if yyxt9 := z.Extension(z.I2Rtid(x.RequireProgressBy)); yyxt9 != nil { + z.DecExtension(x.RequireProgressBy, yyxt9) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.RequireProgressBy) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.RequireProgressBy) + } else { + z.DecFallback(&x.RequireProgressBy, false) + } + } + case "Promoted": + if r.TryDecodeAsNil() { + x.Promoted = false + } else { + x.Promoted = (bool)(r.DecodeBool()) + } + case "PlacedCanaries": + if r.TryDecodeAsNil() { + x.PlacedCanaries = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.PlacedCanaries), d) + } + } + case "DesiredCanaries": + if r.TryDecodeAsNil() { + x.DesiredCanaries = 0 + } else { + x.DesiredCanaries = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "DesiredTotal": + if r.TryDecodeAsNil() { + x.DesiredTotal = 0 + } else { + x.DesiredTotal = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "PlacedAllocs": + if r.TryDecodeAsNil() { + x.PlacedAllocs = 0 + } else { + x.PlacedAllocs = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "HealthyAllocs": + if r.TryDecodeAsNil() { + x.HealthyAllocs = 0 + } else { + x.HealthyAllocs = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "UnhealthyAllocs": + if r.TryDecodeAsNil() { + x.UnhealthyAllocs = 0 + } else { + x.UnhealthyAllocs = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeploymentState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AutoRevert = false + } else { + x.AutoRevert = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AutoPromote = false + } else { + x.AutoPromote = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ProgressDeadline = 0 + } else { + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.ProgressDeadline)); yyxt22 != nil { + z.DecExtension(x.ProgressDeadline, yyxt22) + } else { + x.ProgressDeadline = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RequireProgressBy = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.RequireProgressBy = r.DecodeTime() + } else if yyxt24 := z.Extension(z.I2Rtid(x.RequireProgressBy)); yyxt24 != nil { + z.DecExtension(x.RequireProgressBy, yyxt24) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.RequireProgressBy) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.RequireProgressBy) + } else { + z.DecFallback(&x.RequireProgressBy, false) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Promoted = false + } else { + x.Promoted = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PlacedCanaries = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.PlacedCanaries), d) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DesiredCanaries = 0 + } else { + x.DesiredCanaries = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DesiredTotal = 0 + } else { + x.DesiredTotal = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PlacedAllocs = 0 + } else { + x.PlacedAllocs = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.HealthyAllocs = 0 + } else { + x.HealthyAllocs = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.UnhealthyAllocs = 0 + } else { + x.UnhealthyAllocs = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *DeploymentStatusUpdate) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Status\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"StatusDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `StatusDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.UpdatedAt)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"UpdatedAt\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `UpdatedAt`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.UpdatedAt)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DeploymentStatusUpdate) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DeploymentStatusUpdate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DeploymentID": + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + case "Status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + case "StatusDescription": + if r.TryDecodeAsNil() { + x.StatusDescription = "" + } else { + x.StatusDescription = (string)(r.DecodeString()) + } + case "UpdatedAt": + if r.TryDecodeAsNil() { + x.UpdatedAt = 0 + } else { + x.UpdatedAt = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DeploymentStatusUpdate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.StatusDescription = "" + } else { + x.StatusDescription = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.UpdatedAt = 0 + } else { + x.UpdatedAt = (int64)(r.DecodeInt64()) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *RescheduleTracker) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Events == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoRescheduleEvent(([]*RescheduleEvent)(x.Events), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Events\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Events`) + } + r.WriteMapElemValue() + if x.Events == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoRescheduleEvent(([]*RescheduleEvent)(x.Events), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.LastReschedule.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastReschedule\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastReschedule`) + } + r.WriteMapElemValue() + x.LastReschedule.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *RescheduleTracker) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *RescheduleTracker) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Events": + if r.TryDecodeAsNil() { + x.Events = nil + } else { + if false { + } else { + h.decSlicePtrtoRescheduleEvent((*[]*RescheduleEvent)(&x.Events), d) + } + } + case "LastReschedule": + if r.TryDecodeAsNil() { + x.LastReschedule = "" + } else { + x.LastReschedule.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *RescheduleTracker) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Events = nil + } else { + if false { + } else { + h.decSlicePtrtoRescheduleEvent((*[]*RescheduleEvent)(&x.Events), d) + } + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LastReschedule = "" + } else { + x.LastReschedule.CodecDecodeSelf(d) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x RescheduleTrackerAnnotation) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) + } + } +} + +func (x *RescheduleTrackerAnnotation) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (RescheduleTrackerAnnotation)(r.DecodeString()) + } +} + +func (x *RescheduleEvent) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.RescheduleTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RescheduleTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RescheduleTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.RescheduleTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PrevAllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PrevAllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PrevAllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PrevAllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PrevAllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PrevAllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PrevNodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PrevNodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PrevNodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PrevNodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PrevNodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PrevNodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.Delay)); yyxt13 != nil { + z.EncExtension(x.Delay, yyxt13) + } else { + r.EncodeInt(int64(x.Delay)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Delay\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Delay`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.Delay)); yyxt14 != nil { + z.EncExtension(x.Delay, yyxt14) + } else { + r.EncodeInt(int64(x.Delay)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *RescheduleEvent) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *RescheduleEvent) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "RescheduleTime": + if r.TryDecodeAsNil() { + x.RescheduleTime = 0 + } else { + x.RescheduleTime = (int64)(r.DecodeInt64()) + } + case "PrevAllocID": + if r.TryDecodeAsNil() { + x.PrevAllocID = "" + } else { + x.PrevAllocID = (string)(r.DecodeString()) + } + case "PrevNodeID": + if r.TryDecodeAsNil() { + x.PrevNodeID = "" + } else { + x.PrevNodeID = (string)(r.DecodeString()) + } + case "Delay": + if r.TryDecodeAsNil() { + x.Delay = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.Delay)); yyxt8 != nil { + z.DecExtension(x.Delay, yyxt8) + } else { + x.Delay = (time.Duration)(r.DecodeInt64()) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *RescheduleEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RescheduleTime = 0 + } else { + x.RescheduleTime = (int64)(r.DecodeInt64()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PrevAllocID = "" + } else { + x.PrevAllocID = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PrevNodeID = "" + } else { + x.PrevNodeID = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Delay = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.Delay)); yyxt14 != nil { + z.DecExtension(x.Delay, yyxt14) + } else { + x.Delay = (time.Duration)(r.DecodeInt64()) + } + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *DesiredTransition) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + var yyn3 bool + if x.Migrate == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Migrate == nil { + r.EncodeNil() + } else { + yy4 := *x.Migrate + if false { + } else { + r.EncodeBool(bool(yy4)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Migrate\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Migrate`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Migrate == nil { + r.EncodeNil() + } else { + yy6 := *x.Migrate + if false { + } else { + r.EncodeBool(bool(yy6)) + } + } + } + } + var yyn8 bool + if x.Reschedule == nil { + yyn8 = true + goto LABEL8 + } + LABEL8: + if yyr2 || yy2arr2 { + if yyn8 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Reschedule == nil { + r.EncodeNil() + } else { + yy9 := *x.Reschedule + if false { + } else { + r.EncodeBool(bool(yy9)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reschedule\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reschedule`) + } + r.WriteMapElemValue() + if yyn8 { + r.EncodeNil() + } else { + if x.Reschedule == nil { + r.EncodeNil() + } else { + yy11 := *x.Reschedule + if false { + } else { + r.EncodeBool(bool(yy11)) + } + } + } + } + var yyn13 bool + if x.ForceReschedule == nil { + yyn13 = true + goto LABEL13 + } + LABEL13: + if yyr2 || yy2arr2 { + if yyn13 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ForceReschedule == nil { + r.EncodeNil() + } else { + yy14 := *x.ForceReschedule + if false { + } else { + r.EncodeBool(bool(yy14)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ForceReschedule\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ForceReschedule`) + } + r.WriteMapElemValue() + if yyn13 { + r.EncodeNil() + } else { + if x.ForceReschedule == nil { + r.EncodeNil() + } else { + yy16 := *x.ForceReschedule + if false { + } else { + r.EncodeBool(bool(yy16)) + } + } + } + } + var yyn18 bool + if x.NoShutdownDelay == nil { + yyn18 = true + goto LABEL18 + } + LABEL18: + if yyr2 || yy2arr2 { + if yyn18 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.NoShutdownDelay == nil { + r.EncodeNil() + } else { + yy19 := *x.NoShutdownDelay + if false { + } else { + r.EncodeBool(bool(yy19)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NoShutdownDelay\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NoShutdownDelay`) + } + r.WriteMapElemValue() + if yyn18 { + r.EncodeNil() + } else { + if x.NoShutdownDelay == nil { + r.EncodeNil() + } else { + yy21 := *x.NoShutdownDelay + if false { + } else { + r.EncodeBool(bool(yy21)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DesiredTransition) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DesiredTransition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Migrate": + if r.TryDecodeAsNil() { + if true && x.Migrate != nil { + x.Migrate = nil + } + } else { + if x.Migrate == nil { + x.Migrate = new(bool) + } + + if false { + } else { + *x.Migrate = (bool)(r.DecodeBool()) + } + } + case "Reschedule": + if r.TryDecodeAsNil() { + if true && x.Reschedule != nil { + x.Reschedule = nil + } + } else { + if x.Reschedule == nil { + x.Reschedule = new(bool) + } + + if false { + } else { + *x.Reschedule = (bool)(r.DecodeBool()) + } + } + case "ForceReschedule": + if r.TryDecodeAsNil() { + if true && x.ForceReschedule != nil { + x.ForceReschedule = nil + } + } else { + if x.ForceReschedule == nil { + x.ForceReschedule = new(bool) + } + + if false { + } else { + *x.ForceReschedule = (bool)(r.DecodeBool()) + } + } + case "NoShutdownDelay": + if r.TryDecodeAsNil() { + if true && x.NoShutdownDelay != nil { + x.NoShutdownDelay = nil + } + } else { + if x.NoShutdownDelay == nil { + x.NoShutdownDelay = new(bool) + } + + if false { + } else { + *x.NoShutdownDelay = (bool)(r.DecodeBool()) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DesiredTransition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Migrate != nil { + x.Migrate = nil + } + } else { + if x.Migrate == nil { + x.Migrate = new(bool) + } + + if false { + } else { + *x.Migrate = (bool)(r.DecodeBool()) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Reschedule != nil { + x.Reschedule = nil + } + } else { + if x.Reschedule == nil { + x.Reschedule = new(bool) + } + + if false { + } else { + *x.Reschedule = (bool)(r.DecodeBool()) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ForceReschedule != nil { + x.ForceReschedule = nil + } + } else { + if x.ForceReschedule == nil { + x.ForceReschedule = new(bool) + } + + if false { + } else { + *x.ForceReschedule = (bool)(r.DecodeBool()) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.NoShutdownDelay != nil { + x.NoShutdownDelay = nil + } + } else { + if x.NoShutdownDelay == nil { + x.NoShutdownDelay = new(bool) + } + + if false { + } else { + *x.NoShutdownDelay = (bool)(r.DecodeBool()) + } + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *Allocation) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyq2 = [37]bool{ // should field at this index be written? + x.ID != "", // ID + x.Namespace != "", // Namespace + x.EvalID != "", // EvalID + x.Name != "", // Name + x.NodeID != "", // NodeID + x.NodeName != "", // NodeName + x.JobID != "", // JobID + x.Job != nil, // Job + x.TaskGroup != "", // TaskGroup + x.Resources != nil, // Resources + x.SharedResources != nil, // SharedResources + len(x.TaskResources) != 0, // TaskResources + x.AllocatedResources != nil, // AllocatedResources + x.Metrics != nil, // Metrics + x.DesiredStatus != "", // DesiredStatus + x.DesiredDescription != "", // DesiredDescription + x.DesiredTransition != DesiredTransition{}, // DesiredTransition + x.ClientStatus != "", // ClientStatus + x.ClientDescription != "", // ClientDescription + len(x.TaskStates) != 0, // TaskStates + len(x.AllocStates) != 0, // AllocStates + x.PreviousAllocation != "", // PreviousAllocation + x.NextAllocation != "", // NextAllocation + x.DeploymentID != "", // DeploymentID + x.DeploymentStatus != nil, // DeploymentStatus + x.RescheduleTracker != nil, // RescheduleTracker + x.NetworkStatus != nil, // NetworkStatus + x.FollowupEvalID != "", // FollowupEvalID + len(x.PreemptedAllocations) != 0, // PreemptedAllocations + x.PreemptedByAllocation != "", // PreemptedByAllocation + len(x.SignedIdentities) != 0, // SignedIdentities + x.SigningKeyID != "", // SigningKeyID + x.CreateIndex != 0, // CreateIndex + x.ModifyIndex != 0, // ModifyIndex + x.AllocModifyIndex != 0, // AllocModifyIndex + x.CreateTime != 0, // CreateTime + x.ModifyTime != 0, // ModifyTime + } + _ = yyq2 + if yyr2 || yy2arr2 { + r.WriteArrayStart(37) + } else { + var yynn2 int + for _, b := range yyq2 { + if b { + yynn2++ + } + } + r.WriteMapStart(yynn2) + yynn2 = 0 + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[0] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[0] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[1] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[1] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[2] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[2] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[3] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[3] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[4] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[4] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[5] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeName)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[5] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeName)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[6] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[6] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + } + var yyn24 bool + if x.Job == nil { + yyn24 = true + goto LABEL24 + } + LABEL24: + if yyr2 || yy2arr2 { + if yyn24 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[7] { + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[7] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Job\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) + } + r.WriteMapElemValue() + if yyn24 { + r.EncodeNil() + } else { + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[8] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroup))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroup)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[8] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskGroup\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroup`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroup))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroup)) + } + } + } + } + var yyn30 bool + if x.Resources == nil { + yyn30 = true + goto LABEL30 + } + LABEL30: + if yyr2 || yy2arr2 { + if yyn30 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[9] { + if x.Resources == nil { + r.EncodeNil() + } else { + x.Resources.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[9] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Resources\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Resources`) + } + r.WriteMapElemValue() + if yyn30 { + r.EncodeNil() + } else { + if x.Resources == nil { + r.EncodeNil() + } else { + x.Resources.CodecEncodeSelf(e) + } + } + } + } + var yyn33 bool + if x.SharedResources == nil { + yyn33 = true + goto LABEL33 + } + LABEL33: + if yyr2 || yy2arr2 { + if yyn33 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[10] { + if x.SharedResources == nil { + r.EncodeNil() + } else { + x.SharedResources.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[10] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SharedResources\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SharedResources`) + } + r.WriteMapElemValue() + if yyn33 { + r.EncodeNil() + } else { + if x.SharedResources == nil { + r.EncodeNil() + } else { + x.SharedResources.CodecEncodeSelf(e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[11] { + if x.TaskResources == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoResources((map[string]*Resources)(x.TaskResources), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[11] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskResources\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskResources`) + } + r.WriteMapElemValue() + if x.TaskResources == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoResources((map[string]*Resources)(x.TaskResources), e) + } + } + } + } + var yyn39 bool + if x.AllocatedResources == nil { + yyn39 = true + goto LABEL39 + } + LABEL39: + if yyr2 || yy2arr2 { + if yyn39 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[12] { + if x.AllocatedResources == nil { + r.EncodeNil() + } else { + x.AllocatedResources.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[12] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocatedResources\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocatedResources`) + } + r.WriteMapElemValue() + if yyn39 { + r.EncodeNil() + } else { + if x.AllocatedResources == nil { + r.EncodeNil() + } else { + x.AllocatedResources.CodecEncodeSelf(e) + } + } + } + } + var yyn42 bool + if x.Metrics == nil { + yyn42 = true + goto LABEL42 + } + LABEL42: + if yyr2 || yy2arr2 { + if yyn42 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[13] { + if x.Metrics == nil { + r.EncodeNil() + } else { + x.Metrics.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[13] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Metrics\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Metrics`) + } + r.WriteMapElemValue() + if yyn42 { + r.EncodeNil() + } else { + if x.Metrics == nil { + r.EncodeNil() + } else { + x.Metrics.CodecEncodeSelf(e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[14] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredStatus))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredStatus)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[14] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DesiredStatus\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredStatus`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredStatus))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredStatus)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[15] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredDescription)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[15] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DesiredDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredDescription)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[16] { + yy52 := &x.DesiredTransition + yy52.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2[16] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DesiredTransition\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredTransition`) + } + r.WriteMapElemValue() + yy54 := &x.DesiredTransition + yy54.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[17] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientStatus))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientStatus)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[17] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ClientStatus\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ClientStatus`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientStatus))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientStatus)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[18] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientDescription)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[18] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ClientDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ClientDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientDescription)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[19] { + if x.TaskStates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoTaskState((map[string]*TaskState)(x.TaskStates), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[19] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskStates\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskStates`) + } + r.WriteMapElemValue() + if x.TaskStates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoTaskState((map[string]*TaskState)(x.TaskStates), e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[20] { + if x.AllocStates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocState(([]*AllocState)(x.AllocStates), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[20] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocStates\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocStates`) + } + r.WriteMapElemValue() + if x.AllocStates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocState(([]*AllocState)(x.AllocStates), e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[21] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PreviousAllocation))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreviousAllocation)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[21] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PreviousAllocation\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PreviousAllocation`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PreviousAllocation))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreviousAllocation)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[22] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextAllocation))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextAllocation)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[22] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextAllocation\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextAllocation`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextAllocation))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextAllocation)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[23] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[23] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } + } + var yyn77 bool + if x.DeploymentStatus == nil { + yyn77 = true + goto LABEL77 + } + LABEL77: + if yyr2 || yy2arr2 { + if yyn77 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[24] { + if x.DeploymentStatus == nil { + r.EncodeNil() + } else { + x.DeploymentStatus.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[24] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentStatus\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentStatus`) + } + r.WriteMapElemValue() + if yyn77 { + r.EncodeNil() + } else { + if x.DeploymentStatus == nil { + r.EncodeNil() + } else { + x.DeploymentStatus.CodecEncodeSelf(e) + } + } + } + } + var yyn80 bool + if x.RescheduleTracker == nil { + yyn80 = true + goto LABEL80 + } + LABEL80: + if yyr2 || yy2arr2 { + if yyn80 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[25] { + if x.RescheduleTracker == nil { + r.EncodeNil() + } else { + x.RescheduleTracker.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[25] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RescheduleTracker\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RescheduleTracker`) + } + r.WriteMapElemValue() + if yyn80 { + r.EncodeNil() + } else { + if x.RescheduleTracker == nil { + r.EncodeNil() + } else { + x.RescheduleTracker.CodecEncodeSelf(e) + } + } + } + } + var yyn83 bool + if x.NetworkStatus == nil { + yyn83 = true + goto LABEL83 + } + LABEL83: + if yyr2 || yy2arr2 { + if yyn83 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[26] { + if x.NetworkStatus == nil { + r.EncodeNil() + } else { + x.NetworkStatus.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[26] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NetworkStatus\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NetworkStatus`) + } + r.WriteMapElemValue() + if yyn83 { + r.EncodeNil() + } else { + if x.NetworkStatus == nil { + r.EncodeNil() + } else { + x.NetworkStatus.CodecEncodeSelf(e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[27] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.FollowupEvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FollowupEvalID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[27] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FollowupEvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `FollowupEvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.FollowupEvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FollowupEvalID)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[28] { + if x.PreemptedAllocations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.PreemptedAllocations), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[28] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PreemptedAllocations\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptedAllocations`) + } + r.WriteMapElemValue() + if x.PreemptedAllocations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.PreemptedAllocations), e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[29] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PreemptedByAllocation))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreemptedByAllocation)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[29] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PreemptedByAllocation\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptedByAllocation`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PreemptedByAllocation))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreemptedByAllocation)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[30] { + if x.SignedIdentities == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.SignedIdentities), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[30] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SignedIdentities\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SignedIdentities`) + } + r.WriteMapElemValue() + if x.SignedIdentities == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.SignedIdentities), e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[31] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SigningKeyID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SigningKeyID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[31] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SigningKeyID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SigningKeyID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SigningKeyID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SigningKeyID)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[32] { + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.EncodeUint(0) + } + } else { + if yyq2[32] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[33] { + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.EncodeUint(0) + } + } else { + if yyq2[33] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[34] { + if false { + } else { + r.EncodeUint(uint64(x.AllocModifyIndex)) + } + } else { + r.EncodeUint(0) + } + } else { + if yyq2[34] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.AllocModifyIndex)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[35] { + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2[35] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[36] { + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2[36] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Allocation) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Allocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "EvalID": + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "NodeName": + if r.TryDecodeAsNil() { + x.NodeName = "" + } else { + x.NodeName = (string)(r.DecodeString()) + } + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "Job": + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + case "TaskGroup": + if r.TryDecodeAsNil() { + x.TaskGroup = "" + } else { + x.TaskGroup = (string)(r.DecodeString()) + } + case "Resources": + if r.TryDecodeAsNil() { + if true && x.Resources != nil { + x.Resources = nil + } + } else { + if x.Resources == nil { + x.Resources = new(Resources) + } + + x.Resources.CodecDecodeSelf(d) + } + case "SharedResources": + if r.TryDecodeAsNil() { + if true && x.SharedResources != nil { + x.SharedResources = nil + } + } else { + if x.SharedResources == nil { + x.SharedResources = new(Resources) + } + + x.SharedResources.CodecDecodeSelf(d) + } + case "TaskResources": + if r.TryDecodeAsNil() { + x.TaskResources = nil + } else { + if false { + } else { + h.decMapstringPtrtoResources((*map[string]*Resources)(&x.TaskResources), d) + } + } + case "AllocatedResources": + if r.TryDecodeAsNil() { + if true && x.AllocatedResources != nil { + x.AllocatedResources = nil + } + } else { + if x.AllocatedResources == nil { + x.AllocatedResources = new(AllocatedResources) + } + + x.AllocatedResources.CodecDecodeSelf(d) + } + case "Metrics": + if r.TryDecodeAsNil() { + if true && x.Metrics != nil { + x.Metrics = nil + } + } else { + if x.Metrics == nil { + x.Metrics = new(AllocMetric) + } + + x.Metrics.CodecDecodeSelf(d) + } + case "DesiredStatus": + if r.TryDecodeAsNil() { + x.DesiredStatus = "" + } else { + x.DesiredStatus = (string)(r.DecodeString()) + } + case "DesiredDescription": + if r.TryDecodeAsNil() { + x.DesiredDescription = "" + } else { + x.DesiredDescription = (string)(r.DecodeString()) + } + case "DesiredTransition": + if r.TryDecodeAsNil() { + x.DesiredTransition = DesiredTransition{} + } else { + x.DesiredTransition.CodecDecodeSelf(d) + } + case "ClientStatus": + if r.TryDecodeAsNil() { + x.ClientStatus = "" + } else { + x.ClientStatus = (string)(r.DecodeString()) + } + case "ClientDescription": + if r.TryDecodeAsNil() { + x.ClientDescription = "" + } else { + x.ClientDescription = (string)(r.DecodeString()) + } + case "TaskStates": + if r.TryDecodeAsNil() { + x.TaskStates = nil + } else { + if false { + } else { + h.decMapstringPtrtoTaskState((*map[string]*TaskState)(&x.TaskStates), d) + } + } + case "AllocStates": + if r.TryDecodeAsNil() { + x.AllocStates = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocState((*[]*AllocState)(&x.AllocStates), d) + } + } + case "PreviousAllocation": + if r.TryDecodeAsNil() { + x.PreviousAllocation = "" + } else { + x.PreviousAllocation = (string)(r.DecodeString()) + } + case "NextAllocation": + if r.TryDecodeAsNil() { + x.NextAllocation = "" + } else { + x.NextAllocation = (string)(r.DecodeString()) + } + case "DeploymentID": + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + case "DeploymentStatus": + if r.TryDecodeAsNil() { + if true && x.DeploymentStatus != nil { + x.DeploymentStatus = nil + } + } else { + if x.DeploymentStatus == nil { + x.DeploymentStatus = new(AllocDeploymentStatus) + } + + x.DeploymentStatus.CodecDecodeSelf(d) + } + case "RescheduleTracker": + if r.TryDecodeAsNil() { + if true && x.RescheduleTracker != nil { + x.RescheduleTracker = nil + } + } else { + if x.RescheduleTracker == nil { + x.RescheduleTracker = new(RescheduleTracker) + } + + x.RescheduleTracker.CodecDecodeSelf(d) + } + case "NetworkStatus": + if r.TryDecodeAsNil() { + if true && x.NetworkStatus != nil { + x.NetworkStatus = nil + } + } else { + if x.NetworkStatus == nil { + x.NetworkStatus = new(AllocNetworkStatus) + } + + x.NetworkStatus.CodecDecodeSelf(d) + } + case "FollowupEvalID": + if r.TryDecodeAsNil() { + x.FollowupEvalID = "" + } else { + x.FollowupEvalID = (string)(r.DecodeString()) + } + case "PreemptedAllocations": + if r.TryDecodeAsNil() { + x.PreemptedAllocations = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.PreemptedAllocations), d) + } + } + case "PreemptedByAllocation": + if r.TryDecodeAsNil() { + x.PreemptedByAllocation = "" + } else { + x.PreemptedByAllocation = (string)(r.DecodeString()) + } + case "SignedIdentities": + if r.TryDecodeAsNil() { + x.SignedIdentities = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.SignedIdentities), d) + } + } + case "SigningKeyID": + if r.TryDecodeAsNil() { + x.SigningKeyID = "" + } else { + x.SigningKeyID = (string)(r.DecodeString()) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + case "AllocModifyIndex": + if r.TryDecodeAsNil() { + x.AllocModifyIndex = 0 + } else { + x.AllocModifyIndex = (uint64)(r.DecodeUint64()) + } + case "CreateTime": + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + case "ModifyTime": + if r.TryDecodeAsNil() { + x.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Allocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj46 int + var yyb46 bool + var yyhl46 bool = l >= 0 + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeName = "" + } else { + x.NodeName = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskGroup = "" + } else { + x.TaskGroup = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Resources != nil { + x.Resources = nil + } + } else { + if x.Resources == nil { + x.Resources = new(Resources) + } + + x.Resources.CodecDecodeSelf(d) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.SharedResources != nil { + x.SharedResources = nil + } + } else { + if x.SharedResources == nil { + x.SharedResources = new(Resources) + } + + x.SharedResources.CodecDecodeSelf(d) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskResources = nil + } else { + if false { + } else { + h.decMapstringPtrtoResources((*map[string]*Resources)(&x.TaskResources), d) + } + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.AllocatedResources != nil { + x.AllocatedResources = nil + } + } else { + if x.AllocatedResources == nil { + x.AllocatedResources = new(AllocatedResources) + } + + x.AllocatedResources.CodecDecodeSelf(d) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Metrics != nil { + x.Metrics = nil + } + } else { + if x.Metrics == nil { + x.Metrics = new(AllocMetric) + } + + x.Metrics.CodecDecodeSelf(d) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DesiredStatus = "" + } else { + x.DesiredStatus = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DesiredDescription = "" + } else { + x.DesiredDescription = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DesiredTransition = DesiredTransition{} + } else { + x.DesiredTransition.CodecDecodeSelf(d) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ClientStatus = "" + } else { + x.ClientStatus = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ClientDescription = "" + } else { + x.ClientDescription = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskStates = nil + } else { + if false { + } else { + h.decMapstringPtrtoTaskState((*map[string]*TaskState)(&x.TaskStates), d) + } + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocStates = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocState((*[]*AllocState)(&x.AllocStates), d) + } + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PreviousAllocation = "" + } else { + x.PreviousAllocation = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NextAllocation = "" + } else { + x.NextAllocation = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.DeploymentStatus != nil { + x.DeploymentStatus = nil + } + } else { + if x.DeploymentStatus == nil { + x.DeploymentStatus = new(AllocDeploymentStatus) + } + + x.DeploymentStatus.CodecDecodeSelf(d) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.RescheduleTracker != nil { + x.RescheduleTracker = nil + } + } else { + if x.RescheduleTracker == nil { + x.RescheduleTracker = new(RescheduleTracker) + } + + x.RescheduleTracker.CodecDecodeSelf(d) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.NetworkStatus != nil { + x.NetworkStatus = nil + } + } else { + if x.NetworkStatus == nil { + x.NetworkStatus = new(AllocNetworkStatus) + } + + x.NetworkStatus.CodecDecodeSelf(d) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.FollowupEvalID = "" + } else { + x.FollowupEvalID = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PreemptedAllocations = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.PreemptedAllocations), d) + } + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PreemptedByAllocation = "" + } else { + x.PreemptedByAllocation = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SignedIdentities = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.SignedIdentities), d) + } + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SigningKeyID = "" + } else { + x.SigningKeyID = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocModifyIndex = 0 + } else { + x.AllocModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + for { + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj46-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocationDiff) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyq2 = [37]bool{ // should field at this index be written? + x.ID != "", // ID + x.Namespace != "", // Namespace + x.EvalID != "", // EvalID + x.Name != "", // Name + x.NodeID != "", // NodeID + x.NodeName != "", // NodeName + x.JobID != "", // JobID + x.Job != nil, // Job + x.TaskGroup != "", // TaskGroup + x.Resources != nil, // Resources + x.SharedResources != nil, // SharedResources + len(x.TaskResources) != 0, // TaskResources + x.AllocatedResources != nil, // AllocatedResources + x.Metrics != nil, // Metrics + x.DesiredStatus != "", // DesiredStatus + x.DesiredDescription != "", // DesiredDescription + x.DesiredTransition != DesiredTransition{}, // DesiredTransition + x.ClientStatus != "", // ClientStatus + x.ClientDescription != "", // ClientDescription + len(x.TaskStates) != 0, // TaskStates + len(x.AllocStates) != 0, // AllocStates + x.PreviousAllocation != "", // PreviousAllocation + x.NextAllocation != "", // NextAllocation + x.DeploymentID != "", // DeploymentID + x.DeploymentStatus != nil, // DeploymentStatus + x.RescheduleTracker != nil, // RescheduleTracker + x.NetworkStatus != nil, // NetworkStatus + x.FollowupEvalID != "", // FollowupEvalID + len(x.PreemptedAllocations) != 0, // PreemptedAllocations + x.PreemptedByAllocation != "", // PreemptedByAllocation + len(x.SignedIdentities) != 0, // SignedIdentities + x.SigningKeyID != "", // SigningKeyID + x.CreateIndex != 0, // CreateIndex + x.ModifyIndex != 0, // ModifyIndex + x.AllocModifyIndex != 0, // AllocModifyIndex + x.CreateTime != 0, // CreateTime + x.ModifyTime != 0, // ModifyTime + } + _ = yyq2 + if yyr2 || yy2arr2 { + r.WriteArrayStart(37) + } else { + var yynn2 int + for _, b := range yyq2 { + if b { + yynn2++ + } + } + r.WriteMapStart(yynn2) + yynn2 = 0 + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[0] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[0] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[1] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[1] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[2] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[2] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[3] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[3] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[4] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[4] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[5] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeName)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[5] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeName)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[6] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[6] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + } + var yyn24 bool + if x.Job == nil { + yyn24 = true + goto LABEL24 + } + LABEL24: + if yyr2 || yy2arr2 { + if yyn24 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[7] { + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[7] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Job\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) + } + r.WriteMapElemValue() + if yyn24 { + r.EncodeNil() + } else { + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[8] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroup))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroup)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[8] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskGroup\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroup`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroup))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroup)) + } + } + } + } + var yyn30 bool + if x.Resources == nil { + yyn30 = true + goto LABEL30 + } + LABEL30: + if yyr2 || yy2arr2 { + if yyn30 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[9] { + if x.Resources == nil { + r.EncodeNil() + } else { + x.Resources.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[9] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Resources\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Resources`) + } + r.WriteMapElemValue() + if yyn30 { + r.EncodeNil() + } else { + if x.Resources == nil { + r.EncodeNil() + } else { + x.Resources.CodecEncodeSelf(e) + } + } + } + } + var yyn33 bool + if x.SharedResources == nil { + yyn33 = true + goto LABEL33 + } + LABEL33: + if yyr2 || yy2arr2 { + if yyn33 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[10] { + if x.SharedResources == nil { + r.EncodeNil() + } else { + x.SharedResources.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[10] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SharedResources\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SharedResources`) + } + r.WriteMapElemValue() + if yyn33 { + r.EncodeNil() + } else { + if x.SharedResources == nil { + r.EncodeNil() + } else { + x.SharedResources.CodecEncodeSelf(e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[11] { + if x.TaskResources == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoResources((map[string]*Resources)(x.TaskResources), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[11] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskResources\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskResources`) + } + r.WriteMapElemValue() + if x.TaskResources == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoResources((map[string]*Resources)(x.TaskResources), e) + } + } + } + } + var yyn39 bool + if x.AllocatedResources == nil { + yyn39 = true + goto LABEL39 + } + LABEL39: + if yyr2 || yy2arr2 { + if yyn39 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[12] { + if x.AllocatedResources == nil { + r.EncodeNil() + } else { + x.AllocatedResources.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[12] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocatedResources\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocatedResources`) + } + r.WriteMapElemValue() + if yyn39 { + r.EncodeNil() + } else { + if x.AllocatedResources == nil { + r.EncodeNil() + } else { + x.AllocatedResources.CodecEncodeSelf(e) + } + } + } + } + var yyn42 bool + if x.Metrics == nil { + yyn42 = true + goto LABEL42 + } + LABEL42: + if yyr2 || yy2arr2 { + if yyn42 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[13] { + if x.Metrics == nil { + r.EncodeNil() + } else { + x.Metrics.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[13] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Metrics\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Metrics`) + } + r.WriteMapElemValue() + if yyn42 { + r.EncodeNil() + } else { + if x.Metrics == nil { + r.EncodeNil() + } else { + x.Metrics.CodecEncodeSelf(e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[14] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredStatus))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredStatus)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[14] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DesiredStatus\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredStatus`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredStatus))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredStatus)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[15] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredDescription)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[15] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DesiredDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredDescription)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[16] { + yy52 := &x.DesiredTransition + yy52.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2[16] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DesiredTransition\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredTransition`) + } + r.WriteMapElemValue() + yy54 := &x.DesiredTransition + yy54.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[17] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientStatus))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientStatus)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[17] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ClientStatus\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ClientStatus`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientStatus))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientStatus)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[18] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientDescription)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[18] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ClientDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ClientDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientDescription)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[19] { + if x.TaskStates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoTaskState((map[string]*TaskState)(x.TaskStates), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[19] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskStates\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskStates`) + } + r.WriteMapElemValue() + if x.TaskStates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoTaskState((map[string]*TaskState)(x.TaskStates), e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[20] { + if x.AllocStates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocState(([]*AllocState)(x.AllocStates), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[20] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocStates\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocStates`) + } + r.WriteMapElemValue() + if x.AllocStates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocState(([]*AllocState)(x.AllocStates), e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[21] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PreviousAllocation))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreviousAllocation)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[21] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PreviousAllocation\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PreviousAllocation`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PreviousAllocation))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreviousAllocation)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[22] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextAllocation))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextAllocation)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[22] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextAllocation\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextAllocation`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextAllocation))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextAllocation)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[23] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[23] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } + } + var yyn77 bool + if x.DeploymentStatus == nil { + yyn77 = true + goto LABEL77 + } + LABEL77: + if yyr2 || yy2arr2 { + if yyn77 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[24] { + if x.DeploymentStatus == nil { + r.EncodeNil() + } else { + x.DeploymentStatus.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[24] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentStatus\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentStatus`) + } + r.WriteMapElemValue() + if yyn77 { + r.EncodeNil() + } else { + if x.DeploymentStatus == nil { + r.EncodeNil() + } else { + x.DeploymentStatus.CodecEncodeSelf(e) + } + } + } + } + var yyn80 bool + if x.RescheduleTracker == nil { + yyn80 = true + goto LABEL80 + } + LABEL80: + if yyr2 || yy2arr2 { + if yyn80 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[25] { + if x.RescheduleTracker == nil { + r.EncodeNil() + } else { + x.RescheduleTracker.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[25] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RescheduleTracker\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RescheduleTracker`) + } + r.WriteMapElemValue() + if yyn80 { + r.EncodeNil() + } else { + if x.RescheduleTracker == nil { + r.EncodeNil() + } else { + x.RescheduleTracker.CodecEncodeSelf(e) + } + } + } + } + var yyn83 bool + if x.NetworkStatus == nil { + yyn83 = true + goto LABEL83 + } + LABEL83: + if yyr2 || yy2arr2 { + if yyn83 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[26] { + if x.NetworkStatus == nil { + r.EncodeNil() + } else { + x.NetworkStatus.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[26] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NetworkStatus\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NetworkStatus`) + } + r.WriteMapElemValue() + if yyn83 { + r.EncodeNil() + } else { + if x.NetworkStatus == nil { + r.EncodeNil() + } else { + x.NetworkStatus.CodecEncodeSelf(e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[27] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.FollowupEvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FollowupEvalID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[27] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FollowupEvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `FollowupEvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.FollowupEvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FollowupEvalID)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[28] { + if x.PreemptedAllocations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.PreemptedAllocations), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[28] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PreemptedAllocations\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptedAllocations`) + } + r.WriteMapElemValue() + if x.PreemptedAllocations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.PreemptedAllocations), e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[29] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PreemptedByAllocation))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreemptedByAllocation)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[29] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PreemptedByAllocation\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptedByAllocation`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PreemptedByAllocation))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreemptedByAllocation)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[30] { + if x.SignedIdentities == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.SignedIdentities), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[30] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SignedIdentities\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SignedIdentities`) + } + r.WriteMapElemValue() + if x.SignedIdentities == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.SignedIdentities), e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[31] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SigningKeyID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SigningKeyID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[31] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SigningKeyID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SigningKeyID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SigningKeyID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SigningKeyID)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[32] { + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.EncodeUint(0) + } + } else { + if yyq2[32] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[33] { + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.EncodeUint(0) + } + } else { + if yyq2[33] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[34] { + if false { + } else { + r.EncodeUint(uint64(x.AllocModifyIndex)) + } + } else { + r.EncodeUint(0) + } + } else { + if yyq2[34] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.AllocModifyIndex)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[35] { + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2[35] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[36] { + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2[36] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocationDiff) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocationDiff) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "EvalID": + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "NodeName": + if r.TryDecodeAsNil() { + x.NodeName = "" + } else { + x.NodeName = (string)(r.DecodeString()) + } + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "Job": + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + case "TaskGroup": + if r.TryDecodeAsNil() { + x.TaskGroup = "" + } else { + x.TaskGroup = (string)(r.DecodeString()) + } + case "Resources": + if r.TryDecodeAsNil() { + if true && x.Resources != nil { + x.Resources = nil + } + } else { + if x.Resources == nil { + x.Resources = new(Resources) + } + + x.Resources.CodecDecodeSelf(d) + } + case "SharedResources": + if r.TryDecodeAsNil() { + if true && x.SharedResources != nil { + x.SharedResources = nil + } + } else { + if x.SharedResources == nil { + x.SharedResources = new(Resources) + } + + x.SharedResources.CodecDecodeSelf(d) + } + case "TaskResources": + if r.TryDecodeAsNil() { + x.TaskResources = nil + } else { + if false { + } else { + h.decMapstringPtrtoResources((*map[string]*Resources)(&x.TaskResources), d) + } + } + case "AllocatedResources": + if r.TryDecodeAsNil() { + if true && x.AllocatedResources != nil { + x.AllocatedResources = nil + } + } else { + if x.AllocatedResources == nil { + x.AllocatedResources = new(AllocatedResources) + } + + x.AllocatedResources.CodecDecodeSelf(d) + } + case "Metrics": + if r.TryDecodeAsNil() { + if true && x.Metrics != nil { + x.Metrics = nil + } + } else { + if x.Metrics == nil { + x.Metrics = new(AllocMetric) + } + + x.Metrics.CodecDecodeSelf(d) + } + case "DesiredStatus": + if r.TryDecodeAsNil() { + x.DesiredStatus = "" + } else { + x.DesiredStatus = (string)(r.DecodeString()) + } + case "DesiredDescription": + if r.TryDecodeAsNil() { + x.DesiredDescription = "" + } else { + x.DesiredDescription = (string)(r.DecodeString()) + } + case "DesiredTransition": + if r.TryDecodeAsNil() { + x.DesiredTransition = DesiredTransition{} + } else { + x.DesiredTransition.CodecDecodeSelf(d) + } + case "ClientStatus": + if r.TryDecodeAsNil() { + x.ClientStatus = "" + } else { + x.ClientStatus = (string)(r.DecodeString()) + } + case "ClientDescription": + if r.TryDecodeAsNil() { + x.ClientDescription = "" + } else { + x.ClientDescription = (string)(r.DecodeString()) + } + case "TaskStates": + if r.TryDecodeAsNil() { + x.TaskStates = nil + } else { + if false { + } else { + h.decMapstringPtrtoTaskState((*map[string]*TaskState)(&x.TaskStates), d) + } + } + case "AllocStates": + if r.TryDecodeAsNil() { + x.AllocStates = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocState((*[]*AllocState)(&x.AllocStates), d) + } + } + case "PreviousAllocation": + if r.TryDecodeAsNil() { + x.PreviousAllocation = "" + } else { + x.PreviousAllocation = (string)(r.DecodeString()) + } + case "NextAllocation": + if r.TryDecodeAsNil() { + x.NextAllocation = "" + } else { + x.NextAllocation = (string)(r.DecodeString()) + } + case "DeploymentID": + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + case "DeploymentStatus": + if r.TryDecodeAsNil() { + if true && x.DeploymentStatus != nil { + x.DeploymentStatus = nil + } + } else { + if x.DeploymentStatus == nil { + x.DeploymentStatus = new(AllocDeploymentStatus) + } + + x.DeploymentStatus.CodecDecodeSelf(d) + } + case "RescheduleTracker": + if r.TryDecodeAsNil() { + if true && x.RescheduleTracker != nil { + x.RescheduleTracker = nil + } + } else { + if x.RescheduleTracker == nil { + x.RescheduleTracker = new(RescheduleTracker) + } + + x.RescheduleTracker.CodecDecodeSelf(d) + } + case "NetworkStatus": + if r.TryDecodeAsNil() { + if true && x.NetworkStatus != nil { + x.NetworkStatus = nil + } + } else { + if x.NetworkStatus == nil { + x.NetworkStatus = new(AllocNetworkStatus) + } + + x.NetworkStatus.CodecDecodeSelf(d) + } + case "FollowupEvalID": + if r.TryDecodeAsNil() { + x.FollowupEvalID = "" + } else { + x.FollowupEvalID = (string)(r.DecodeString()) + } + case "PreemptedAllocations": + if r.TryDecodeAsNil() { + x.PreemptedAllocations = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.PreemptedAllocations), d) + } + } + case "PreemptedByAllocation": + if r.TryDecodeAsNil() { + x.PreemptedByAllocation = "" + } else { + x.PreemptedByAllocation = (string)(r.DecodeString()) + } + case "SignedIdentities": + if r.TryDecodeAsNil() { + x.SignedIdentities = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.SignedIdentities), d) + } + } + case "SigningKeyID": + if r.TryDecodeAsNil() { + x.SigningKeyID = "" + } else { + x.SigningKeyID = (string)(r.DecodeString()) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + case "AllocModifyIndex": + if r.TryDecodeAsNil() { + x.AllocModifyIndex = 0 + } else { + x.AllocModifyIndex = (uint64)(r.DecodeUint64()) + } + case "CreateTime": + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + case "ModifyTime": + if r.TryDecodeAsNil() { + x.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocationDiff) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj46 int + var yyb46 bool + var yyhl46 bool = l >= 0 + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeName = "" + } else { + x.NodeName = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskGroup = "" + } else { + x.TaskGroup = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Resources != nil { + x.Resources = nil + } + } else { + if x.Resources == nil { + x.Resources = new(Resources) + } + + x.Resources.CodecDecodeSelf(d) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.SharedResources != nil { + x.SharedResources = nil + } + } else { + if x.SharedResources == nil { + x.SharedResources = new(Resources) + } + + x.SharedResources.CodecDecodeSelf(d) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskResources = nil + } else { + if false { + } else { + h.decMapstringPtrtoResources((*map[string]*Resources)(&x.TaskResources), d) + } + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.AllocatedResources != nil { + x.AllocatedResources = nil + } + } else { + if x.AllocatedResources == nil { + x.AllocatedResources = new(AllocatedResources) + } + + x.AllocatedResources.CodecDecodeSelf(d) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Metrics != nil { + x.Metrics = nil + } + } else { + if x.Metrics == nil { + x.Metrics = new(AllocMetric) + } + + x.Metrics.CodecDecodeSelf(d) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DesiredStatus = "" + } else { + x.DesiredStatus = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DesiredDescription = "" + } else { + x.DesiredDescription = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DesiredTransition = DesiredTransition{} + } else { + x.DesiredTransition.CodecDecodeSelf(d) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ClientStatus = "" + } else { + x.ClientStatus = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ClientDescription = "" + } else { + x.ClientDescription = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskStates = nil + } else { + if false { + } else { + h.decMapstringPtrtoTaskState((*map[string]*TaskState)(&x.TaskStates), d) + } + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocStates = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocState((*[]*AllocState)(&x.AllocStates), d) + } + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PreviousAllocation = "" + } else { + x.PreviousAllocation = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NextAllocation = "" + } else { + x.NextAllocation = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.DeploymentStatus != nil { + x.DeploymentStatus = nil + } + } else { + if x.DeploymentStatus == nil { + x.DeploymentStatus = new(AllocDeploymentStatus) + } + + x.DeploymentStatus.CodecDecodeSelf(d) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.RescheduleTracker != nil { + x.RescheduleTracker = nil + } + } else { + if x.RescheduleTracker == nil { + x.RescheduleTracker = new(RescheduleTracker) + } + + x.RescheduleTracker.CodecDecodeSelf(d) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.NetworkStatus != nil { + x.NetworkStatus = nil + } + } else { + if x.NetworkStatus == nil { + x.NetworkStatus = new(AllocNetworkStatus) + } + + x.NetworkStatus.CodecDecodeSelf(d) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.FollowupEvalID = "" + } else { + x.FollowupEvalID = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PreemptedAllocations = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.PreemptedAllocations), d) + } + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PreemptedByAllocation = "" + } else { + x.PreemptedByAllocation = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SignedIdentities = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.SignedIdentities), d) + } + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SigningKeyID = "" + } else { + x.SigningKeyID = (string)(r.DecodeString()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocModifyIndex = 0 + } else { + x.AllocModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + for { + yyj46++ + if yyhl46 { + yyb46 = yyj46 > l + } else { + yyb46 = r.CheckBreak() + } + if yyb46 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj46-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocListStub) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(27) + } else { + r.WriteMapStart(27) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobType))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobType)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobType\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobType`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobType))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobType)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.JobVersion)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobVersion\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobVersion`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobVersion)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroup))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroup)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskGroup\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroup`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroup))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroup)) + } + } + } + var yyn33 bool + if x.AllocatedResources == nil { + yyn33 = true + goto LABEL33 + } + LABEL33: + if yyr2 || yy2arr2 { + if yyn33 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.AllocatedResources == nil { + r.EncodeNil() + } else { + x.AllocatedResources.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocatedResources\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocatedResources`) + } + r.WriteMapElemValue() + if yyn33 { + r.EncodeNil() + } else { + if x.AllocatedResources == nil { + r.EncodeNil() + } else { + x.AllocatedResources.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredStatus))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredStatus)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DesiredStatus\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredStatus`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredStatus))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredStatus)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredDescription)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DesiredDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredDescription)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientStatus))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientStatus)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ClientStatus\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ClientStatus`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientStatus))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientStatus)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientDescription)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ClientDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ClientDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ClientDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientDescription)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + yy49 := &x.DesiredTransition + yy49.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DesiredTransition\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredTransition`) + } + r.WriteMapElemValue() + yy51 := &x.DesiredTransition + yy51.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.TaskStates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoTaskState((map[string]*TaskState)(x.TaskStates), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskStates\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskStates`) + } + r.WriteMapElemValue() + if x.TaskStates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoTaskState((map[string]*TaskState)(x.TaskStates), e) + } + } + } + var yyn56 bool + if x.DeploymentStatus == nil { + yyn56 = true + goto LABEL56 + } + LABEL56: + if yyr2 || yy2arr2 { + if yyn56 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.DeploymentStatus == nil { + r.EncodeNil() + } else { + x.DeploymentStatus.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentStatus\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentStatus`) + } + r.WriteMapElemValue() + if yyn56 { + r.EncodeNil() + } else { + if x.DeploymentStatus == nil { + r.EncodeNil() + } else { + x.DeploymentStatus.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.FollowupEvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FollowupEvalID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FollowupEvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `FollowupEvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.FollowupEvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FollowupEvalID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextAllocation))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextAllocation)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextAllocation\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextAllocation`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextAllocation))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextAllocation)) + } + } + } + var yyn65 bool + if x.RescheduleTracker == nil { + yyn65 = true + goto LABEL65 + } + LABEL65: + if yyr2 || yy2arr2 { + if yyn65 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.RescheduleTracker == nil { + r.EncodeNil() + } else { + x.RescheduleTracker.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RescheduleTracker\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RescheduleTracker`) + } + r.WriteMapElemValue() + if yyn65 { + r.EncodeNil() + } else { + if x.RescheduleTracker == nil { + r.EncodeNil() + } else { + x.RescheduleTracker.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.PreemptedAllocations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.PreemptedAllocations), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PreemptedAllocations\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptedAllocations`) + } + r.WriteMapElemValue() + if x.PreemptedAllocations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.PreemptedAllocations), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PreemptedByAllocation))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreemptedByAllocation)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PreemptedByAllocation\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptedByAllocation`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PreemptedByAllocation))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreemptedByAllocation)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocListStub) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "EvalID": + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "NodeName": + if r.TryDecodeAsNil() { + x.NodeName = "" + } else { + x.NodeName = (string)(r.DecodeString()) + } + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "JobType": + if r.TryDecodeAsNil() { + x.JobType = "" + } else { + x.JobType = (string)(r.DecodeString()) + } + case "JobVersion": + if r.TryDecodeAsNil() { + x.JobVersion = 0 + } else { + x.JobVersion = (uint64)(r.DecodeUint64()) + } + case "TaskGroup": + if r.TryDecodeAsNil() { + x.TaskGroup = "" + } else { + x.TaskGroup = (string)(r.DecodeString()) + } + case "AllocatedResources": + if r.TryDecodeAsNil() { + if true && x.AllocatedResources != nil { + x.AllocatedResources = nil + } + } else { + if x.AllocatedResources == nil { + x.AllocatedResources = new(AllocatedResources) + } + + x.AllocatedResources.CodecDecodeSelf(d) + } + case "DesiredStatus": + if r.TryDecodeAsNil() { + x.DesiredStatus = "" + } else { + x.DesiredStatus = (string)(r.DecodeString()) + } + case "DesiredDescription": + if r.TryDecodeAsNil() { + x.DesiredDescription = "" + } else { + x.DesiredDescription = (string)(r.DecodeString()) + } + case "ClientStatus": + if r.TryDecodeAsNil() { + x.ClientStatus = "" + } else { + x.ClientStatus = (string)(r.DecodeString()) + } + case "ClientDescription": + if r.TryDecodeAsNil() { + x.ClientDescription = "" + } else { + x.ClientDescription = (string)(r.DecodeString()) + } + case "DesiredTransition": + if r.TryDecodeAsNil() { + x.DesiredTransition = DesiredTransition{} + } else { + x.DesiredTransition.CodecDecodeSelf(d) + } + case "TaskStates": + if r.TryDecodeAsNil() { + x.TaskStates = nil + } else { + if false { + } else { + h.decMapstringPtrtoTaskState((*map[string]*TaskState)(&x.TaskStates), d) + } + } + case "DeploymentStatus": + if r.TryDecodeAsNil() { + if true && x.DeploymentStatus != nil { + x.DeploymentStatus = nil + } + } else { + if x.DeploymentStatus == nil { + x.DeploymentStatus = new(AllocDeploymentStatus) + } + + x.DeploymentStatus.CodecDecodeSelf(d) + } + case "FollowupEvalID": + if r.TryDecodeAsNil() { + x.FollowupEvalID = "" + } else { + x.FollowupEvalID = (string)(r.DecodeString()) + } + case "NextAllocation": + if r.TryDecodeAsNil() { + x.NextAllocation = "" + } else { + x.NextAllocation = (string)(r.DecodeString()) + } + case "RescheduleTracker": + if r.TryDecodeAsNil() { + if true && x.RescheduleTracker != nil { + x.RescheduleTracker = nil + } + } else { + if x.RescheduleTracker == nil { + x.RescheduleTracker = new(RescheduleTracker) + } + + x.RescheduleTracker.CodecDecodeSelf(d) + } + case "PreemptedAllocations": + if r.TryDecodeAsNil() { + x.PreemptedAllocations = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.PreemptedAllocations), d) + } + } + case "PreemptedByAllocation": + if r.TryDecodeAsNil() { + x.PreemptedByAllocation = "" + } else { + x.PreemptedByAllocation = (string)(r.DecodeString()) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + case "CreateTime": + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + case "ModifyTime": + if r.TryDecodeAsNil() { + x.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj33 int + var yyb33 bool + var yyhl33 bool = l >= 0 + yyj33++ + if yyhl33 { + yyb33 = yyj33 > l + } else { + yyb33 = r.CheckBreak() + } + if yyb33 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj33++ + if yyhl33 { + yyb33 = yyj33 > l + } else { + yyb33 = r.CheckBreak() + } + if yyb33 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + yyj33++ + if yyhl33 { + yyb33 = yyj33 > l + } else { + yyb33 = r.CheckBreak() + } + if yyb33 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj33++ + if yyhl33 { + yyb33 = yyj33 > l + } else { + yyb33 = r.CheckBreak() + } + if yyb33 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj33++ + if yyhl33 { + yyb33 = yyj33 > l + } else { + yyb33 = r.CheckBreak() + } + if yyb33 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj33++ + if yyhl33 { + yyb33 = yyj33 > l + } else { + yyb33 = r.CheckBreak() + } + if yyb33 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeName = "" + } else { + x.NodeName = (string)(r.DecodeString()) + } + yyj33++ + if yyhl33 { + yyb33 = yyj33 > l + } else { + yyb33 = r.CheckBreak() + } + if yyb33 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj33++ + if yyhl33 { + yyb33 = yyj33 > l + } else { + yyb33 = r.CheckBreak() + } + if yyb33 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobType = "" + } else { + x.JobType = (string)(r.DecodeString()) + } + yyj33++ + if yyhl33 { + yyb33 = yyj33 > l + } else { + yyb33 = r.CheckBreak() + } + if yyb33 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobVersion = 0 + } else { + x.JobVersion = (uint64)(r.DecodeUint64()) + } + yyj33++ + if yyhl33 { + yyb33 = yyj33 > l + } else { + yyb33 = r.CheckBreak() + } + if yyb33 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskGroup = "" + } else { + x.TaskGroup = (string)(r.DecodeString()) + } + yyj33++ + if yyhl33 { + yyb33 = yyj33 > l + } else { + yyb33 = r.CheckBreak() + } + if yyb33 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.AllocatedResources != nil { + x.AllocatedResources = nil + } + } else { + if x.AllocatedResources == nil { + x.AllocatedResources = new(AllocatedResources) + } + + x.AllocatedResources.CodecDecodeSelf(d) + } + yyj33++ + if yyhl33 { + yyb33 = yyj33 > l + } else { + yyb33 = r.CheckBreak() + } + if yyb33 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DesiredStatus = "" + } else { + x.DesiredStatus = (string)(r.DecodeString()) + } + yyj33++ + if yyhl33 { + yyb33 = yyj33 > l + } else { + yyb33 = r.CheckBreak() + } + if yyb33 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DesiredDescription = "" + } else { + x.DesiredDescription = (string)(r.DecodeString()) + } + yyj33++ + if yyhl33 { + yyb33 = yyj33 > l + } else { + yyb33 = r.CheckBreak() + } + if yyb33 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ClientStatus = "" + } else { + x.ClientStatus = (string)(r.DecodeString()) + } + yyj33++ + if yyhl33 { + yyb33 = yyj33 > l + } else { + yyb33 = r.CheckBreak() + } + if yyb33 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ClientDescription = "" + } else { + x.ClientDescription = (string)(r.DecodeString()) + } + yyj33++ + if yyhl33 { + yyb33 = yyj33 > l + } else { + yyb33 = r.CheckBreak() + } + if yyb33 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DesiredTransition = DesiredTransition{} + } else { + x.DesiredTransition.CodecDecodeSelf(d) + } + yyj33++ + if yyhl33 { + yyb33 = yyj33 > l + } else { + yyb33 = r.CheckBreak() + } + if yyb33 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskStates = nil + } else { + if false { + } else { + h.decMapstringPtrtoTaskState((*map[string]*TaskState)(&x.TaskStates), d) + } + } + yyj33++ + if yyhl33 { + yyb33 = yyj33 > l + } else { + yyb33 = r.CheckBreak() + } + if yyb33 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.DeploymentStatus != nil { + x.DeploymentStatus = nil + } + } else { + if x.DeploymentStatus == nil { + x.DeploymentStatus = new(AllocDeploymentStatus) + } + + x.DeploymentStatus.CodecDecodeSelf(d) + } + yyj33++ + if yyhl33 { + yyb33 = yyj33 > l + } else { + yyb33 = r.CheckBreak() + } + if yyb33 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.FollowupEvalID = "" + } else { + x.FollowupEvalID = (string)(r.DecodeString()) + } + yyj33++ + if yyhl33 { + yyb33 = yyj33 > l + } else { + yyb33 = r.CheckBreak() + } + if yyb33 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NextAllocation = "" + } else { + x.NextAllocation = (string)(r.DecodeString()) + } + yyj33++ + if yyhl33 { + yyb33 = yyj33 > l + } else { + yyb33 = r.CheckBreak() + } + if yyb33 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.RescheduleTracker != nil { + x.RescheduleTracker = nil + } + } else { + if x.RescheduleTracker == nil { + x.RescheduleTracker = new(RescheduleTracker) + } + + x.RescheduleTracker.CodecDecodeSelf(d) + } + yyj33++ + if yyhl33 { + yyb33 = yyj33 > l + } else { + yyb33 = r.CheckBreak() + } + if yyb33 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PreemptedAllocations = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.PreemptedAllocations), d) + } + } + yyj33++ + if yyhl33 { + yyb33 = yyj33 > l + } else { + yyb33 = r.CheckBreak() + } + if yyb33 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PreemptedByAllocation = "" + } else { + x.PreemptedByAllocation = (string)(r.DecodeString()) + } + yyj33++ + if yyhl33 { + yyb33 = yyj33 > l + } else { + yyb33 = r.CheckBreak() + } + if yyb33 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj33++ + if yyhl33 { + yyb33 = yyj33 > l + } else { + yyb33 = r.CheckBreak() + } + if yyb33 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj33++ + if yyhl33 { + yyb33 = yyj33 > l + } else { + yyb33 = r.CheckBreak() + } + if yyb33 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + yyj33++ + if yyhl33 { + yyb33 = yyj33 > l + } else { + yyb33 = r.CheckBreak() + } + if yyb33 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + for { + yyj33++ + if yyhl33 { + yyb33 = yyj33 > l + } else { + yyb33 = r.CheckBreak() + } + if yyb33 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj33-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocStubFields) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Resources)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Resources\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Resources`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Resources)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.TaskStates)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TaskStates\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TaskStates`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.TaskStates)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocStubFields) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocStubFields) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Resources": + if r.TryDecodeAsNil() { + x.Resources = false + } else { + x.Resources = (bool)(r.DecodeBool()) + } + case "TaskStates": + if r.TryDecodeAsNil() { + x.TaskStates = false + } else { + x.TaskStates = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocStubFields) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Resources = false + } else { + x.Resources = (bool)(r.DecodeBool()) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TaskStates = false + } else { + x.TaskStates = (bool)(r.DecodeBool()) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocMetric) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(15) + } else { + r.WriteMapStart(15) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.NodesEvaluated)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodesEvaluated\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodesEvaluated`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.NodesEvaluated)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.NodesFiltered)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodesFiltered\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodesFiltered`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.NodesFiltered)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.NodesInPool)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodesInPool\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodesInPool`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.NodesInPool)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.NodesAvailable == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringint((map[string]int)(x.NodesAvailable), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodesAvailable\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodesAvailable`) + } + r.WriteMapElemValue() + if x.NodesAvailable == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringint((map[string]int)(x.NodesAvailable), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ClassFiltered == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringint((map[string]int)(x.ClassFiltered), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ClassFiltered\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ClassFiltered`) + } + r.WriteMapElemValue() + if x.ClassFiltered == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringint((map[string]int)(x.ClassFiltered), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ConstraintFiltered == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringint((map[string]int)(x.ConstraintFiltered), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ConstraintFiltered\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ConstraintFiltered`) + } + r.WriteMapElemValue() + if x.ConstraintFiltered == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringint((map[string]int)(x.ConstraintFiltered), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.NodesExhausted)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodesExhausted\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodesExhausted`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.NodesExhausted)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ClassExhausted == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringint((map[string]int)(x.ClassExhausted), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ClassExhausted\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ClassExhausted`) + } + r.WriteMapElemValue() + if x.ClassExhausted == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringint((map[string]int)(x.ClassExhausted), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.DimensionExhausted == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringint((map[string]int)(x.DimensionExhausted), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DimensionExhausted\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DimensionExhausted`) + } + r.WriteMapElemValue() + if x.DimensionExhausted == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringint((map[string]int)(x.DimensionExhausted), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.QuotaExhausted == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.QuotaExhausted), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"QuotaExhausted\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `QuotaExhausted`) + } + r.WriteMapElemValue() + if x.QuotaExhausted == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.QuotaExhausted), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ResourcesExhausted == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoResources((map[string]*Resources)(x.ResourcesExhausted), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ResourcesExhausted\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ResourcesExhausted`) + } + r.WriteMapElemValue() + if x.ResourcesExhausted == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoResources((map[string]*Resources)(x.ResourcesExhausted), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Scores == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringfloat64((map[string]float64)(x.Scores), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Scores\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Scores`) + } + r.WriteMapElemValue() + if x.Scores == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringfloat64((map[string]float64)(x.Scores), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.ScoreMetaData == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeScoreMeta(([]*NodeScoreMeta)(x.ScoreMetaData), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ScoreMetaData\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ScoreMetaData`) + } + r.WriteMapElemValue() + if x.ScoreMetaData == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeScoreMeta(([]*NodeScoreMeta)(x.ScoreMetaData), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt43 := z.Extension(z.I2Rtid(x.AllocationTime)); yyxt43 != nil { + z.EncExtension(x.AllocationTime, yyxt43) + } else { + r.EncodeInt(int64(x.AllocationTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocationTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocationTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt44 := z.Extension(z.I2Rtid(x.AllocationTime)); yyxt44 != nil { + z.EncExtension(x.AllocationTime, yyxt44) + } else { + r.EncodeInt(int64(x.AllocationTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CoalescedFailures)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CoalescedFailures\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CoalescedFailures`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CoalescedFailures)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocMetric) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocMetric) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodesEvaluated": + if r.TryDecodeAsNil() { + x.NodesEvaluated = 0 + } else { + x.NodesEvaluated = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "NodesFiltered": + if r.TryDecodeAsNil() { + x.NodesFiltered = 0 + } else { + x.NodesFiltered = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "NodesInPool": + if r.TryDecodeAsNil() { + x.NodesInPool = 0 + } else { + x.NodesInPool = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "NodesAvailable": + if r.TryDecodeAsNil() { + x.NodesAvailable = nil + } else { + if false { + } else { + h.decMapstringint((*map[string]int)(&x.NodesAvailable), d) + } + } + case "ClassFiltered": + if r.TryDecodeAsNil() { + x.ClassFiltered = nil + } else { + if false { + } else { + h.decMapstringint((*map[string]int)(&x.ClassFiltered), d) + } + } + case "ConstraintFiltered": + if r.TryDecodeAsNil() { + x.ConstraintFiltered = nil + } else { + if false { + } else { + h.decMapstringint((*map[string]int)(&x.ConstraintFiltered), d) + } + } + case "NodesExhausted": + if r.TryDecodeAsNil() { + x.NodesExhausted = 0 + } else { + x.NodesExhausted = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "ClassExhausted": + if r.TryDecodeAsNil() { + x.ClassExhausted = nil + } else { + if false { + } else { + h.decMapstringint((*map[string]int)(&x.ClassExhausted), d) + } + } + case "DimensionExhausted": + if r.TryDecodeAsNil() { + x.DimensionExhausted = nil + } else { + if false { + } else { + h.decMapstringint((*map[string]int)(&x.DimensionExhausted), d) + } + } + case "QuotaExhausted": + if r.TryDecodeAsNil() { + x.QuotaExhausted = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.QuotaExhausted), d) + } + } + case "ResourcesExhausted": + if r.TryDecodeAsNil() { + x.ResourcesExhausted = nil + } else { + if false { + } else { + h.decMapstringPtrtoResources((*map[string]*Resources)(&x.ResourcesExhausted), d) + } + } + case "Scores": + if r.TryDecodeAsNil() { + x.Scores = nil + } else { + if false { + } else { + h.decMapstringfloat64((*map[string]float64)(&x.Scores), d) + } + } + case "ScoreMetaData": + if r.TryDecodeAsNil() { + x.ScoreMetaData = nil + } else { + if false { + } else { + h.decSlicePtrtoNodeScoreMeta((*[]*NodeScoreMeta)(&x.ScoreMetaData), d) + } + } + case "AllocationTime": + if r.TryDecodeAsNil() { + x.AllocationTime = 0 + } else { + if false { + } else if yyxt27 := z.Extension(z.I2Rtid(x.AllocationTime)); yyxt27 != nil { + z.DecExtension(x.AllocationTime, yyxt27) + } else { + x.AllocationTime = (time.Duration)(r.DecodeInt64()) + } + } + case "CoalescedFailures": + if r.TryDecodeAsNil() { + x.CoalescedFailures = 0 + } else { + x.CoalescedFailures = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocMetric) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj29 int + var yyb29 bool + var yyhl29 bool = l >= 0 + yyj29++ + if yyhl29 { + yyb29 = yyj29 > l + } else { + yyb29 = r.CheckBreak() + } + if yyb29 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodesEvaluated = 0 + } else { + x.NodesEvaluated = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj29++ + if yyhl29 { + yyb29 = yyj29 > l + } else { + yyb29 = r.CheckBreak() + } + if yyb29 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodesFiltered = 0 + } else { + x.NodesFiltered = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj29++ + if yyhl29 { + yyb29 = yyj29 > l + } else { + yyb29 = r.CheckBreak() + } + if yyb29 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodesInPool = 0 + } else { + x.NodesInPool = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj29++ + if yyhl29 { + yyb29 = yyj29 > l + } else { + yyb29 = r.CheckBreak() + } + if yyb29 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodesAvailable = nil + } else { + if false { + } else { + h.decMapstringint((*map[string]int)(&x.NodesAvailable), d) + } + } + yyj29++ + if yyhl29 { + yyb29 = yyj29 > l + } else { + yyb29 = r.CheckBreak() + } + if yyb29 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ClassFiltered = nil + } else { + if false { + } else { + h.decMapstringint((*map[string]int)(&x.ClassFiltered), d) + } + } + yyj29++ + if yyhl29 { + yyb29 = yyj29 > l + } else { + yyb29 = r.CheckBreak() + } + if yyb29 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ConstraintFiltered = nil + } else { + if false { + } else { + h.decMapstringint((*map[string]int)(&x.ConstraintFiltered), d) + } + } + yyj29++ + if yyhl29 { + yyb29 = yyj29 > l + } else { + yyb29 = r.CheckBreak() + } + if yyb29 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodesExhausted = 0 + } else { + x.NodesExhausted = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj29++ + if yyhl29 { + yyb29 = yyj29 > l + } else { + yyb29 = r.CheckBreak() + } + if yyb29 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ClassExhausted = nil + } else { + if false { + } else { + h.decMapstringint((*map[string]int)(&x.ClassExhausted), d) + } + } + yyj29++ + if yyhl29 { + yyb29 = yyj29 > l + } else { + yyb29 = r.CheckBreak() + } + if yyb29 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DimensionExhausted = nil + } else { + if false { + } else { + h.decMapstringint((*map[string]int)(&x.DimensionExhausted), d) + } + } + yyj29++ + if yyhl29 { + yyb29 = yyj29 > l + } else { + yyb29 = r.CheckBreak() + } + if yyb29 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QuotaExhausted = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.QuotaExhausted), d) + } + } + yyj29++ + if yyhl29 { + yyb29 = yyj29 > l + } else { + yyb29 = r.CheckBreak() + } + if yyb29 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ResourcesExhausted = nil + } else { + if false { + } else { + h.decMapstringPtrtoResources((*map[string]*Resources)(&x.ResourcesExhausted), d) + } + } + yyj29++ + if yyhl29 { + yyb29 = yyj29 > l + } else { + yyb29 = r.CheckBreak() + } + if yyb29 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Scores = nil + } else { + if false { + } else { + h.decMapstringfloat64((*map[string]float64)(&x.Scores), d) + } + } + yyj29++ + if yyhl29 { + yyb29 = yyj29 > l + } else { + yyb29 = r.CheckBreak() + } + if yyb29 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ScoreMetaData = nil + } else { + if false { + } else { + h.decSlicePtrtoNodeScoreMeta((*[]*NodeScoreMeta)(&x.ScoreMetaData), d) + } + } + yyj29++ + if yyhl29 { + yyb29 = yyj29 > l + } else { + yyb29 = r.CheckBreak() + } + if yyb29 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocationTime = 0 + } else { + if false { + } else if yyxt53 := z.Extension(z.I2Rtid(x.AllocationTime)); yyxt53 != nil { + z.DecExtension(x.AllocationTime, yyxt53) + } else { + x.AllocationTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj29++ + if yyhl29 { + yyb29 = yyj29 > l + } else { + yyb29 = r.CheckBreak() + } + if yyb29 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CoalescedFailures = 0 + } else { + x.CoalescedFailures = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + for { + yyj29++ + if yyhl29 { + yyb29 = yyj29 > l + } else { + yyb29 = r.CheckBreak() + } + if yyb29 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj29-1, "") + } + r.ReadArrayEnd() +} + +func (x *NodeScoreMeta) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Scores == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringfloat64((map[string]float64)(x.Scores), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Scores\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Scores`) + } + r.WriteMapElemValue() + if x.Scores == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringfloat64((map[string]float64)(x.Scores), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeFloat64(float64(x.NormScore)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NormScore\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NormScore`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeFloat64(float64(x.NormScore)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *NodeScoreMeta) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *NodeScoreMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "Scores": + if r.TryDecodeAsNil() { + x.Scores = nil + } else { + if false { + } else { + h.decMapstringfloat64((*map[string]float64)(&x.Scores), d) + } + } + case "NormScore": + if r.TryDecodeAsNil() { + x.NormScore = 0 + } else { + x.NormScore = (float64)(r.DecodeFloat64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *NodeScoreMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Scores = nil + } else { + if false { + } else { + h.decMapstringfloat64((*map[string]float64)(&x.Scores), d) + } + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NormScore = 0 + } else { + x.NormScore = (float64)(r.DecodeFloat64()) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocNetworkStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.InterfaceName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.InterfaceName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"InterfaceName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `InterfaceName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.InterfaceName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.InterfaceName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Address\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Address`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AddressIPv6))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AddressIPv6)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AddressIPv6\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AddressIPv6`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AddressIPv6))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AddressIPv6)) + } + } + } + var yyn12 bool + if x.DNS == nil { + yyn12 = true + goto LABEL12 + } + LABEL12: + if yyr2 || yy2arr2 { + if yyn12 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.DNS == nil { + r.EncodeNil() + } else { + x.DNS.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DNS\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DNS`) + } + r.WriteMapElemValue() + if yyn12 { + r.EncodeNil() + } else { + if x.DNS == nil { + r.EncodeNil() + } else { + x.DNS.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocNetworkStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocNetworkStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "InterfaceName": + if r.TryDecodeAsNil() { + x.InterfaceName = "" + } else { + x.InterfaceName = (string)(r.DecodeString()) + } + case "Address": + if r.TryDecodeAsNil() { + x.Address = "" + } else { + x.Address = (string)(r.DecodeString()) + } + case "AddressIPv6": + if r.TryDecodeAsNil() { + x.AddressIPv6 = "" + } else { + x.AddressIPv6 = (string)(r.DecodeString()) + } + case "DNS": + if r.TryDecodeAsNil() { + if true && x.DNS != nil { + x.DNS = nil + } + } else { + if x.DNS == nil { + x.DNS = new(DNSConfig) + } + + x.DNS.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocNetworkStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.InterfaceName = "" + } else { + x.InterfaceName = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Address = "" + } else { + x.Address = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AddressIPv6 = "" + } else { + x.AddressIPv6 = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.DNS != nil { + x.DNS = nil + } + } else { + if x.DNS == nil { + x.DNS = new(DNSConfig) + } + + x.DNS.CodecDecodeSelf(d) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocDeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + var yyn3 bool + if x.Healthy == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Healthy == nil { + r.EncodeNil() + } else { + yy4 := *x.Healthy + if false { + } else { + r.EncodeBool(bool(yy4)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Healthy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Healthy`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Healthy == nil { + r.EncodeNil() + } else { + yy6 := *x.Healthy + if false { + } else { + r.EncodeBool(bool(yy6)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.Timestamp) + } else if yyxt9 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt9 != nil { + z.EncExtension(x.Timestamp, yyxt9) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Timestamp) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.Timestamp) + } else { + z.EncFallback(x.Timestamp) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timestamp\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Timestamp`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.Timestamp) + } else if yyxt10 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt10 != nil { + z.EncExtension(x.Timestamp, yyxt10) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Timestamp) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.Timestamp) + } else { + z.EncFallback(x.Timestamp) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Canary)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Canary\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Canary`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Canary)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocDeploymentStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocDeploymentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Healthy": + if r.TryDecodeAsNil() { + if true && x.Healthy != nil { + x.Healthy = nil + } + } else { + if x.Healthy == nil { + x.Healthy = new(bool) + } + + if false { + } else { + *x.Healthy = (bool)(r.DecodeBool()) + } + } + case "Timestamp": + if r.TryDecodeAsNil() { + x.Timestamp = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.Timestamp = r.DecodeTime() + } else if yyxt7 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt7 != nil { + z.DecExtension(x.Timestamp, yyxt7) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Timestamp) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.Timestamp) + } else { + z.DecFallback(&x.Timestamp, false) + } + } + case "Canary": + if r.TryDecodeAsNil() { + x.Canary = false + } else { + x.Canary = (bool)(r.DecodeBool()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocDeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Healthy != nil { + x.Healthy = nil + } + } else { + if x.Healthy == nil { + x.Healthy = new(bool) + } + + if false { + } else { + *x.Healthy = (bool)(r.DecodeBool()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Timestamp = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.Timestamp = r.DecodeTime() + } else if yyxt14 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt14 != nil { + z.DecExtension(x.Timestamp, yyxt14) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Timestamp) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.Timestamp) + } else { + z.DecFallback(&x.Timestamp, false) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Canary = false + } else { + x.Canary = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *Evaluation) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyq2 = [30]bool{ // should field at this index be written? + x.ID != "", // ID + x.Namespace != "", // Namespace + x.Priority != 0, // Priority + x.Type != "", // Type + x.TriggeredBy != "", // TriggeredBy + x.JobID != "", // JobID + x.JobModifyIndex != 0, // JobModifyIndex + x.NodeID != "", // NodeID + x.NodeModifyIndex != 0, // NodeModifyIndex + x.DeploymentID != "", // DeploymentID + x.Status != "", // Status + x.StatusDescription != "", // StatusDescription + x.Wait != 0, // Wait + !(x.WaitUntil.IsZero()), // WaitUntil + x.NextEval != "", // NextEval + x.PreviousEval != "", // PreviousEval + x.BlockedEval != "", // BlockedEval + len(x.RelatedEvals) != 0, // RelatedEvals + len(x.FailedTGAllocs) != 0, // FailedTGAllocs + len(x.ClassEligibility) != 0, // ClassEligibility + x.QuotaLimitReached != "", // QuotaLimitReached + x.EscapedComputedClass, // EscapedComputedClass + x.AnnotatePlan, // AnnotatePlan + len(x.QueuedAllocations) != 0, // QueuedAllocations + x.LeaderACL != "", // LeaderACL + x.SnapshotIndex != 0, // SnapshotIndex + x.CreateIndex != 0, // CreateIndex + x.ModifyIndex != 0, // ModifyIndex + x.CreateTime != 0, // CreateTime + x.ModifyTime != 0, // ModifyTime + } + _ = yyq2 + if yyr2 || yy2arr2 { + r.WriteArrayStart(30) + } else { + var yynn2 int + for _, b := range yyq2 { + if b { + yynn2++ + } + } + r.WriteMapStart(yynn2) + yynn2 = 0 + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[0] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[0] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[1] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[1] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[2] { + if false { + } else { + r.EncodeInt(int64(x.Priority)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2[2] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Priority\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Priority`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Priority)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[3] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[3] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[4] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TriggeredBy))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TriggeredBy)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[4] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TriggeredBy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TriggeredBy`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TriggeredBy))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TriggeredBy)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[5] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[5] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[6] { + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } else { + r.EncodeUint(0) + } + } else { + if yyq2[6] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.JobModifyIndex)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[7] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[7] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[8] { + if false { + } else { + r.EncodeUint(uint64(x.NodeModifyIndex)) + } + } else { + r.EncodeUint(0) + } + } else { + if yyq2[8] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.NodeModifyIndex)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[9] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[9] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[10] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[10] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Status\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[11] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[11] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"StatusDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `StatusDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[12] { + if false { + } else if yyxt40 := z.Extension(z.I2Rtid(x.Wait)); yyxt40 != nil { + z.EncExtension(x.Wait, yyxt40) + } else { + r.EncodeInt(int64(x.Wait)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2[12] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Wait\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Wait`) + } + r.WriteMapElemValue() + if false { + } else if yyxt41 := z.Extension(z.I2Rtid(x.Wait)); yyxt41 != nil { + z.EncExtension(x.Wait, yyxt41) + } else { + r.EncodeInt(int64(x.Wait)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[13] { + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.WaitUntil) + } else if yyxt43 := z.Extension(z.I2Rtid(x.WaitUntil)); yyxt43 != nil { + z.EncExtension(x.WaitUntil, yyxt43) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.WaitUntil) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.WaitUntil) + } else { + z.EncFallback(x.WaitUntil) + } + } else { + r.EncodeNil() + } + } else { + if yyq2[13] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"WaitUntil\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `WaitUntil`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.WaitUntil) + } else if yyxt44 := z.Extension(z.I2Rtid(x.WaitUntil)); yyxt44 != nil { + z.EncExtension(x.WaitUntil, yyxt44) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.WaitUntil) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.WaitUntil) + } else { + z.EncFallback(x.WaitUntil) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[14] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextEval))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextEval)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[14] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextEval\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextEval`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextEval))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextEval)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[15] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PreviousEval))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreviousEval)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[15] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PreviousEval\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PreviousEval`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PreviousEval))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreviousEval)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[16] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.BlockedEval))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.BlockedEval)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[16] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"BlockedEval\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `BlockedEval`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.BlockedEval))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.BlockedEval)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[17] { + if x.RelatedEvals == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluationStub(([]*EvaluationStub)(x.RelatedEvals), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[17] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RelatedEvals\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RelatedEvals`) + } + r.WriteMapElemValue() + if x.RelatedEvals == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoEvaluationStub(([]*EvaluationStub)(x.RelatedEvals), e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[18] { + if x.FailedTGAllocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoAllocMetric((map[string]*AllocMetric)(x.FailedTGAllocs), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[18] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FailedTGAllocs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `FailedTGAllocs`) + } + r.WriteMapElemValue() + if x.FailedTGAllocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoAllocMetric((map[string]*AllocMetric)(x.FailedTGAllocs), e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[19] { + if x.ClassEligibility == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringbool((map[string]bool)(x.ClassEligibility), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[19] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ClassEligibility\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ClassEligibility`) + } + r.WriteMapElemValue() + if x.ClassEligibility == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringbool((map[string]bool)(x.ClassEligibility), e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[20] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.QuotaLimitReached))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.QuotaLimitReached)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[20] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"QuotaLimitReached\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `QuotaLimitReached`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.QuotaLimitReached))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.QuotaLimitReached)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[21] { + if false { + } else { + r.EncodeBool(bool(x.EscapedComputedClass)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq2[21] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EscapedComputedClass\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EscapedComputedClass`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.EscapedComputedClass)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[22] { + if false { + } else { + r.EncodeBool(bool(x.AnnotatePlan)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq2[22] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AnnotatePlan\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AnnotatePlan`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AnnotatePlan)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[23] { + if x.QueuedAllocations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringint((map[string]int)(x.QueuedAllocations), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[23] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"QueuedAllocations\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `QueuedAllocations`) + } + r.WriteMapElemValue() + if x.QueuedAllocations == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringint((map[string]int)(x.QueuedAllocations), e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[24] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LeaderACL))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LeaderACL)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[24] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LeaderACL\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LeaderACL`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LeaderACL))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LeaderACL)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[25] { + if false { + } else { + r.EncodeUint(uint64(x.SnapshotIndex)) + } + } else { + r.EncodeUint(0) + } + } else { + if yyq2[25] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SnapshotIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SnapshotIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.SnapshotIndex)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[26] { + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.EncodeUint(0) + } + } else { + if yyq2[26] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[27] { + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.EncodeUint(0) + } + } else { + if yyq2[27] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[28] { + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2[28] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[29] { + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2[29] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Evaluation) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Evaluation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "Priority": + if r.TryDecodeAsNil() { + x.Priority = 0 + } else { + x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + case "TriggeredBy": + if r.TryDecodeAsNil() { + x.TriggeredBy = "" + } else { + x.TriggeredBy = (string)(r.DecodeString()) + } + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "JobModifyIndex": + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "NodeModifyIndex": + if r.TryDecodeAsNil() { + x.NodeModifyIndex = 0 + } else { + x.NodeModifyIndex = (uint64)(r.DecodeUint64()) + } + case "DeploymentID": + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + case "Status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + case "StatusDescription": + if r.TryDecodeAsNil() { + x.StatusDescription = "" + } else { + x.StatusDescription = (string)(r.DecodeString()) + } + case "Wait": + if r.TryDecodeAsNil() { + x.Wait = 0 + } else { + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.Wait)); yyxt17 != nil { + z.DecExtension(x.Wait, yyxt17) + } else { + x.Wait = (time.Duration)(r.DecodeInt64()) + } + } + case "WaitUntil": + if r.TryDecodeAsNil() { + x.WaitUntil = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.WaitUntil = r.DecodeTime() + } else if yyxt19 := z.Extension(z.I2Rtid(x.WaitUntil)); yyxt19 != nil { + z.DecExtension(x.WaitUntil, yyxt19) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.WaitUntil) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.WaitUntil) + } else { + z.DecFallback(&x.WaitUntil, false) + } + } + case "NextEval": + if r.TryDecodeAsNil() { + x.NextEval = "" + } else { + x.NextEval = (string)(r.DecodeString()) + } + case "PreviousEval": + if r.TryDecodeAsNil() { + x.PreviousEval = "" + } else { + x.PreviousEval = (string)(r.DecodeString()) + } + case "BlockedEval": + if r.TryDecodeAsNil() { + x.BlockedEval = "" + } else { + x.BlockedEval = (string)(r.DecodeString()) + } + case "RelatedEvals": + if r.TryDecodeAsNil() { + x.RelatedEvals = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluationStub((*[]*EvaluationStub)(&x.RelatedEvals), d) + } + } + case "FailedTGAllocs": + if r.TryDecodeAsNil() { + x.FailedTGAllocs = nil + } else { + if false { + } else { + h.decMapstringPtrtoAllocMetric((*map[string]*AllocMetric)(&x.FailedTGAllocs), d) + } + } + case "ClassEligibility": + if r.TryDecodeAsNil() { + x.ClassEligibility = nil + } else { + if false { + } else { + h.decMapstringbool((*map[string]bool)(&x.ClassEligibility), d) + } + } + case "QuotaLimitReached": + if r.TryDecodeAsNil() { + x.QuotaLimitReached = "" + } else { + x.QuotaLimitReached = (string)(r.DecodeString()) + } + case "EscapedComputedClass": + if r.TryDecodeAsNil() { + x.EscapedComputedClass = false + } else { + x.EscapedComputedClass = (bool)(r.DecodeBool()) + } + case "AnnotatePlan": + if r.TryDecodeAsNil() { + x.AnnotatePlan = false + } else { + x.AnnotatePlan = (bool)(r.DecodeBool()) + } + case "QueuedAllocations": + if r.TryDecodeAsNil() { + x.QueuedAllocations = nil + } else { + if false { + } else { + h.decMapstringint((*map[string]int)(&x.QueuedAllocations), d) + } + } + case "LeaderACL": + if r.TryDecodeAsNil() { + x.LeaderACL = "" + } else { + x.LeaderACL = (string)(r.DecodeString()) + } + case "SnapshotIndex": + if r.TryDecodeAsNil() { + x.SnapshotIndex = 0 + } else { + x.SnapshotIndex = (uint64)(r.DecodeUint64()) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + case "CreateTime": + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + case "ModifyTime": + if r.TryDecodeAsNil() { + x.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Evaluation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj40 int + var yyb40 bool + var yyhl40 bool = l >= 0 + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Priority = 0 + } else { + x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TriggeredBy = "" + } else { + x.TriggeredBy = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobModifyIndex = 0 + } else { + x.JobModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeModifyIndex = 0 + } else { + x.NodeModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.StatusDescription = "" + } else { + x.StatusDescription = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Wait = 0 + } else { + if false { + } else if yyxt54 := z.Extension(z.I2Rtid(x.Wait)); yyxt54 != nil { + z.DecExtension(x.Wait, yyxt54) + } else { + x.Wait = (time.Duration)(r.DecodeInt64()) + } + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WaitUntil = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.WaitUntil = r.DecodeTime() + } else if yyxt56 := z.Extension(z.I2Rtid(x.WaitUntil)); yyxt56 != nil { + z.DecExtension(x.WaitUntil, yyxt56) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.WaitUntil) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.WaitUntil) + } else { + z.DecFallback(&x.WaitUntil, false) + } + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NextEval = "" + } else { + x.NextEval = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PreviousEval = "" + } else { + x.PreviousEval = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.BlockedEval = "" + } else { + x.BlockedEval = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RelatedEvals = nil + } else { + if false { + } else { + h.decSlicePtrtoEvaluationStub((*[]*EvaluationStub)(&x.RelatedEvals), d) + } + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.FailedTGAllocs = nil + } else { + if false { + } else { + h.decMapstringPtrtoAllocMetric((*map[string]*AllocMetric)(&x.FailedTGAllocs), d) + } + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ClassEligibility = nil + } else { + if false { + } else { + h.decMapstringbool((*map[string]bool)(&x.ClassEligibility), d) + } + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QuotaLimitReached = "" + } else { + x.QuotaLimitReached = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EscapedComputedClass = false + } else { + x.EscapedComputedClass = (bool)(r.DecodeBool()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AnnotatePlan = false + } else { + x.AnnotatePlan = (bool)(r.DecodeBool()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueuedAllocations = nil + } else { + if false { + } else { + h.decMapstringint((*map[string]int)(&x.QueuedAllocations), d) + } + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LeaderACL = "" + } else { + x.LeaderACL = (string)(r.DecodeString()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SnapshotIndex = 0 + } else { + x.SnapshotIndex = (uint64)(r.DecodeUint64()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + for { + yyj40++ + if yyhl40 { + yyb40 = yyj40 > l + } else { + yyb40 = r.CheckBreak() + } + if yyb40 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj40-1, "") + } + r.ReadArrayEnd() +} + +func (x *EvaluationStub) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(18) + } else { + r.WriteMapStart(18) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Priority)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Priority\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Priority`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Priority)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TriggeredBy))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TriggeredBy)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TriggeredBy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TriggeredBy`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.TriggeredBy))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TriggeredBy)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Status\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"StatusDescription\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `StatusDescription`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.WaitUntil) + } else if yyxt34 := z.Extension(z.I2Rtid(x.WaitUntil)); yyxt34 != nil { + z.EncExtension(x.WaitUntil, yyxt34) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.WaitUntil) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.WaitUntil) + } else { + z.EncFallback(x.WaitUntil) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"WaitUntil\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `WaitUntil`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.WaitUntil) + } else if yyxt35 := z.Extension(z.I2Rtid(x.WaitUntil)); yyxt35 != nil { + z.EncExtension(x.WaitUntil, yyxt35) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.WaitUntil) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.WaitUntil) + } else { + z.EncFallback(x.WaitUntil) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextEval))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextEval)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextEval\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextEval`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextEval))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextEval)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PreviousEval))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreviousEval)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PreviousEval\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PreviousEval`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PreviousEval))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreviousEval)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.BlockedEval))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.BlockedEval)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"BlockedEval\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `BlockedEval`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.BlockedEval))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.BlockedEval)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *EvaluationStub) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *EvaluationStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "Priority": + if r.TryDecodeAsNil() { + x.Priority = 0 + } else { + x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + case "TriggeredBy": + if r.TryDecodeAsNil() { + x.TriggeredBy = "" + } else { + x.TriggeredBy = (string)(r.DecodeString()) + } + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "NodeID": + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + case "DeploymentID": + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + case "Status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + case "StatusDescription": + if r.TryDecodeAsNil() { + x.StatusDescription = "" + } else { + x.StatusDescription = (string)(r.DecodeString()) + } + case "WaitUntil": + if r.TryDecodeAsNil() { + x.WaitUntil = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.WaitUntil = r.DecodeTime() + } else if yyxt15 := z.Extension(z.I2Rtid(x.WaitUntil)); yyxt15 != nil { + z.DecExtension(x.WaitUntil, yyxt15) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.WaitUntil) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.WaitUntil) + } else { + z.DecFallback(&x.WaitUntil, false) + } + } + case "NextEval": + if r.TryDecodeAsNil() { + x.NextEval = "" + } else { + x.NextEval = (string)(r.DecodeString()) + } + case "PreviousEval": + if r.TryDecodeAsNil() { + x.PreviousEval = "" + } else { + x.PreviousEval = (string)(r.DecodeString()) + } + case "BlockedEval": + if r.TryDecodeAsNil() { + x.BlockedEval = "" + } else { + x.BlockedEval = (string)(r.DecodeString()) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + case "CreateTime": + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + case "ModifyTime": + if r.TryDecodeAsNil() { + x.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *EvaluationStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj23 int + var yyb23 bool + var yyhl23 bool = l >= 0 + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Priority = 0 + } else { + x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TriggeredBy = "" + } else { + x.TriggeredBy = (string)(r.DecodeString()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeID = "" + } else { + x.NodeID = (string)(r.DecodeString()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentID = "" + } else { + x.DeploymentID = (string)(r.DecodeString()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.StatusDescription = "" + } else { + x.StatusDescription = (string)(r.DecodeString()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WaitUntil = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.WaitUntil = r.DecodeTime() + } else if yyxt35 := z.Extension(z.I2Rtid(x.WaitUntil)); yyxt35 != nil { + z.DecExtension(x.WaitUntil, yyxt35) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.WaitUntil) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.WaitUntil) + } else { + z.DecFallback(&x.WaitUntil, false) + } + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NextEval = "" + } else { + x.NextEval = (string)(r.DecodeString()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PreviousEval = "" + } else { + x.PreviousEval = (string)(r.DecodeString()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.BlockedEval = "" + } else { + x.BlockedEval = (string)(r.DecodeString()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + for { + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj23-1, "") + } + r.ReadArrayEnd() +} + +func (x *Plan) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyq2 = [12]bool{ // should field at this index be written? + x.EvalID != "", // EvalID + x.EvalToken != "", // EvalToken + x.Priority != 0, // Priority + x.AllAtOnce, // AllAtOnce + x.Job != nil, // Job + len(x.NodeUpdate) != 0, // NodeUpdate + len(x.NodeAllocation) != 0, // NodeAllocation + x.Annotations != nil, // Annotations + x.Deployment != nil, // Deployment + len(x.DeploymentUpdates) != 0, // DeploymentUpdates + len(x.NodePreemptions) != 0, // NodePreemptions + x.SnapshotIndex != 0, // SnapshotIndex + } + _ = yyq2 + if yyr2 || yy2arr2 { + r.WriteArrayStart(12) + } else { + var yynn2 int + for _, b := range yyq2 { + if b { + yynn2++ + } + } + r.WriteMapStart(yynn2) + yynn2 = 0 + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[0] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[0] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[1] { + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalToken)) + } + } + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw([]byte{}) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, "") + } + } + } else { + if yyq2[1] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"EvalToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `EvalToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.EvalToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalToken)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[2] { + if false { + } else { + r.EncodeInt(int64(x.Priority)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2[2] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Priority\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Priority`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Priority)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[3] { + if false { + } else { + r.EncodeBool(bool(x.AllAtOnce)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq2[3] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllAtOnce\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllAtOnce`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllAtOnce)) + } + } + } + var yyn15 bool + if x.Job == nil { + yyn15 = true + goto LABEL15 + } + LABEL15: + if yyr2 || yy2arr2 { + if yyn15 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[4] { + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[4] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Job\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) + } + r.WriteMapElemValue() + if yyn15 { + r.EncodeNil() + } else { + if x.Job == nil { + r.EncodeNil() + } else { + x.Job.CodecEncodeSelf(e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[5] { + if x.NodeUpdate == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeUpdate), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[5] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeUpdate\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeUpdate`) + } + r.WriteMapElemValue() + if x.NodeUpdate == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeUpdate), e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[6] { + if x.NodeAllocation == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeAllocation), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[6] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeAllocation\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeAllocation`) + } + r.WriteMapElemValue() + if x.NodeAllocation == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeAllocation), e) + } + } + } + } + var yyn24 bool + if x.Annotations == nil { + yyn24 = true + goto LABEL24 + } + LABEL24: + if yyr2 || yy2arr2 { + if yyn24 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[7] { + if x.Annotations == nil { + r.EncodeNil() + } else { + x.Annotations.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[7] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Annotations\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Annotations`) + } + r.WriteMapElemValue() + if yyn24 { + r.EncodeNil() + } else { + if x.Annotations == nil { + r.EncodeNil() + } else { + x.Annotations.CodecEncodeSelf(e) + } + } + } + } + var yyn27 bool + if x.Deployment == nil { + yyn27 = true + goto LABEL27 + } + LABEL27: + if yyr2 || yy2arr2 { + if yyn27 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if yyq2[8] { + if x.Deployment == nil { + r.EncodeNil() + } else { + x.Deployment.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[8] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Deployment\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Deployment`) + } + r.WriteMapElemValue() + if yyn27 { + r.EncodeNil() + } else { + if x.Deployment == nil { + r.EncodeNil() + } else { + x.Deployment.CodecEncodeSelf(e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[9] { + if x.DeploymentUpdates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[9] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentUpdates\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentUpdates`) + } + r.WriteMapElemValue() + if x.DeploymentUpdates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[10] { + if x.NodePreemptions == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodePreemptions), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[10] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodePreemptions\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodePreemptions`) + } + r.WriteMapElemValue() + if x.NodePreemptions == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodePreemptions), e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[11] { + if false { + } else { + r.EncodeUint(uint64(x.SnapshotIndex)) + } + } else { + r.EncodeUint(0) + } + } else { + if yyq2[11] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SnapshotIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SnapshotIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.SnapshotIndex)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *Plan) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *Plan) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "EvalID": + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + case "EvalToken": + if r.TryDecodeAsNil() { + x.EvalToken = "" + } else { + x.EvalToken = (string)(r.DecodeString()) + } + case "Priority": + if r.TryDecodeAsNil() { + x.Priority = 0 + } else { + x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "AllAtOnce": + if r.TryDecodeAsNil() { + x.AllAtOnce = false + } else { + x.AllAtOnce = (bool)(r.DecodeBool()) + } + case "Job": + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + case "NodeUpdate": + if r.TryDecodeAsNil() { + x.NodeUpdate = nil + } else { + if false { + } else { + h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodeUpdate), d) + } + } + case "NodeAllocation": + if r.TryDecodeAsNil() { + x.NodeAllocation = nil + } else { + if false { + } else { + h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodeAllocation), d) + } + } + case "Annotations": + if r.TryDecodeAsNil() { + if true && x.Annotations != nil { + x.Annotations = nil + } + } else { + if x.Annotations == nil { + x.Annotations = new(PlanAnnotations) + } + + x.Annotations.CodecDecodeSelf(d) + } + case "Deployment": + if r.TryDecodeAsNil() { + if true && x.Deployment != nil { + x.Deployment = nil + } + } else { + if x.Deployment == nil { + x.Deployment = new(Deployment) + } + + x.Deployment.CodecDecodeSelf(d) + } + case "DeploymentUpdates": + if r.TryDecodeAsNil() { + x.DeploymentUpdates = nil + } else { + if false { + } else { + h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(&x.DeploymentUpdates), d) + } + } + case "NodePreemptions": + if r.TryDecodeAsNil() { + x.NodePreemptions = nil + } else { + if false { + } else { + h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodePreemptions), d) + } + } + case "SnapshotIndex": + if r.TryDecodeAsNil() { + x.SnapshotIndex = 0 + } else { + x.SnapshotIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *Plan) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj20 int + var yyb20 bool + var yyhl20 bool = l >= 0 + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalID = "" + } else { + x.EvalID = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.EvalToken = "" + } else { + x.EvalToken = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Priority = 0 + } else { + x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllAtOnce = false + } else { + x.AllAtOnce = (bool)(r.DecodeBool()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Job != nil { + x.Job = nil + } + } else { + if x.Job == nil { + x.Job = new(Job) + } + + x.Job.CodecDecodeSelf(d) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeUpdate = nil + } else { + if false { + } else { + h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodeUpdate), d) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeAllocation = nil + } else { + if false { + } else { + h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodeAllocation), d) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Annotations != nil { + x.Annotations = nil + } + } else { + if x.Annotations == nil { + x.Annotations = new(PlanAnnotations) + } + + x.Annotations.CodecDecodeSelf(d) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Deployment != nil { + x.Deployment = nil + } + } else { + if x.Deployment == nil { + x.Deployment = new(Deployment) + } + + x.Deployment.CodecDecodeSelf(d) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentUpdates = nil + } else { + if false { + } else { + h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(&x.DeploymentUpdates), d) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodePreemptions = nil + } else { + if false { + } else { + h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodePreemptions), d) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SnapshotIndex = 0 + } else { + x.SnapshotIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj20-1, "") + } + r.ReadArrayEnd() +} + +func (x *PlanResult) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.NodeUpdate == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeUpdate), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeUpdate\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeUpdate`) + } + r.WriteMapElemValue() + if x.NodeUpdate == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeUpdate), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.NodeAllocation == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeAllocation), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodeAllocation\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodeAllocation`) + } + r.WriteMapElemValue() + if x.NodeAllocation == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeAllocation), e) + } + } + } + var yyn9 bool + if x.Deployment == nil { + yyn9 = true + goto LABEL9 + } + LABEL9: + if yyr2 || yy2arr2 { + if yyn9 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Deployment == nil { + r.EncodeNil() + } else { + x.Deployment.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Deployment\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Deployment`) + } + r.WriteMapElemValue() + if yyn9 { + r.EncodeNil() + } else { + if x.Deployment == nil { + r.EncodeNil() + } else { + x.Deployment.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.DeploymentUpdates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DeploymentUpdates\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentUpdates`) + } + r.WriteMapElemValue() + if x.DeploymentUpdates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.NodePreemptions == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodePreemptions), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NodePreemptions\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NodePreemptions`) + } + r.WriteMapElemValue() + if x.NodePreemptions == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodePreemptions), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.RejectedNodes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.RejectedNodes), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RejectedNodes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RejectedNodes`) + } + r.WriteMapElemValue() + if x.RejectedNodes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.RejectedNodes), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.IneligibleNodes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.IneligibleNodes), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IneligibleNodes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IneligibleNodes`) + } + r.WriteMapElemValue() + if x.IneligibleNodes == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.IneligibleNodes), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.RefreshIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RefreshIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RefreshIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.RefreshIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.AllocIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.AllocIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *PlanResult) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *PlanResult) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "NodeUpdate": + if r.TryDecodeAsNil() { + x.NodeUpdate = nil + } else { + if false { + } else { + h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodeUpdate), d) + } + } + case "NodeAllocation": + if r.TryDecodeAsNil() { + x.NodeAllocation = nil + } else { + if false { + } else { + h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodeAllocation), d) + } + } + case "Deployment": + if r.TryDecodeAsNil() { + if true && x.Deployment != nil { + x.Deployment = nil + } + } else { + if x.Deployment == nil { + x.Deployment = new(Deployment) + } + + x.Deployment.CodecDecodeSelf(d) + } + case "DeploymentUpdates": + if r.TryDecodeAsNil() { + x.DeploymentUpdates = nil + } else { + if false { + } else { + h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(&x.DeploymentUpdates), d) + } + } + case "NodePreemptions": + if r.TryDecodeAsNil() { + x.NodePreemptions = nil + } else { + if false { + } else { + h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodePreemptions), d) + } + } + case "RejectedNodes": + if r.TryDecodeAsNil() { + x.RejectedNodes = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.RejectedNodes), d) + } + } + case "IneligibleNodes": + if r.TryDecodeAsNil() { + x.IneligibleNodes = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.IneligibleNodes), d) + } + } + case "RefreshIndex": + if r.TryDecodeAsNil() { + x.RefreshIndex = 0 + } else { + x.RefreshIndex = (uint64)(r.DecodeUint64()) + } + case "AllocIndex": + if r.TryDecodeAsNil() { + x.AllocIndex = 0 + } else { + x.AllocIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *PlanResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj19 int + var yyb19 bool + var yyhl19 bool = l >= 0 + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeUpdate = nil + } else { + if false { + } else { + h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodeUpdate), d) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodeAllocation = nil + } else { + if false { + } else { + h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodeAllocation), d) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Deployment != nil { + x.Deployment = nil + } + } else { + if x.Deployment == nil { + x.Deployment = new(Deployment) + } + + x.Deployment.CodecDecodeSelf(d) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DeploymentUpdates = nil + } else { + if false { + } else { + h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(&x.DeploymentUpdates), d) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NodePreemptions = nil + } else { + if false { + } else { + h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodePreemptions), d) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RejectedNodes = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.RejectedNodes), d) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.IneligibleNodes = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.IneligibleNodes), d) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RefreshIndex = 0 + } else { + x.RefreshIndex = (uint64)(r.DecodeUint64()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocIndex = 0 + } else { + x.AllocIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj19-1, "") + } + r.ReadArrayEnd() +} + +func (x *PlanAnnotations) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.DesiredTGUpdates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoDesiredUpdates((map[string]*DesiredUpdates)(x.DesiredTGUpdates), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DesiredTGUpdates\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredTGUpdates`) + } + r.WriteMapElemValue() + if x.DesiredTGUpdates == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoDesiredUpdates((map[string]*DesiredUpdates)(x.DesiredTGUpdates), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.PreemptedAllocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.PreemptedAllocs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PreemptedAllocs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptedAllocs`) + } + r.WriteMapElemValue() + if x.PreemptedAllocs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.PreemptedAllocs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *PlanAnnotations) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *PlanAnnotations) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "DesiredTGUpdates": + if r.TryDecodeAsNil() { + x.DesiredTGUpdates = nil + } else { + if false { + } else { + h.decMapstringPtrtoDesiredUpdates((*map[string]*DesiredUpdates)(&x.DesiredTGUpdates), d) + } + } + case "PreemptedAllocs": + if r.TryDecodeAsNil() { + x.PreemptedAllocs = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.PreemptedAllocs), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *PlanAnnotations) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DesiredTGUpdates = nil + } else { + if false { + } else { + h.decMapstringPtrtoDesiredUpdates((*map[string]*DesiredUpdates)(&x.DesiredTGUpdates), d) + } + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PreemptedAllocs = nil + } else { + if false { + } else { + h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.PreemptedAllocs), d) + } + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *DesiredUpdates) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Ignore)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Ignore\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Ignore`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Ignore)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Place)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Place\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Place`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Place)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Migrate)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Migrate\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Migrate`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Migrate)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Stop)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Stop\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Stop`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Stop)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.InPlaceUpdate)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"InPlaceUpdate\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `InPlaceUpdate`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.InPlaceUpdate)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.DestructiveUpdate)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DestructiveUpdate\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DestructiveUpdate`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.DestructiveUpdate)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Canary)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Canary\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Canary`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Canary)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Preemptions)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Preemptions\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Preemptions`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Preemptions)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *DesiredUpdates) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *DesiredUpdates) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Ignore": + if r.TryDecodeAsNil() { + x.Ignore = 0 + } else { + x.Ignore = (uint64)(r.DecodeUint64()) + } + case "Place": + if r.TryDecodeAsNil() { + x.Place = 0 + } else { + x.Place = (uint64)(r.DecodeUint64()) + } + case "Migrate": + if r.TryDecodeAsNil() { + x.Migrate = 0 + } else { + x.Migrate = (uint64)(r.DecodeUint64()) + } + case "Stop": + if r.TryDecodeAsNil() { + x.Stop = 0 + } else { + x.Stop = (uint64)(r.DecodeUint64()) + } + case "InPlaceUpdate": + if r.TryDecodeAsNil() { + x.InPlaceUpdate = 0 + } else { + x.InPlaceUpdate = (uint64)(r.DecodeUint64()) + } + case "DestructiveUpdate": + if r.TryDecodeAsNil() { + x.DestructiveUpdate = 0 + } else { + x.DestructiveUpdate = (uint64)(r.DecodeUint64()) + } + case "Canary": + if r.TryDecodeAsNil() { + x.Canary = 0 + } else { + x.Canary = (uint64)(r.DecodeUint64()) + } + case "Preemptions": + if r.TryDecodeAsNil() { + x.Preemptions = 0 + } else { + x.Preemptions = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *DesiredUpdates) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Ignore = 0 + } else { + x.Ignore = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Place = 0 + } else { + x.Place = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Migrate = 0 + } else { + x.Migrate = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Stop = 0 + } else { + x.Stop = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.InPlaceUpdate = 0 + } else { + x.InPlaceUpdate = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DestructiveUpdate = 0 + } else { + x.DestructiveUpdate = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Canary = 0 + } else { + x.Canary = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Preemptions = 0 + } else { + x.Preemptions = (uint64)(r.DecodeUint64()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *KeyringResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Messages == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Messages), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Messages\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Messages`) + } + r.WriteMapElemValue() + if x.Messages == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringstring((map[string]string)(x.Messages), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Keys == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringint((map[string]int)(x.Keys), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Keys\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Keys`) + } + r.WriteMapElemValue() + if x.Keys == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringint((map[string]int)(x.Keys), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.NumNodes)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NumNodes\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NumNodes`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.NumNodes)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *KeyringResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *KeyringResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Messages": + if r.TryDecodeAsNil() { + x.Messages = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Messages), d) + } + } + case "Keys": + if r.TryDecodeAsNil() { + x.Keys = nil + } else { + if false { + } else { + h.decMapstringint((*map[string]int)(&x.Keys), d) + } + } + case "NumNodes": + if r.TryDecodeAsNil() { + x.NumNodes = 0 + } else { + x.NumNodes = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *KeyringResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Messages = nil + } else { + if false { + } else { + h.decMapstringstring((*map[string]string)(&x.Messages), d) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Keys = nil + } else { + if false { + } else { + h.decMapstringint((*map[string]int)(&x.Keys), d) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NumNodes = 0 + } else { + x.NumNodes = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *KeyringRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Key))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Key)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Key\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Key`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Key))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Key)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *KeyringRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *KeyringRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Key": + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *KeyringRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Key = "" + } else { + x.Key = (string)(r.DecodeString()) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *RecoverableError) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Err))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Err)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Err\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Err`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Err))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Err)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Recoverable)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Recoverable\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Recoverable`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Recoverable)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *RecoverableError) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *RecoverableError) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Err": + if r.TryDecodeAsNil() { + x.Err = "" + } else { + x.Err = (string)(r.DecodeString()) + } + case "Recoverable": + if r.TryDecodeAsNil() { + x.Recoverable = false + } else { + x.Recoverable = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *RecoverableError) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Err = "" + } else { + x.Err = (string)(r.DecodeString()) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Recoverable = false + } else { + x.Recoverable = (bool)(r.DecodeBool()) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *WrappedServerError) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Err == nil { + r.EncodeNil() + } else { + if false { + } else { + z.EncFallback(x.Err) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Err\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Err`) + } + r.WriteMapElemValue() + if x.Err == nil { + r.EncodeNil() + } else { + if false { + } else { + z.EncFallback(x.Err) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *WrappedServerError) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *WrappedServerError) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Err": + if r.TryDecodeAsNil() { + x.Err = nil + } else { + if false { + } else { + z.DecFallback(&x.Err, true) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *WrappedServerError) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Err = nil + } else { + if false { + } else { + z.DecFallback(&x.Err, true) + } + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLPolicy) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Description\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Description`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Rules))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Rules)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Rules\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Rules`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Rules))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Rules)) + } + } + } + var yyn12 bool + if x.RulesJSON == nil { + yyn12 = true + goto LABEL12 + } + LABEL12: + if yyr2 || yy2arr2 { + if yyn12 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.RulesJSON == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.RulesJSON)); yyxt13 != nil { + z.EncExtension(x.RulesJSON, yyxt13) + } else { + z.EncFallback(x.RulesJSON) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RulesJSON\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `RulesJSON`) + } + r.WriteMapElemValue() + if yyn12 { + r.EncodeNil() + } else { + if x.RulesJSON == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.RulesJSON)); yyxt14 != nil { + z.EncExtension(x.RulesJSON, yyxt14) + } else { + z.EncFallback(x.RulesJSON) + } + } + } + } + var yyn15 bool + if x.JobACL == nil { + yyn15 = true + goto LABEL15 + } + LABEL15: + if yyr2 || yy2arr2 { + if yyn15 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.JobACL == nil { + r.EncodeNil() + } else { + x.JobACL.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobACL\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobACL`) + } + r.WriteMapElemValue() + if yyn15 { + r.EncodeNil() + } else { + if x.JobACL == nil { + r.EncodeNil() + } else { + x.JobACL.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Hash\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Hash`) + } + r.WriteMapElemValue() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLPolicy) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Description": + if r.TryDecodeAsNil() { + x.Description = "" + } else { + x.Description = (string)(r.DecodeString()) + } + case "Rules": + if r.TryDecodeAsNil() { + x.Rules = "" + } else { + x.Rules = (string)(r.DecodeString()) + } + case "RulesJSON": + if r.TryDecodeAsNil() { + if true && x.RulesJSON != nil { + x.RulesJSON = nil + } + } else { + if x.RulesJSON == nil { + x.RulesJSON = new(pkg6_acl.Policy) + } + + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.RulesJSON)); yyxt8 != nil { + z.DecExtension(x.RulesJSON, yyxt8) + } else { + z.DecFallback(x.RulesJSON, false) + } + } + case "JobACL": + if r.TryDecodeAsNil() { + if true && x.JobACL != nil { + x.JobACL = nil + } + } else { + if x.JobACL == nil { + x.JobACL = new(JobACL) + } + + x.JobACL.CodecDecodeSelf(d) + } + case "Hash": + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj14 int + var yyb14 bool + var yyhl14 bool = l >= 0 + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Description = "" + } else { + x.Description = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Rules = "" + } else { + x.Rules = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.RulesJSON != nil { + x.RulesJSON = nil + } + } else { + if x.RulesJSON == nil { + x.RulesJSON = new(pkg6_acl.Policy) + } + + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.RulesJSON)); yyxt19 != nil { + z.DecExtension(x.RulesJSON, yyxt19) + } else { + z.DecFallback(x.RulesJSON, false) + } + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.JobACL != nil { + x.JobACL = nil + } + } else { + if x.JobACL == nil { + x.JobACL = new(JobACL) + } + + x.JobACL.CodecDecodeSelf(d) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj14-1, "") + } + r.ReadArrayEnd() +} + +func (x *JobACL) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Group))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Group)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Group\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Group`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Group))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Group)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Task)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Task\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Task`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Task)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *JobACL) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *JobACL) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "JobID": + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + case "Group": + if r.TryDecodeAsNil() { + x.Group = "" + } else { + x.Group = (string)(r.DecodeString()) + } + case "Task": + if r.TryDecodeAsNil() { + x.Task = "" + } else { + x.Task = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *JobACL) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JobID = "" + } else { + x.JobID = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Group = "" + } else { + x.Group = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Task = "" + } else { + x.Task = (string)(r.DecodeString()) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLPolicyListStub) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Description\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Description`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) + } + } + } + var yyn9 bool + if x.JobACL == nil { + yyn9 = true + goto LABEL9 + } + LABEL9: + if yyr2 || yy2arr2 { + if yyn9 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.JobACL == nil { + r.EncodeNil() + } else { + x.JobACL.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JobACL\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JobACL`) + } + r.WriteMapElemValue() + if yyn9 { + r.EncodeNil() + } else { + if x.JobACL == nil { + r.EncodeNil() + } else { + x.JobACL.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Hash\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Hash`) + } + r.WriteMapElemValue() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLPolicyListStub) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLPolicyListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Description": + if r.TryDecodeAsNil() { + x.Description = "" + } else { + x.Description = (string)(r.DecodeString()) + } + case "JobACL": + if r.TryDecodeAsNil() { + if true && x.JobACL != nil { + x.JobACL = nil + } + } else { + if x.JobACL == nil { + x.JobACL = new(JobACL) + } + + x.JobACL.CodecDecodeSelf(d) + } + case "Hash": + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLPolicyListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Description = "" + } else { + x.Description = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.JobACL != nil { + x.JobACL = nil + } + } else { + if x.JobACL == nil { + x.JobACL = new(JobACL) + } + + x.JobACL.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLPolicyListRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(12) + } else { + r.WriteMapStart(12) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.EncExtension(x.MaxQueryTime, yyxt13) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { + z.EncExtension(x.MaxQueryTime, yyxt14) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLPolicyListRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLPolicyListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { + z.DecExtension(x.MaxQueryTime, yyxt8) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLPolicyListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { + z.DecExtension(x.MaxQueryTime, yyxt22) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLPolicySpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLPolicySpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLPolicySpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLPolicySpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt24 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt24 != nil { + z.DecExtension(x.MaxQueryTime, yyxt24) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLPolicySetRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Names == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Names), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Names\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Names`) + } + r.WriteMapElemValue() + if x.Names == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Names), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLPolicySetRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLPolicySetRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Names": + if r.TryDecodeAsNil() { + x.Names = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Names), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLPolicySetRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj19 int + var yyb19 bool + var yyhl19 bool = l >= 0 + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Names = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Names), d) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { + z.DecExtension(x.MaxQueryTime, yyxt26) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj19-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLPolicyListResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Policies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLPolicyListStub(([]*ACLPolicyListStub)(x.Policies), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Policies\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Policies`) + } + r.WriteMapElemValue() + if x.Policies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLPolicyListStub(([]*ACLPolicyListStub)(x.Policies), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLPolicyListResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLPolicyListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Policies": + if r.TryDecodeAsNil() { + x.Policies = nil + } else { + if false { + } else { + h.decSlicePtrtoACLPolicyListStub((*[]*ACLPolicyListStub)(&x.Policies), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLPolicyListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Policies = nil + } else { + if false { + } else { + h.decSlicePtrtoACLPolicyListStub((*[]*ACLPolicyListStub)(&x.Policies), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *SingleACLPolicyResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + var yyn3 bool + if x.Policy == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Policy == nil { + r.EncodeNil() + } else { + x.Policy.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Policy\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Policy`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Policy == nil { + r.EncodeNil() + } else { + x.Policy.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SingleACLPolicyResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SingleACLPolicyResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Policy": + if r.TryDecodeAsNil() { + if true && x.Policy != nil { + x.Policy = nil + } + } else { + if x.Policy == nil { + x.Policy = new(ACLPolicy) + } + + x.Policy.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SingleACLPolicyResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Policy != nil { + x.Policy = nil + } + } else { + if x.Policy == nil { + x.Policy = new(ACLPolicy) + } + + x.Policy.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.DecExtension(x.LastContact, yyxt14) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLPolicySetResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Policies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoACLPolicy((map[string]*ACLPolicy)(x.Policies), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Policies\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Policies`) + } + r.WriteMapElemValue() + if x.Policies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoACLPolicy((map[string]*ACLPolicy)(x.Policies), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLPolicySetResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLPolicySetResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Policies": + if r.TryDecodeAsNil() { + x.Policies = nil + } else { + if false { + } else { + h.decMapstringPtrtoACLPolicy((*map[string]*ACLPolicy)(&x.Policies), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLPolicySetResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Policies = nil + } else { + if false { + } else { + h.decMapstringPtrtoACLPolicy((*map[string]*ACLPolicy)(&x.Policies), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLPolicyDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Names == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Names), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Names\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Names`) + } + r.WriteMapElemValue() + if x.Names == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Names), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLPolicyDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLPolicyDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Names": + if r.TryDecodeAsNil() { + x.Names = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Names), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLPolicyDeleteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Names = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Names), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLPolicyUpsertRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Policies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLPolicy(([]*ACLPolicy)(x.Policies), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Policies\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Policies`) + } + r.WriteMapElemValue() + if x.Policies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLPolicy(([]*ACLPolicy)(x.Policies), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLPolicyUpsertRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLPolicyUpsertRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Policies": + if r.TryDecodeAsNil() { + x.Policies = nil + } else { + if false { + } else { + h.decSlicePtrtoACLPolicy((*[]*ACLPolicy)(&x.Policies), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLPolicyUpsertRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Policies = nil + } else { + if false { + } else { + h.decSlicePtrtoACLPolicy((*[]*ACLPolicy)(&x.Policies), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLToken) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AccessorID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AccessorID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SecretID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SecretID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Policies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Policies), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Policies\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Policies`) + } + r.WriteMapElemValue() + if x.Policies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Policies), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Roles == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLTokenRoleLink(([]*ACLTokenRoleLink)(x.Roles), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Roles\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Roles`) + } + r.WriteMapElemValue() + if x.Roles == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLTokenRoleLink(([]*ACLTokenRoleLink)(x.Roles), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Global)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Global\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Global`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Global)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Hash\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Hash`) + } + r.WriteMapElemValue() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.CreateTime) + } else if yyxt28 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt28 != nil { + z.EncExtension(x.CreateTime, yyxt28) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.CreateTime) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.CreateTime) + } else { + z.EncFallback(x.CreateTime) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.CreateTime) + } else if yyxt29 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt29 != nil { + z.EncExtension(x.CreateTime, yyxt29) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.CreateTime) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.CreateTime) + } else { + z.EncFallback(x.CreateTime) + } + } + var yyn30 bool + if x.ExpirationTime == nil { + yyn30 = true + goto LABEL30 + } + LABEL30: + if yyr2 || yy2arr2 { + if yyn30 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ExpirationTime == nil { + r.EncodeNil() + } else { + yy31 := *x.ExpirationTime + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(yy31) + } else if yyxt32 := z.Extension(z.I2Rtid(yy31)); yyxt32 != nil { + z.EncExtension(yy31, yyxt32) + } else if z.EncBinary() { + z.EncBinaryMarshal(yy31) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(yy31) + } else { + z.EncFallback(yy31) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ExpirationTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ExpirationTime`) + } + r.WriteMapElemValue() + if yyn30 { + r.EncodeNil() + } else { + if x.ExpirationTime == nil { + r.EncodeNil() + } else { + yy33 := *x.ExpirationTime + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(yy33) + } else if yyxt34 := z.Extension(z.I2Rtid(yy33)); yyxt34 != nil { + z.EncExtension(yy33, yyxt34) + } else if z.EncBinary() { + z.EncBinaryMarshal(yy33) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(yy33) + } else { + z.EncFallback(yy33) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt36 := z.Extension(z.I2Rtid(x.ExpirationTTL)); yyxt36 != nil { + z.EncExtension(x.ExpirationTTL, yyxt36) + } else { + r.EncodeInt(int64(x.ExpirationTTL)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ExpirationTTL\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ExpirationTTL`) + } + r.WriteMapElemValue() + if false { + } else if yyxt37 := z.Extension(z.I2Rtid(x.ExpirationTTL)); yyxt37 != nil { + z.EncExtension(x.ExpirationTTL, yyxt37) + } else { + r.EncodeInt(int64(x.ExpirationTTL)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLToken) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(x) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLToken) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AccessorID": + if r.TryDecodeAsNil() { + x.AccessorID = "" + } else { + x.AccessorID = (string)(r.DecodeString()) + } + case "SecretID": + if r.TryDecodeAsNil() { + x.SecretID = "" + } else { + x.SecretID = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + case "Policies": + if r.TryDecodeAsNil() { + x.Policies = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Policies), d) + } + } + case "Roles": + if r.TryDecodeAsNil() { + x.Roles = nil + } else { + if false { + } else { + h.decSlicePtrtoACLTokenRoleLink((*[]*ACLTokenRoleLink)(&x.Roles), d) + } + } + case "Global": + if r.TryDecodeAsNil() { + x.Global = false + } else { + x.Global = (bool)(r.DecodeBool()) + } + case "Hash": + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } + case "CreateTime": + if r.TryDecodeAsNil() { + x.CreateTime = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.CreateTime = r.DecodeTime() + } else if yyxt16 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt16 != nil { + z.DecExtension(x.CreateTime, yyxt16) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.CreateTime) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.CreateTime) + } else { + z.DecFallback(&x.CreateTime, false) + } + } + case "ExpirationTime": + if r.TryDecodeAsNil() { + if true && x.ExpirationTime != nil { + x.ExpirationTime = nil + } + } else { + if x.ExpirationTime == nil { + x.ExpirationTime = new(time.Time) + } + + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + *x.ExpirationTime = r.DecodeTime() + } else if yyxt18 := z.Extension(z.I2Rtid(x.ExpirationTime)); yyxt18 != nil { + z.DecExtension(x.ExpirationTime, yyxt18) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(x.ExpirationTime) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.ExpirationTime) + } else { + z.DecFallback(x.ExpirationTime, false) + } + } + case "ExpirationTTL": + if r.TryDecodeAsNil() { + x.ExpirationTTL = 0 + } else { + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.ExpirationTTL)); yyxt20 != nil { + z.DecExtension(x.ExpirationTTL, yyxt20) + } else { + x.ExpirationTTL = (time.Duration)(r.DecodeInt64()) + } + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLToken) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj23 int + var yyb23 bool + var yyhl23 bool = l >= 0 + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AccessorID = "" + } else { + x.AccessorID = (string)(r.DecodeString()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SecretID = "" + } else { + x.SecretID = (string)(r.DecodeString()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Policies = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Policies), d) + } + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Roles = nil + } else { + if false { + } else { + h.decSlicePtrtoACLTokenRoleLink((*[]*ACLTokenRoleLink)(&x.Roles), d) + } + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Global = false + } else { + x.Global = (bool)(r.DecodeBool()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateTime = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.CreateTime = r.DecodeTime() + } else if yyxt36 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt36 != nil { + z.DecExtension(x.CreateTime, yyxt36) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.CreateTime) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.CreateTime) + } else { + z.DecFallback(&x.CreateTime, false) + } + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ExpirationTime != nil { + x.ExpirationTime = nil + } + } else { + if x.ExpirationTime == nil { + x.ExpirationTime = new(time.Time) + } + + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + *x.ExpirationTime = r.DecodeTime() + } else if yyxt38 := z.Extension(z.I2Rtid(x.ExpirationTime)); yyxt38 != nil { + z.DecExtension(x.ExpirationTime, yyxt38) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(x.ExpirationTime) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.ExpirationTime) + } else { + z.DecFallback(x.ExpirationTime, false) + } + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ExpirationTTL = 0 + } else { + if false { + } else if yyxt40 := z.Extension(z.I2Rtid(x.ExpirationTTL)); yyxt40 != nil { + z.DecExtension(x.ExpirationTTL, yyxt40) + } else { + x.ExpirationTTL = (time.Duration)(r.DecodeInt64()) + } + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj23++ + if yyhl23 { + yyb23 = yyj23 > l + } else { + yyb23 = r.CheckBreak() + } + if yyb23 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj23-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLTokenListStub) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(11) + } else { + r.WriteMapStart(11) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AccessorID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AccessorID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Policies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Policies), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Policies\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Policies`) + } + r.WriteMapElemValue() + if x.Policies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Policies), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Roles == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLTokenRoleLink(([]*ACLTokenRoleLink)(x.Roles), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Roles\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Roles`) + } + r.WriteMapElemValue() + if x.Roles == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLTokenRoleLink(([]*ACLTokenRoleLink)(x.Roles), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Global)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Global\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Global`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Global)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Hash\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Hash`) + } + r.WriteMapElemValue() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.CreateTime) + } else if yyxt25 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt25 != nil { + z.EncExtension(x.CreateTime, yyxt25) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.CreateTime) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.CreateTime) + } else { + z.EncFallback(x.CreateTime) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.CreateTime) + } else if yyxt26 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt26 != nil { + z.EncExtension(x.CreateTime, yyxt26) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.CreateTime) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.CreateTime) + } else { + z.EncFallback(x.CreateTime) + } + } + var yyn27 bool + if x.ExpirationTime == nil { + yyn27 = true + goto LABEL27 + } + LABEL27: + if yyr2 || yy2arr2 { + if yyn27 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.ExpirationTime == nil { + r.EncodeNil() + } else { + yy28 := *x.ExpirationTime + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(yy28) + } else if yyxt29 := z.Extension(z.I2Rtid(yy28)); yyxt29 != nil { + z.EncExtension(yy28, yyxt29) + } else if z.EncBinary() { + z.EncBinaryMarshal(yy28) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(yy28) + } else { + z.EncFallback(yy28) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ExpirationTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ExpirationTime`) + } + r.WriteMapElemValue() + if yyn27 { + r.EncodeNil() + } else { + if x.ExpirationTime == nil { + r.EncodeNil() + } else { + yy30 := *x.ExpirationTime + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(yy30) + } else if yyxt31 := z.Extension(z.I2Rtid(yy30)); yyxt31 != nil { + z.EncExtension(yy30, yyxt31) + } else if z.EncBinary() { + z.EncBinaryMarshal(yy30) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(yy30) + } else { + z.EncFallback(yy30) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLTokenListStub) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLTokenListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AccessorID": + if r.TryDecodeAsNil() { + x.AccessorID = "" + } else { + x.AccessorID = (string)(r.DecodeString()) + } + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + case "Policies": + if r.TryDecodeAsNil() { + x.Policies = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Policies), d) + } + } + case "Roles": + if r.TryDecodeAsNil() { + x.Roles = nil + } else { + if false { + } else { + h.decSlicePtrtoACLTokenRoleLink((*[]*ACLTokenRoleLink)(&x.Roles), d) + } + } + case "Global": + if r.TryDecodeAsNil() { + x.Global = false + } else { + x.Global = (bool)(r.DecodeBool()) + } + case "Hash": + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } + case "CreateTime": + if r.TryDecodeAsNil() { + x.CreateTime = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.CreateTime = r.DecodeTime() + } else if yyxt15 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt15 != nil { + z.DecExtension(x.CreateTime, yyxt15) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.CreateTime) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.CreateTime) + } else { + z.DecFallback(&x.CreateTime, false) + } + } + case "ExpirationTime": + if r.TryDecodeAsNil() { + if true && x.ExpirationTime != nil { + x.ExpirationTime = nil + } + } else { + if x.ExpirationTime == nil { + x.ExpirationTime = new(time.Time) + } + + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + *x.ExpirationTime = r.DecodeTime() + } else if yyxt17 := z.Extension(z.I2Rtid(x.ExpirationTime)); yyxt17 != nil { + z.DecExtension(x.ExpirationTime, yyxt17) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(x.ExpirationTime) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.ExpirationTime) + } else { + z.DecFallback(x.ExpirationTime, false) + } + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLTokenListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj20 int + var yyb20 bool + var yyhl20 bool = l >= 0 + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AccessorID = "" + } else { + x.AccessorID = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Policies = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Policies), d) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Roles = nil + } else { + if false { + } else { + h.decSlicePtrtoACLTokenRoleLink((*[]*ACLTokenRoleLink)(&x.Roles), d) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Global = false + } else { + x.Global = (bool)(r.DecodeBool()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateTime = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.CreateTime = r.DecodeTime() + } else if yyxt32 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt32 != nil { + z.DecExtension(x.CreateTime, yyxt32) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.CreateTime) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.CreateTime) + } else { + z.DecFallback(&x.CreateTime, false) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.ExpirationTime != nil { + x.ExpirationTime = nil + } + } else { + if x.ExpirationTime == nil { + x.ExpirationTime = new(time.Time) + } + + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + *x.ExpirationTime = r.DecodeTime() + } else if yyxt34 := z.Extension(z.I2Rtid(x.ExpirationTime)); yyxt34 != nil { + z.DecExtension(x.ExpirationTime, yyxt34) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(x.ExpirationTime) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.ExpirationTime) + } else { + z.DecFallback(x.ExpirationTime, false) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = r.CheckBreak() + } + if yyb20 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj20-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLTokenListRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.GlobalOnly)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"GlobalOnly\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `GlobalOnly`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.GlobalOnly)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLTokenListRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLTokenListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "GlobalOnly": + if r.TryDecodeAsNil() { + x.GlobalOnly = false + } else { + x.GlobalOnly = (bool)(r.DecodeBool()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLTokenListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.GlobalOnly = false + } else { + x.GlobalOnly = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt24 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt24 != nil { + z.DecExtension(x.MaxQueryTime, yyxt24) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLTokenSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AccessorID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AccessorID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLTokenSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLTokenSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AccessorID": + if r.TryDecodeAsNil() { + x.AccessorID = "" + } else { + x.AccessorID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLTokenSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AccessorID = "" + } else { + x.AccessorID = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt24 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt24 != nil { + z.DecExtension(x.MaxQueryTime, yyxt24) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLTokenSetRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.AccessorIDS == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.AccessorIDS), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AccessorIDS\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AccessorIDS`) + } + r.WriteMapElemValue() + if x.AccessorIDS == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.AccessorIDS), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLTokenSetRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLTokenSetRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AccessorIDS": + if r.TryDecodeAsNil() { + x.AccessorIDS = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.AccessorIDS), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLTokenSetRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj19 int + var yyb19 bool + var yyhl19 bool = l >= 0 + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AccessorIDS = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.AccessorIDS), d) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { + z.DecExtension(x.MaxQueryTime, yyxt26) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj19-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLTokenListResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Tokens == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLTokenListStub(([]*ACLTokenListStub)(x.Tokens), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Tokens\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Tokens`) + } + r.WriteMapElemValue() + if x.Tokens == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLTokenListStub(([]*ACLTokenListStub)(x.Tokens), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLTokenListResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLTokenListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Tokens": + if r.TryDecodeAsNil() { + x.Tokens = nil + } else { + if false { + } else { + h.decSlicePtrtoACLTokenListStub((*[]*ACLTokenListStub)(&x.Tokens), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLTokenListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Tokens = nil + } else { + if false { + } else { + h.decSlicePtrtoACLTokenListStub((*[]*ACLTokenListStub)(&x.Tokens), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *SingleACLTokenResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + var yyn3 bool + if x.Token == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Token == nil { + r.EncodeNil() + } else { + x.Token.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Token\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Token`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Token == nil { + r.EncodeNil() + } else { + x.Token.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SingleACLTokenResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SingleACLTokenResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Token": + if r.TryDecodeAsNil() { + if true && x.Token != nil { + x.Token = nil + } + } else { + if x.Token == nil { + x.Token = new(ACLToken) + } + + x.Token.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SingleACLTokenResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Token != nil { + x.Token = nil + } + } else { + if x.Token == nil { + x.Token = new(ACLToken) + } + + x.Token.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.DecExtension(x.LastContact, yyxt14) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLTokenSetResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Tokens == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoACLToken((map[string]*ACLToken)(x.Tokens), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Tokens\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Tokens`) + } + r.WriteMapElemValue() + if x.Tokens == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoACLToken((map[string]*ACLToken)(x.Tokens), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLTokenSetResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLTokenSetResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Tokens": + if r.TryDecodeAsNil() { + x.Tokens = nil + } else { + if false { + } else { + h.decMapstringPtrtoACLToken((*map[string]*ACLToken)(&x.Tokens), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLTokenSetResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Tokens = nil + } else { + if false { + } else { + h.decMapstringPtrtoACLToken((*map[string]*ACLToken)(&x.Tokens), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *ResolveACLTokenRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SecretID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SecretID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ResolveACLTokenRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ResolveACLTokenRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "SecretID": + if r.TryDecodeAsNil() { + x.SecretID = "" + } else { + x.SecretID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ResolveACLTokenRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SecretID = "" + } else { + x.SecretID = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt24 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt24 != nil { + z.DecExtension(x.MaxQueryTime, yyxt24) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *ResolveACLTokenResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + var yyn3 bool + if x.Token == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Token == nil { + r.EncodeNil() + } else { + x.Token.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Token\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Token`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Token == nil { + r.EncodeNil() + } else { + x.Token.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ResolveACLTokenResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ResolveACLTokenResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Token": + if r.TryDecodeAsNil() { + if true && x.Token != nil { + x.Token = nil + } + } else { + if x.Token == nil { + x.Token = new(ACLToken) + } + + x.Token.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ResolveACLTokenResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Token != nil { + x.Token = nil + } + } else { + if x.Token == nil { + x.Token = new(ACLToken) + } + + x.Token.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.DecExtension(x.LastContact, yyxt14) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLTokenDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.AccessorIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.AccessorIDs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AccessorIDs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AccessorIDs`) + } + r.WriteMapElemValue() + if x.AccessorIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.AccessorIDs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLTokenDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLTokenDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AccessorIDs": + if r.TryDecodeAsNil() { + x.AccessorIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.AccessorIDs), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLTokenDeleteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AccessorIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.AccessorIDs), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLTokenBootstrapRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + var yyn3 bool + if x.Token == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Token == nil { + r.EncodeNil() + } else { + x.Token.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Token\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Token`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Token == nil { + r.EncodeNil() + } else { + x.Token.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ResetIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ResetIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ResetIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ResetIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.BootstrapSecret))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.BootstrapSecret)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"BootstrapSecret\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `BootstrapSecret`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.BootstrapSecret))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.BootstrapSecret)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLTokenBootstrapRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLTokenBootstrapRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Token": + if r.TryDecodeAsNil() { + if true && x.Token != nil { + x.Token = nil + } + } else { + if x.Token == nil { + x.Token = new(ACLToken) + } + + x.Token.CodecDecodeSelf(d) + } + case "ResetIndex": + if r.TryDecodeAsNil() { + x.ResetIndex = 0 + } else { + x.ResetIndex = (uint64)(r.DecodeUint64()) + } + case "BootstrapSecret": + if r.TryDecodeAsNil() { + x.BootstrapSecret = "" + } else { + x.BootstrapSecret = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLTokenBootstrapRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Token != nil { + x.Token = nil + } + } else { + if x.Token == nil { + x.Token = new(ACLToken) + } + + x.Token.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ResetIndex = 0 + } else { + x.ResetIndex = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.BootstrapSecret = "" + } else { + x.BootstrapSecret = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLTokenUpsertRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Tokens == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLToken(([]*ACLToken)(x.Tokens), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Tokens\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Tokens`) + } + r.WriteMapElemValue() + if x.Tokens == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLToken(([]*ACLToken)(x.Tokens), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLTokenUpsertRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLTokenUpsertRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Tokens": + if r.TryDecodeAsNil() { + x.Tokens = nil + } else { + if false { + } else { + h.decSlicePtrtoACLToken((*[]*ACLToken)(&x.Tokens), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLTokenUpsertRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Tokens = nil + } else { + if false { + } else { + h.decSlicePtrtoACLToken((*[]*ACLToken)(&x.Tokens), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *ACLTokenUpsertResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Tokens == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLToken(([]*ACLToken)(x.Tokens), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Tokens\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Tokens`) + } + r.WriteMapElemValue() + if x.Tokens == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoACLToken(([]*ACLToken)(x.Tokens), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ACLTokenUpsertResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ACLTokenUpsertResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Tokens": + if r.TryDecodeAsNil() { + x.Tokens = nil + } else { + if false { + } else { + h.decSlicePtrtoACLToken((*[]*ACLToken)(&x.Tokens), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ACLTokenUpsertResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Tokens = nil + } else { + if false { + } else { + h.decSlicePtrtoACLToken((*[]*ACLToken)(&x.Tokens), d) + } + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *OneTimeToken) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.OneTimeSecretID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.OneTimeSecretID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"OneTimeSecretID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `OneTimeSecretID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.OneTimeSecretID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.OneTimeSecretID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AccessorID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AccessorID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.ExpiresAt) + } else if yyxt10 := z.Extension(z.I2Rtid(x.ExpiresAt)); yyxt10 != nil { + z.EncExtension(x.ExpiresAt, yyxt10) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.ExpiresAt) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.ExpiresAt) + } else { + z.EncFallback(x.ExpiresAt) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ExpiresAt\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ExpiresAt`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.ExpiresAt) + } else if yyxt11 := z.Extension(z.I2Rtid(x.ExpiresAt)); yyxt11 != nil { + z.EncExtension(x.ExpiresAt, yyxt11) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.ExpiresAt) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.ExpiresAt) + } else { + z.EncFallback(x.ExpiresAt) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *OneTimeToken) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *OneTimeToken) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "OneTimeSecretID": + if r.TryDecodeAsNil() { + x.OneTimeSecretID = "" + } else { + x.OneTimeSecretID = (string)(r.DecodeString()) + } + case "AccessorID": + if r.TryDecodeAsNil() { + x.AccessorID = "" + } else { + x.AccessorID = (string)(r.DecodeString()) + } + case "ExpiresAt": + if r.TryDecodeAsNil() { + x.ExpiresAt = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.ExpiresAt = r.DecodeTime() + } else if yyxt7 := z.Extension(z.I2Rtid(x.ExpiresAt)); yyxt7 != nil { + z.DecExtension(x.ExpiresAt, yyxt7) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.ExpiresAt) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.ExpiresAt) + } else { + z.DecFallback(&x.ExpiresAt, false) + } + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *OneTimeToken) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.OneTimeSecretID = "" + } else { + x.OneTimeSecretID = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AccessorID = "" + } else { + x.AccessorID = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ExpiresAt = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.ExpiresAt = r.DecodeTime() + } else if yyxt14 := z.Extension(z.I2Rtid(x.ExpiresAt)); yyxt14 != nil { + z.DecExtension(x.ExpiresAt, yyxt14) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.ExpiresAt) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.ExpiresAt) + } else { + z.DecFallback(&x.ExpiresAt, false) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *OneTimeTokenUpsertRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *OneTimeTokenUpsertRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *OneTimeTokenUpsertRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *OneTimeTokenUpsertRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *OneTimeTokenUpsertResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + var yyn3 bool + if x.OneTimeToken == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.OneTimeToken == nil { + r.EncodeNil() + } else { + x.OneTimeToken.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"OneTimeToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `OneTimeToken`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.OneTimeToken == nil { + r.EncodeNil() + } else { + x.OneTimeToken.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *OneTimeTokenUpsertResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *OneTimeTokenUpsertResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "OneTimeToken": + if r.TryDecodeAsNil() { + if true && x.OneTimeToken != nil { + x.OneTimeToken = nil + } + } else { + if x.OneTimeToken == nil { + x.OneTimeToken = new(OneTimeToken) + } + + x.OneTimeToken.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *OneTimeTokenUpsertResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.OneTimeToken != nil { + x.OneTimeToken = nil + } + } else { + if x.OneTimeToken == nil { + x.OneTimeToken = new(OneTimeToken) + } + + x.OneTimeToken.CodecDecodeSelf(d) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *OneTimeTokenExchangeRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.OneTimeSecretID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.OneTimeSecretID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"OneTimeSecretID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `OneTimeSecretID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.OneTimeSecretID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.OneTimeSecretID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *OneTimeTokenExchangeRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *OneTimeTokenExchangeRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "OneTimeSecretID": + if r.TryDecodeAsNil() { + x.OneTimeSecretID = "" + } else { + x.OneTimeSecretID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *OneTimeTokenExchangeRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.OneTimeSecretID = "" + } else { + x.OneTimeSecretID = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *OneTimeTokenExchangeResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + var yyn3 bool + if x.Token == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Token == nil { + r.EncodeNil() + } else { + x.Token.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Token\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Token`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Token == nil { + r.EncodeNil() + } else { + x.Token.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *OneTimeTokenExchangeResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *OneTimeTokenExchangeResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Token": + if r.TryDecodeAsNil() { + if true && x.Token != nil { + x.Token = nil + } + } else { + if x.Token == nil { + x.Token = new(ACLToken) + } + + x.Token.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *OneTimeTokenExchangeResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Token != nil { + x.Token = nil + } + } else { + if x.Token == nil { + x.Token = new(ACLToken) + } + + x.Token.CodecDecodeSelf(d) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *OneTimeTokenDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.AccessorIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.AccessorIDs), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AccessorIDs\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AccessorIDs`) + } + r.WriteMapElemValue() + if x.AccessorIDs == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.AccessorIDs), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *OneTimeTokenDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *OneTimeTokenDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AccessorIDs": + if r.TryDecodeAsNil() { + x.AccessorIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.AccessorIDs), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *OneTimeTokenDeleteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AccessorIDs = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.AccessorIDs), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *OneTimeTokenExpireRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.Timestamp) + } else if yyxt4 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt4 != nil { + z.EncExtension(x.Timestamp, yyxt4) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Timestamp) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.Timestamp) + } else { + z.EncFallback(x.Timestamp) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timestamp\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Timestamp`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.Timestamp) + } else if yyxt5 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt5 != nil { + z.EncExtension(x.Timestamp, yyxt5) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Timestamp) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.Timestamp) + } else { + z.EncFallback(x.Timestamp) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *OneTimeTokenExpireRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *OneTimeTokenExpireRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Timestamp": + if r.TryDecodeAsNil() { + x.Timestamp = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.Timestamp = r.DecodeTime() + } else if yyxt5 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt5 != nil { + z.DecExtension(x.Timestamp, yyxt5) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Timestamp) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.Timestamp) + } else { + z.DecFallback(&x.Timestamp, false) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *OneTimeTokenExpireRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Timestamp = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.Timestamp = r.DecodeTime() + } else if yyxt13 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt13 != nil { + z.DecExtension(x.Timestamp, yyxt13) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Timestamp) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.Timestamp) + } else { + z.DecFallback(&x.Timestamp, false) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *RpcError) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Message)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Message\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Message`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Message)) + } + } + } + var yyn6 bool + if x.Code == nil { + yyn6 = true + goto LABEL6 + } + LABEL6: + if yyr2 || yy2arr2 { + if yyn6 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Code == nil { + r.EncodeNil() + } else { + yy7 := *x.Code + if false { + } else { + r.EncodeInt(int64(yy7)) + } + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Code\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Code`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.Code == nil { + r.EncodeNil() + } else { + yy9 := *x.Code + if false { + } else { + r.EncodeInt(int64(yy9)) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *RpcError) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *RpcError) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Message": + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = (string)(r.DecodeString()) + } + case "Code": + if r.TryDecodeAsNil() { + if true && x.Code != nil { + x.Code = nil + } + } else { + if x.Code == nil { + x.Code = new(int64) + } + + if false { + } else { + *x.Code = (int64)(r.DecodeInt64()) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *RpcError) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Code != nil { + x.Code = nil + } + } else { + if x.Code == nil { + x.Code = new(int64) + } + + if false { + } else { + *x.Code = (int64)(r.DecodeInt64()) + } + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x TaskScheduleState) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) + } + } +} + +func (x *TaskScheduleState) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (TaskScheduleState)(r.DecodeString()) + } +} + +func (x *TaskSchedule) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + var yyn3 bool + if x.Cron == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Cron == nil { + r.EncodeNil() + } else { + x.Cron.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Cron\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Cron`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Cron == nil { + r.EncodeNil() + } else { + x.Cron.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *TaskSchedule) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *TaskSchedule) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Cron": + if r.TryDecodeAsNil() { + if true && x.Cron != nil { + x.Cron = nil + } + } else { + if x.Cron == nil { + x.Cron = new(TaskScheduleCron) + } + + x.Cron.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *TaskSchedule) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Cron != nil { + x.Cron = nil + } + } else { + if x.Cron == nil { + x.Cron = new(TaskScheduleCron) + } + + x.Cron.CodecDecodeSelf(d) + } + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = r.CheckBreak() + } + if yyb5 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } + r.ReadArrayEnd() +} + +func (x *TaskScheduleCron) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Start))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Start)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Start\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Start`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Start))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Start)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.End))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.End)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"End\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `End`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.End))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.End)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Timezone))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Timezone)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timezone\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Timezone`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Timezone))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Timezone)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *TaskScheduleCron) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *TaskScheduleCron) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Start": + if r.TryDecodeAsNil() { + x.Start = "" + } else { + x.Start = (string)(r.DecodeString()) + } + case "End": + if r.TryDecodeAsNil() { + x.End = "" + } else { + x.End = (string)(r.DecodeString()) + } + case "Timezone": + if r.TryDecodeAsNil() { + x.Timezone = "" + } else { + x.Timezone = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *TaskScheduleCron) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Start = "" + } else { + x.Start = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.End = "" + } else { + x.End = (string)(r.DecodeString()) + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Timezone = "" + } else { + x.Timezone = (string)(r.DecodeString()) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *VariableMetadata) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Path)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Path\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Path`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Path)) + } + } + } + var yyn9 bool + if x.Lock == nil { + yyn9 = true + goto LABEL9 + } + LABEL9: + if yyr2 || yy2arr2 { + if yyn9 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Lock == nil { + r.EncodeNil() + } else { + x.Lock.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Lock\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Lock`) + } + r.WriteMapElemValue() + if yyn9 { + r.EncodeNil() + } else { + if x.Lock == nil { + r.EncodeNil() + } else { + x.Lock.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *VariableMetadata) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *VariableMetadata) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "Path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = (string)(r.DecodeString()) + } + case "Lock": + if r.TryDecodeAsNil() { + if true && x.Lock != nil { + x.Lock = nil + } + } else { + if x.Lock == nil { + x.Lock = new(VariableLock) + } + + x.Lock.CodecDecodeSelf(d) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "CreateTime": + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyTime": + if r.TryDecodeAsNil() { + x.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *VariableMetadata) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Lock != nil { + x.Lock = nil + } + } else { + if x.Lock == nil { + x.Lock = new(VariableLock) + } + + x.Lock.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *VariableEncrypted) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Path)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Path\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Path`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Path)) + } + } + } + var yyn9 bool + if x.VariableMetadata.Lock == nil { + yyn9 = true + goto LABEL9 + } + LABEL9: + if yyr2 || yy2arr2 { + if yyn9 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Lock == nil { + r.EncodeNil() + } else { + x.Lock.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Lock\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Lock`) + } + r.WriteMapElemValue() + if yyn9 { + r.EncodeNil() + } else { + if x.Lock == nil { + r.EncodeNil() + } else { + x.Lock.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Data == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Data)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Data\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Data`) + } + r.WriteMapElemValue() + if x.Data == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Data)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KeyID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KeyID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KeyID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KeyID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KeyID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KeyID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *VariableEncrypted) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *VariableEncrypted) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Namespace": + if r.TryDecodeAsNil() { + x.VariableMetadata.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "Path": + if r.TryDecodeAsNil() { + x.VariableMetadata.Path = "" + } else { + x.Path = (string)(r.DecodeString()) + } + case "Lock": + if r.TryDecodeAsNil() { + if true && x.VariableMetadata.Lock != nil { + x.VariableMetadata.Lock = nil + } + } else { + if x.VariableMetadata.Lock == nil { + x.VariableMetadata.Lock = new(VariableLock) + } + + x.Lock.CodecDecodeSelf(d) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.VariableMetadata.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "CreateTime": + if r.TryDecodeAsNil() { + x.VariableMetadata.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.VariableMetadata.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyTime": + if r.TryDecodeAsNil() { + x.VariableMetadata.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + case "Data": + if r.TryDecodeAsNil() { + x.VariableData.Data = nil + } else { + if false { + } else { + x.Data = r.DecodeBytes(([]byte)(x.Data), false) + } + } + case "KeyID": + if r.TryDecodeAsNil() { + x.VariableData.KeyID = "" + } else { + x.KeyID = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *VariableEncrypted) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj14 int + var yyb14 bool + var yyhl14 bool = l >= 0 + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VariableMetadata.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VariableMetadata.Path = "" + } else { + x.Path = (string)(r.DecodeString()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.VariableMetadata.Lock != nil { + x.VariableMetadata.Lock = nil + } + } else { + if x.VariableMetadata.Lock == nil { + x.VariableMetadata.Lock = new(VariableLock) + } + + x.Lock.CodecDecodeSelf(d) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VariableMetadata.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VariableMetadata.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VariableMetadata.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VariableMetadata.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VariableData.Data = nil + } else { + if false { + } else { + x.Data = r.DecodeBytes(([]byte)(x.Data), false) + } + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VariableData.KeyID = "" + } else { + x.KeyID = (string)(r.DecodeString()) + } + for { + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj14-1, "") + } + r.ReadArrayEnd() +} + +func (x *VariableData) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Data == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Data)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Data\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Data`) + } + r.WriteMapElemValue() + if x.Data == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Data)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KeyID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KeyID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KeyID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KeyID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.KeyID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KeyID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *VariableData) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *VariableData) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Data": + if r.TryDecodeAsNil() { + x.Data = nil + } else { + if false { + } else { + x.Data = r.DecodeBytes(([]byte)(x.Data), false) + } + } + case "KeyID": + if r.TryDecodeAsNil() { + x.KeyID = "" + } else { + x.KeyID = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *VariableData) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Data = nil + } else { + if false { + } else { + x.Data = r.DecodeBytes(([]byte)(x.Data), false) + } + } + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.KeyID = "" + } else { + x.KeyID = (string)(r.DecodeString()) + } + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = r.CheckBreak() + } + if yyb7 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } + r.ReadArrayEnd() +} + +func (x *VariableDecrypted) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(8) + } else { + r.WriteMapStart(8) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Path)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Path\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Path`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Path)) + } + } + } + var yyn9 bool + if x.VariableMetadata.Lock == nil { + yyn9 = true + goto LABEL9 + } + LABEL9: + if yyr2 || yy2arr2 { + if yyn9 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Lock == nil { + r.EncodeNil() + } else { + x.Lock.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Lock\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Lock`) + } + r.WriteMapElemValue() + if yyn9 { + r.EncodeNil() + } else { + if x.Lock == nil { + r.EncodeNil() + } else { + x.Lock.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CreateTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyTime`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.ModifyTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Items == nil { + r.EncodeNil() + } else { + x.Items.CodecEncodeSelf(e) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Items\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Items`) + } + r.WriteMapElemValue() + if x.Items == nil { + r.EncodeNil() + } else { + x.Items.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *VariableDecrypted) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *VariableDecrypted) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Namespace": + if r.TryDecodeAsNil() { + x.VariableMetadata.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "Path": + if r.TryDecodeAsNil() { + x.VariableMetadata.Path = "" + } else { + x.Path = (string)(r.DecodeString()) + } + case "Lock": + if r.TryDecodeAsNil() { + if true && x.VariableMetadata.Lock != nil { + x.VariableMetadata.Lock = nil + } + } else { + if x.VariableMetadata.Lock == nil { + x.VariableMetadata.Lock = new(VariableLock) + } + + x.Lock.CodecDecodeSelf(d) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.VariableMetadata.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "CreateTime": + if r.TryDecodeAsNil() { + x.VariableMetadata.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.VariableMetadata.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyTime": + if r.TryDecodeAsNil() { + x.VariableMetadata.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + case "Items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + x.Items.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *VariableDecrypted) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VariableMetadata.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VariableMetadata.Path = "" + } else { + x.Path = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.VariableMetadata.Lock != nil { + x.VariableMetadata.Lock = nil + } + } else { + if x.VariableMetadata.Lock == nil { + x.VariableMetadata.Lock = new(VariableLock) + } + + x.Lock.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VariableMetadata.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VariableMetadata.CreateTime = 0 + } else { + x.CreateTime = (int64)(r.DecodeInt64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VariableMetadata.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VariableMetadata.ModifyTime = 0 + } else { + x.ModifyTime = (int64)(r.DecodeInt64()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Items = nil + } else { + x.Items.CodecDecodeSelf(d) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x VariableItems) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encVariableItems((VariableItems)(x), e) + } + } +} + +func (x *VariableItems) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + h.decVariableItems((*VariableItems)(x), d) + } +} + +func (x *VariableLock) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + r.WriteMapStart(3) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.TTL)); yyxt7 != nil { + z.EncExtension(x.TTL, yyxt7) + } else { + r.EncodeInt(int64(x.TTL)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TTL\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TTL`) + } + r.WriteMapElemValue() + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.TTL)); yyxt8 != nil { + z.EncExtension(x.TTL, yyxt8) + } else { + r.EncodeInt(int64(x.TTL)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LockDelay)); yyxt10 != nil { + z.EncExtension(x.LockDelay, yyxt10) + } else { + r.EncodeInt(int64(x.LockDelay)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LockDelay\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LockDelay`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LockDelay)); yyxt11 != nil { + z.EncExtension(x.LockDelay, yyxt11) + } else { + r.EncodeInt(int64(x.LockDelay)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *VariableLock) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(x) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *VariableLock) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + case "TTL": + if r.TryDecodeAsNil() { + x.TTL = 0 + } else { + if false { + } else if yyxt6 := z.Extension(z.I2Rtid(x.TTL)); yyxt6 != nil { + z.DecExtension(x.TTL, yyxt6) + } else { + x.TTL = (time.Duration)(r.DecodeInt64()) + } + } + case "LockDelay": + if r.TryDecodeAsNil() { + x.LockDelay = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LockDelay)); yyxt8 != nil { + z.DecExtension(x.LockDelay, yyxt8) + } else { + x.LockDelay = (time.Duration)(r.DecodeInt64()) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *VariableLock) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TTL = 0 + } else { + if false { + } else if yyxt12 := z.Extension(z.I2Rtid(x.TTL)); yyxt12 != nil { + z.DecExtension(x.TTL, yyxt12) + } else { + x.TTL = (time.Duration)(r.DecodeInt64()) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LockDelay = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LockDelay)); yyxt14 != nil { + z.DecExtension(x.LockDelay, yyxt14) + } else { + x.LockDelay = (time.Duration)(r.DecodeInt64()) + } + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *VariablesQuota) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Size)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Size\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Size`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Size)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreateIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.CreateIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ModifyIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.ModifyIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *VariablesQuota) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *VariablesQuota) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "Size": + if r.TryDecodeAsNil() { + x.Size = 0 + } else { + x.Size = (int64)(r.DecodeInt64()) + } + case "CreateIndex": + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + case "ModifyIndex": + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *VariablesQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Size = 0 + } else { + x.Size = (int64)(r.DecodeInt64()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreateIndex = 0 + } else { + x.CreateIndex = (uint64)(r.DecodeUint64()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ModifyIndex = 0 + } else { + x.ModifyIndex = (uint64)(r.DecodeUint64()) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x VarOp) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) + } + } +} + +func (x *VarOp) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (VarOp)(r.DecodeString()) + } +} + +func (x VarOpResult) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) + } + } +} + +func (x *VarOpResult) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (VarOpResult)(r.DecodeString()) + } +} + +func (x *VariablesApplyRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Op.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Op\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Op`) + } + r.WriteMapElemValue() + x.Op.CodecEncodeSelf(e) + } + var yyn6 bool + if x.Var == nil { + yyn6 = true + goto LABEL6 + } + LABEL6: + if yyr2 || yy2arr2 { + if yyn6 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Var == nil { + r.EncodeNil() + } else { + x.Var.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Var\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Var`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.Var == nil { + r.EncodeNil() + } else { + x.Var.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *VariablesApplyRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *VariablesApplyRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Op": + if r.TryDecodeAsNil() { + x.Op = "" + } else { + x.Op.CodecDecodeSelf(d) + } + case "Var": + if r.TryDecodeAsNil() { + if true && x.Var != nil { + x.Var = nil + } + } else { + if x.Var == nil { + x.Var = new(VariableDecrypted) + } + + x.Var.CodecDecodeSelf(d) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *VariablesApplyRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Op = "" + } else { + x.Op.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Var != nil { + x.Var = nil + } + } else { + if x.Var == nil { + x.Var = new(VariableDecrypted) + } + + x.Var.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *VariablesApplyResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Op.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Op\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Op`) + } + r.WriteMapElemValue() + x.Op.CodecEncodeSelf(e) + } + var yyn6 bool + if x.Input == nil { + yyn6 = true + goto LABEL6 + } + LABEL6: + if yyr2 || yy2arr2 { + if yyn6 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Input == nil { + r.EncodeNil() + } else { + x.Input.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Input\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Input`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.Input == nil { + r.EncodeNil() + } else { + x.Input.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Result.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Result\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Result`) + } + r.WriteMapElemValue() + x.Result.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Error == nil { + r.EncodeNil() + } else { + if false { + } else { + z.EncFallback(x.Error) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Error\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Error`) + } + r.WriteMapElemValue() + if x.Error == nil { + r.EncodeNil() + } else { + if false { + } else { + z.EncFallback(x.Error) + } + } + } + var yyn15 bool + if x.Conflict == nil { + yyn15 = true + goto LABEL15 + } + LABEL15: + if yyr2 || yy2arr2 { + if yyn15 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Conflict == nil { + r.EncodeNil() + } else { + x.Conflict.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Conflict\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Conflict`) + } + r.WriteMapElemValue() + if yyn15 { + r.EncodeNil() + } else { + if x.Conflict == nil { + r.EncodeNil() + } else { + x.Conflict.CodecEncodeSelf(e) + } + } + } + var yyn18 bool + if x.Output == nil { + yyn18 = true + goto LABEL18 + } + LABEL18: + if yyr2 || yy2arr2 { + if yyn18 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Output == nil { + r.EncodeNil() + } else { + x.Output.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Output\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Output`) + } + r.WriteMapElemValue() + if yyn18 { + r.EncodeNil() + } else { + if x.Output == nil { + r.EncodeNil() + } else { + x.Output.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *VariablesApplyResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *VariablesApplyResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Op": + if r.TryDecodeAsNil() { + x.Op = "" + } else { + x.Op.CodecDecodeSelf(d) + } + case "Input": + if r.TryDecodeAsNil() { + if true && x.Input != nil { + x.Input = nil + } + } else { + if x.Input == nil { + x.Input = new(VariableDecrypted) + } + + x.Input.CodecDecodeSelf(d) + } + case "Result": + if r.TryDecodeAsNil() { + x.Result = "" + } else { + x.Result.CodecDecodeSelf(d) + } + case "Error": + if r.TryDecodeAsNil() { + x.Error = nil + } else { + if false { + } else { + z.DecFallback(&x.Error, true) + } + } + case "Conflict": + if r.TryDecodeAsNil() { + if true && x.Conflict != nil { + x.Conflict = nil + } + } else { + if x.Conflict == nil { + x.Conflict = new(VariableDecrypted) + } + + x.Conflict.CodecDecodeSelf(d) + } + case "Output": + if r.TryDecodeAsNil() { + if true && x.Output != nil { + x.Output = nil + } + } else { + if x.Output == nil { + x.Output = new(VariableDecrypted) + } + + x.Output.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *VariablesApplyResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Op = "" + } else { + x.Op.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Input != nil { + x.Input = nil + } + } else { + if x.Input == nil { + x.Input = new(VariableDecrypted) + } + + x.Input.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Result = "" + } else { + x.Result.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Error = nil + } else { + if false { + } else { + z.DecFallback(&x.Error, true) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Conflict != nil { + x.Conflict = nil + } + } else { + if x.Conflict == nil { + x.Conflict = new(VariableDecrypted) + } + + x.Conflict.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Output != nil { + x.Output = nil + } + } else { + if x.Output == nil { + x.Output = new(VariableDecrypted) + } + + x.Output.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *VarApplyStateRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Op.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Op\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Op`) + } + r.WriteMapElemValue() + x.Op.CodecEncodeSelf(e) + } + var yyn6 bool + if x.Var == nil { + yyn6 = true + goto LABEL6 + } + LABEL6: + if yyr2 || yy2arr2 { + if yyn6 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Var == nil { + r.EncodeNil() + } else { + x.Var.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Var\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Var`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.Var == nil { + r.EncodeNil() + } else { + x.Var.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *VarApplyStateRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *VarApplyStateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Op": + if r.TryDecodeAsNil() { + x.Op = "" + } else { + x.Op.CodecDecodeSelf(d) + } + case "Var": + if r.TryDecodeAsNil() { + if true && x.Var != nil { + x.Var = nil + } + } else { + if x.Var == nil { + x.Var = new(VariableEncrypted) + } + + x.Var.CodecDecodeSelf(d) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *VarApplyStateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Op = "" + } else { + x.Op.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Var != nil { + x.Var = nil + } + } else { + if x.Var == nil { + x.Var = new(VariableEncrypted) + } + + x.Var.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *VarApplyStateResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Op.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Op\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Op`) + } + r.WriteMapElemValue() + x.Op.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.Result.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Result\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Result`) + } + r.WriteMapElemValue() + x.Result.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Error == nil { + r.EncodeNil() + } else { + if false { + } else { + z.EncFallback(x.Error) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Error\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Error`) + } + r.WriteMapElemValue() + if x.Error == nil { + r.EncodeNil() + } else { + if false { + } else { + z.EncFallback(x.Error) + } + } + } + var yyn12 bool + if x.Conflict == nil { + yyn12 = true + goto LABEL12 + } + LABEL12: + if yyr2 || yy2arr2 { + if yyn12 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Conflict == nil { + r.EncodeNil() + } else { + x.Conflict.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Conflict\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Conflict`) + } + r.WriteMapElemValue() + if yyn12 { + r.EncodeNil() + } else { + if x.Conflict == nil { + r.EncodeNil() + } else { + x.Conflict.CodecEncodeSelf(e) + } + } + } + var yyn15 bool + if x.WrittenSVMeta == nil { + yyn15 = true + goto LABEL15 + } + LABEL15: + if yyr2 || yy2arr2 { + if yyn15 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.WrittenSVMeta == nil { + r.EncodeNil() + } else { + x.WrittenSVMeta.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"WrittenSVMeta\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `WrittenSVMeta`) + } + r.WriteMapElemValue() + if yyn15 { + r.EncodeNil() + } else { + if x.WrittenSVMeta == nil { + r.EncodeNil() + } else { + x.WrittenSVMeta.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *VarApplyStateResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *VarApplyStateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Op": + if r.TryDecodeAsNil() { + x.Op = "" + } else { + x.Op.CodecDecodeSelf(d) + } + case "Result": + if r.TryDecodeAsNil() { + x.Result = "" + } else { + x.Result.CodecDecodeSelf(d) + } + case "Error": + if r.TryDecodeAsNil() { + x.Error = nil + } else { + if false { + } else { + z.DecFallback(&x.Error, true) + } + } + case "Conflict": + if r.TryDecodeAsNil() { + if true && x.Conflict != nil { + x.Conflict = nil + } + } else { + if x.Conflict == nil { + x.Conflict = new(VariableEncrypted) + } + + x.Conflict.CodecDecodeSelf(d) + } + case "WrittenSVMeta": + if r.TryDecodeAsNil() { + if true && x.WrittenSVMeta != nil { + x.WrittenSVMeta = nil + } + } else { + if x.WrittenSVMeta == nil { + x.WrittenSVMeta = new(VariableMetadata) + } + + x.WrittenSVMeta.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *VarApplyStateResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Op = "" + } else { + x.Op.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Result = "" + } else { + x.Result.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Error = nil + } else { + if false { + } else { + z.DecFallback(&x.Error, true) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Conflict != nil { + x.Conflict = nil + } + } else { + if x.Conflict == nil { + x.Conflict = new(VariableEncrypted) + } + + x.Conflict.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.WrittenSVMeta != nil { + x.WrittenSVMeta = nil + } + } else { + if x.WrittenSVMeta == nil { + x.WrittenSVMeta = new(VariableMetadata) + } + + x.WrittenSVMeta.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *VariablesListRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(12) + } else { + r.WriteMapStart(12) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { + z.EncExtension(x.MaxQueryTime, yyxt13) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { + z.EncExtension(x.MaxQueryTime, yyxt14) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *VariablesListRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *VariablesListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { + z.DecExtension(x.MaxQueryTime, yyxt8) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *VariablesListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { + z.DecExtension(x.MaxQueryTime, yyxt22) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } + r.ReadArrayEnd() +} + +func (x *VariablesListResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Data == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoVariableMetadata(([]*VariableMetadata)(x.Data), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Data\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Data`) + } + r.WriteMapElemValue() + if x.Data == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoVariableMetadata(([]*VariableMetadata)(x.Data), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *VariablesListResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *VariablesListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Data": + if r.TryDecodeAsNil() { + x.Data = nil + } else { + if false { + } else { + h.decSlicePtrtoVariableMetadata((*[]*VariableMetadata)(&x.Data), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { + z.DecExtension(x.LastContact, yyxt8) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *VariablesListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Data = nil + } else { + if false { + } else { + h.decSlicePtrtoVariableMetadata((*[]*VariableMetadata)(&x.Data), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { + z.DecExtension(x.LastContact, yyxt16) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *VariablesReadRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Path)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Path\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Path`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Path)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *VariablesReadRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *VariablesReadRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { + z.DecExtension(x.MaxQueryTime, yyxt9) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *VariablesReadRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj18 int + var yyb18 bool + var yyhl18 bool = l >= 0 + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt24 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt24 != nil { + z.DecExtension(x.MaxQueryTime, yyxt24) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj18++ + if yyhl18 { + yyb18 = yyj18 > l + } else { + yyb18 = r.CheckBreak() + } + if yyb18 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj18-1, "") + } + r.ReadArrayEnd() +} + +func (x *VariablesReadResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + var yyn3 bool + if x.Data == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.Data == nil { + r.EncodeNil() + } else { + x.Data.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Data\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Data`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Data == nil { + r.EncodeNil() + } else { + x.Data.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.EncExtension(x.LastContact, yyxt10) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { + z.EncExtension(x.LastContact, yyxt11) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *VariablesReadResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *VariablesReadResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Data": + if r.TryDecodeAsNil() { + if true && x.Data != nil { + x.Data = nil + } + } else { + if x.Data == nil { + x.Data = new(VariableDecrypted) + } + + x.Data.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { + z.DecExtension(x.LastContact, yyxt7) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *VariablesReadResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.Data != nil { + x.Data = nil + } + } else { + if x.Data == nil { + x.Data = new(VariableDecrypted) + } + + x.Data.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.DecExtension(x.LastContact, yyxt14) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *VariablesRenewLockRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Path)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Path\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Path`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Path)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LockID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LockID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LockID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LockID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.LockID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LockID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdempotencyToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdempotencyToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdempotencyToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdempotencyToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *VariablesRenewLockRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *VariablesRenewLockRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = (string)(r.DecodeString()) + } + case "LockID": + if r.TryDecodeAsNil() { + x.LockID = "" + } else { + x.LockID = (string)(r.DecodeString()) + } + case "Region": + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "IdempotencyToken": + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *VariablesRenewLockRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LockID = "" + } else { + x.LockID = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.IdempotencyToken = "" + } else { + x.IdempotencyToken = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteRequest.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *VariablesRenewLockResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + var yyn3 bool + if x.VarMeta == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { + if yyn3 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.VarMeta == nil { + r.EncodeNil() + } else { + x.VarMeta.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VarMeta\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `VarMeta`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.VarMeta == nil { + r.EncodeNil() + } else { + x.VarMeta.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *VariablesRenewLockResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *VariablesRenewLockResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "VarMeta": + if r.TryDecodeAsNil() { + if true && x.VarMeta != nil { + x.VarMeta = nil + } + } else { + if x.VarMeta == nil { + x.VarMeta = new(VariableMetadata) + } + + x.VarMeta.CodecDecodeSelf(d) + } + case "Index": + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *VariablesRenewLockResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.VarMeta != nil { + x.VarMeta = nil + } + } else { + if x.VarMeta == nil { + x.VarMeta = new(VariableMetadata) + } + + x.VarMeta.CodecDecodeSelf(d) + } + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WriteMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = r.CheckBreak() + } + if yyb6 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } + r.ReadArrayEnd() +} + +func (x *VaultTokenData) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.CreationTTL)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"CreationTTL\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `CreationTTL`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.CreationTTL)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.TTL)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TTL\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TTL`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.TTL)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Renewable)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Renewable\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Renewable`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Renewable)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Policies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Policies), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Policies\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Policies`) + } + r.WriteMapElemValue() + if x.Policies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Policies), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Role))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Role)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Role\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Role`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Role))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Role)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NamespacePath))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NamespacePath)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NamespacePath\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NamespacePath`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NamespacePath))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NamespacePath)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *VaultTokenData) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *VaultTokenData) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "CreationTTL": + if r.TryDecodeAsNil() { + x.CreationTTL = 0 + } else { + x.CreationTTL = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "TTL": + if r.TryDecodeAsNil() { + x.TTL = 0 + } else { + x.TTL = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Renewable": + if r.TryDecodeAsNil() { + x.Renewable = false + } else { + x.Renewable = (bool)(r.DecodeBool()) + } + case "Policies": + if r.TryDecodeAsNil() { + x.Policies = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Policies), d) + } + } + case "Role": + if r.TryDecodeAsNil() { + x.Role = "" + } else { + x.Role = (string)(r.DecodeString()) + } + case "NamespacePath": + if r.TryDecodeAsNil() { + x.NamespacePath = "" + } else { + x.NamespacePath = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *VaultTokenData) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.CreationTTL = 0 + } else { + x.CreationTTL = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TTL = 0 + } else { + x.TTL = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Renewable = false + } else { + x.Renewable = (bool)(r.DecodeBool()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Policies = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Policies), d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Role = "" + } else { + x.Role = (string)(r.DecodeString()) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NamespacePath = "" + } else { + x.NamespacePath = (string)(r.DecodeString()) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = r.CheckBreak() + } + if yyb11 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } + r.ReadArrayEnd() +} + +func (x *VaultTokenRoleData) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(10) + } else { + r.WriteMapStart(10) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.ExplicitMaxTtl)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ExplicitMaxTtl\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ExplicitMaxTtl`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.ExplicitMaxTtl)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.TokenExplicitMaxTtl)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TokenExplicitMaxTtl\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TokenExplicitMaxTtl`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.TokenExplicitMaxTtl)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Orphan)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Orphan\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Orphan`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Orphan)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.Period)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Period\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Period`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.Period)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.TokenPeriod)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TokenPeriod\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TokenPeriod`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.TokenPeriod)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Renewable)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Renewable\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Renewable`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Renewable)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.DisallowedPolicies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.DisallowedPolicies), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DisallowedPolicies\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `DisallowedPolicies`) + } + r.WriteMapElemValue() + if x.DisallowedPolicies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.DisallowedPolicies), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.AllowedEntityAliases == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.AllowedEntityAliases), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowedEntityAliases\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowedEntityAliases`) + } + r.WriteMapElemValue() + if x.AllowedEntityAliases == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.AllowedEntityAliases), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.AllowedPolicies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.AllowedPolicies), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowedPolicies\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowedPolicies`) + } + r.WriteMapElemValue() + if x.AllowedPolicies == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.AllowedPolicies), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *VaultTokenRoleData) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *VaultTokenRoleData) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "ExplicitMaxTtl": + if r.TryDecodeAsNil() { + x.ExplicitMaxTtl = 0 + } else { + x.ExplicitMaxTtl = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "TokenExplicitMaxTtl": + if r.TryDecodeAsNil() { + x.TokenExplicitMaxTtl = 0 + } else { + x.TokenExplicitMaxTtl = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Orphan": + if r.TryDecodeAsNil() { + x.Orphan = false + } else { + x.Orphan = (bool)(r.DecodeBool()) + } + case "Period": + if r.TryDecodeAsNil() { + x.Period = 0 + } else { + x.Period = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "TokenPeriod": + if r.TryDecodeAsNil() { + x.TokenPeriod = 0 + } else { + x.TokenPeriod = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + case "Renewable": + if r.TryDecodeAsNil() { + x.Renewable = false + } else { + x.Renewable = (bool)(r.DecodeBool()) + } + case "DisallowedPolicies": + if r.TryDecodeAsNil() { + x.DisallowedPolicies = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.DisallowedPolicies), d) + } + } + case "AllowedEntityAliases": + if r.TryDecodeAsNil() { + x.AllowedEntityAliases = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.AllowedEntityAliases), d) + } + } + case "AllowedPolicies": + if r.TryDecodeAsNil() { + x.AllowedPolicies = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.AllowedPolicies), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *VaultTokenRoleData) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ExplicitMaxTtl = 0 + } else { + x.ExplicitMaxTtl = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TokenExplicitMaxTtl = 0 + } else { + x.TokenExplicitMaxTtl = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Orphan = false + } else { + x.Orphan = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Period = 0 + } else { + x.Period = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TokenPeriod = 0 + } else { + x.TokenPeriod = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Renewable = false + } else { + x.Renewable = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DisallowedPolicies = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.DisallowedPolicies), d) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllowedEntityAliases = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.AllowedEntityAliases), d) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllowedPolicies = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.AllowedPolicies), d) + } + } + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } + r.ReadArrayEnd() +} + +func (x *ClientHostVolumeConfig) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Path)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Path\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Path`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Path)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ReadOnly\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ReadOnly`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *ClientHostVolumeConfig) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *ClientHostVolumeConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = (string)(r.DecodeString()) + } + case "ReadOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = (bool)(r.DecodeBool()) + } + case "ID": + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *ClientHostVolumeConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = (bool)(r.DecodeBool()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" + } else { + x.ID = (string)(r.DecodeString()) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x *VolumeRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Source))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Source)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Source\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Source`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Source))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Source)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ReadOnly\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ReadOnly`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Sticky)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Sticky\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Sticky`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Sticky)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.AccessMode.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AccessMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AccessMode`) + } + r.WriteMapElemValue() + x.AccessMode.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.AttachmentMode.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AttachmentMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AttachmentMode`) + } + r.WriteMapElemValue() + x.AttachmentMode.CodecEncodeSelf(e) + } + var yyn24 bool + if x.MountOptions == nil { + yyn24 = true + goto LABEL24 + } + LABEL24: + if yyr2 || yy2arr2 { + if yyn24 { + r.WriteArrayElem() + r.EncodeNil() + } else { + r.WriteArrayElem() + if x.MountOptions == nil { + r.EncodeNil() + } else { + x.MountOptions.CodecEncodeSelf(e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MountOptions\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MountOptions`) + } + r.WriteMapElemValue() + if yyn24 { + r.EncodeNil() + } else { + if x.MountOptions == nil { + r.EncodeNil() + } else { + x.MountOptions.CodecEncodeSelf(e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.PerAlloc)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerAlloc\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerAlloc`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.PerAlloc)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *VolumeRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *VolumeRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + case "Source": + if r.TryDecodeAsNil() { + x.Source = "" + } else { + x.Source = (string)(r.DecodeString()) + } + case "ReadOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = (bool)(r.DecodeBool()) + } + case "Sticky": + if r.TryDecodeAsNil() { + x.Sticky = false + } else { + x.Sticky = (bool)(r.DecodeBool()) + } + case "AccessMode": + if r.TryDecodeAsNil() { + x.AccessMode = "" + } else { + x.AccessMode.CodecDecodeSelf(d) + } + case "AttachmentMode": + if r.TryDecodeAsNil() { + x.AttachmentMode = "" + } else { + x.AttachmentMode.CodecDecodeSelf(d) + } + case "MountOptions": + if r.TryDecodeAsNil() { + if true && x.MountOptions != nil { + x.MountOptions = nil + } + } else { + if x.MountOptions == nil { + x.MountOptions = new(CSIMountOptions) + } + + x.MountOptions.CodecDecodeSelf(d) + } + case "PerAlloc": + if r.TryDecodeAsNil() { + x.PerAlloc = false + } else { + x.PerAlloc = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *VolumeRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Source = "" + } else { + x.Source = (string)(r.DecodeString()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = (bool)(r.DecodeBool()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Sticky = false + } else { + x.Sticky = (bool)(r.DecodeBool()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AccessMode = "" + } else { + x.AccessMode.CodecDecodeSelf(d) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AttachmentMode = "" + } else { + x.AttachmentMode.CodecDecodeSelf(d) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.MountOptions != nil { + x.MountOptions = nil + } + } else { + if x.MountOptions == nil { + x.MountOptions = new(CSIMountOptions) + } + + x.MountOptions.CodecDecodeSelf(d) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PerAlloc = false + } else { + x.PerAlloc = (bool)(r.DecodeBool()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x VolumeAttachmentMode) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) + } + } +} + +func (x *VolumeAttachmentMode) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (VolumeAttachmentMode)(r.DecodeString()) + } +} + +func (x VolumeAccessMode) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) + } + } +} + +func (x *VolumeAccessMode) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (VolumeAccessMode)(r.DecodeString()) + } +} + +func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Volume))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Volume)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Volume\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Volume`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Volume))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Volume)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Destination))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Destination)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Destination\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Destination`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Destination))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Destination)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ReadOnly\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ReadOnly`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PropagationMode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PropagationMode)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PropagationMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PropagationMode`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.PropagationMode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PropagationMode)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SELinuxLabel))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SELinuxLabel)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SELinuxLabel\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SELinuxLabel`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.SELinuxLabel))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SELinuxLabel)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *VolumeMount) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *VolumeMount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Volume": + if r.TryDecodeAsNil() { + x.Volume = "" + } else { + x.Volume = (string)(r.DecodeString()) + } + case "Destination": + if r.TryDecodeAsNil() { + x.Destination = "" + } else { + x.Destination = (string)(r.DecodeString()) + } + case "ReadOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = (bool)(r.DecodeBool()) + } + case "PropagationMode": + if r.TryDecodeAsNil() { + x.PropagationMode = "" + } else { + x.PropagationMode = (string)(r.DecodeString()) + } + case "SELinuxLabel": + if r.TryDecodeAsNil() { + x.SELinuxLabel = "" + } else { + x.SELinuxLabel = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *VolumeMount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Volume = "" + } else { + x.Volume = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Destination = "" + } else { + x.Destination = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = (bool)(r.DecodeBool()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PropagationMode = "" + } else { + x.PropagationMode = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SELinuxLabel = "" + } else { + x.SELinuxLabel = (string)(r.DecodeString()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *IdentityClaimsBuilder) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(0) + } else { + r.WriteMapStart(0) + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *IdentityClaimsBuilder) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *IdentityClaimsBuilder) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *IdentityClaimsBuilder) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4 int + var yyb4 bool + var yyhl4 bool = l >= 0 + for { + yyj4++ + if yyhl4 { + yyb4 = yyj4 > l + } else { + yyb4 = r.CheckBreak() + } + if yyb4 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj4-1, "") + } + r.ReadArrayEnd() +} + +func (x *WorkloadIdentity) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) + } else { + r.WriteMapStart(9) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Audience == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Audience), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Audience\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Audience`) + } + r.WriteMapElemValue() + if x.Audience == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(x.Audience), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeMode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeMode)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ChangeMode\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ChangeMode`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeMode))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeMode)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeSignal))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeSignal)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ChangeSignal\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ChangeSignal`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeSignal))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeSignal)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Env)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Env\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Env`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Env)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.File)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"File\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `File`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.File)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filepath))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filepath)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filepath\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filepath`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filepath))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filepath)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ServiceName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServiceName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ServiceName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `ServiceName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.ServiceName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServiceName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt28 := z.Extension(z.I2Rtid(x.TTL)); yyxt28 != nil { + z.EncExtension(x.TTL, yyxt28) + } else { + r.EncodeInt(int64(x.TTL)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TTL\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `TTL`) + } + r.WriteMapElemValue() + if false { + } else if yyxt29 := z.Extension(z.I2Rtid(x.TTL)); yyxt29 != nil { + z.EncExtension(x.TTL, yyxt29) + } else { + r.EncodeInt(int64(x.TTL)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *WorkloadIdentity) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *WorkloadIdentity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + case "Audience": + if r.TryDecodeAsNil() { + x.Audience = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Audience), d) + } + } + case "ChangeMode": + if r.TryDecodeAsNil() { + x.ChangeMode = "" + } else { + x.ChangeMode = (string)(r.DecodeString()) + } + case "ChangeSignal": + if r.TryDecodeAsNil() { + x.ChangeSignal = "" + } else { + x.ChangeSignal = (string)(r.DecodeString()) + } + case "Env": + if r.TryDecodeAsNil() { + x.Env = false + } else { + x.Env = (bool)(r.DecodeBool()) + } + case "File": + if r.TryDecodeAsNil() { + x.File = false + } else { + x.File = (bool)(r.DecodeBool()) + } + case "Filepath": + if r.TryDecodeAsNil() { + x.Filepath = "" + } else { + x.Filepath = (string)(r.DecodeString()) + } + case "ServiceName": + if r.TryDecodeAsNil() { + x.ServiceName = "" + } else { + x.ServiceName = (string)(r.DecodeString()) + } + case "TTL": + if r.TryDecodeAsNil() { + x.TTL = 0 + } else { + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.TTL)); yyxt14 != nil { + z.DecExtension(x.TTL, yyxt14) + } else { + x.TTL = (time.Duration)(r.DecodeInt64()) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *WorkloadIdentity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj15 int + var yyb15 bool + var yyhl15 bool = l >= 0 + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Audience = nil + } else { + if false { + } else { + h.decSlicestring((*[]string)(&x.Audience), d) + } + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ChangeMode = "" + } else { + x.ChangeMode = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ChangeSignal = "" + } else { + x.ChangeSignal = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Env = false + } else { + x.Env = (bool)(r.DecodeBool()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.File = false + } else { + x.File = (bool)(r.DecodeBool()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Filepath = "" + } else { + x.Filepath = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ServiceName = "" + } else { + x.ServiceName = (string)(r.DecodeString()) + } + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TTL = 0 + } else { + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(x.TTL)); yyxt26 != nil { + z.DecExtension(x.TTL, yyxt26) + } else { + x.TTL = (time.Duration)(r.DecodeInt64()) + } + } + for { + yyj15++ + if yyhl15 { + yyb15 = yyj15 > l + } else { + yyb15 = r.CheckBreak() + } + if yyb15 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj15-1, "") + } + r.ReadArrayEnd() +} + +func (x *WorkloadIdentityRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(5) + } else { + r.WriteMapStart(5) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdentityName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdentityName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdentityName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdentityName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdentityName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdentityName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.WorkloadIdentifier))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.WorkloadIdentifier)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"WorkloadIdentifier\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `WorkloadIdentifier`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.WorkloadIdentifier))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.WorkloadIdentifier)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.WorkloadType.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"WorkloadType\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `WorkloadType`) + } + r.WriteMapElemValue() + x.WorkloadType.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.InterpolatedWorkloadIdentifier))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.InterpolatedWorkloadIdentifier)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"InterpolatedWorkloadIdentifier\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `InterpolatedWorkloadIdentifier`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.InterpolatedWorkloadIdentifier))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.InterpolatedWorkloadIdentifier)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *WorkloadIdentityRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *WorkloadIdentityRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AllocID": + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "IdentityName": + if r.TryDecodeAsNil() { + x.WIHandle.IdentityName = "" + } else { + x.IdentityName = (string)(r.DecodeString()) + } + case "WorkloadIdentifier": + if r.TryDecodeAsNil() { + x.WIHandle.WorkloadIdentifier = "" + } else { + x.WorkloadIdentifier = (string)(r.DecodeString()) + } + case "WorkloadType": + if r.TryDecodeAsNil() { + x.WIHandle.WorkloadType = 0 + } else { + x.WorkloadType.CodecDecodeSelf(d) + } + case "InterpolatedWorkloadIdentifier": + if r.TryDecodeAsNil() { + x.WIHandle.InterpolatedWorkloadIdentifier = "" + } else { + x.InterpolatedWorkloadIdentifier = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *WorkloadIdentityRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WIHandle.IdentityName = "" + } else { + x.IdentityName = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WIHandle.WorkloadIdentifier = "" + } else { + x.WorkloadIdentifier = (string)(r.DecodeString()) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WIHandle.WorkloadType = 0 + } else { + x.WorkloadType.CodecDecodeSelf(d) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WIHandle.InterpolatedWorkloadIdentifier = "" + } else { + x.InterpolatedWorkloadIdentifier = (string)(r.DecodeString()) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = r.CheckBreak() + } + if yyb9 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } + r.ReadArrayEnd() +} + +func (x *SignedWorkloadIdentity) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(7) + } else { + r.WriteMapStart(7) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdentityName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdentityName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdentityName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdentityName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdentityName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdentityName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.WorkloadIdentifier))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.WorkloadIdentifier)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"WorkloadIdentifier\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `WorkloadIdentifier`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.WorkloadIdentifier))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.WorkloadIdentifier)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.WorkloadType.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"WorkloadType\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `WorkloadType`) + } + r.WriteMapElemValue() + x.WorkloadType.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.InterpolatedWorkloadIdentifier))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.InterpolatedWorkloadIdentifier)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"InterpolatedWorkloadIdentifier\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `InterpolatedWorkloadIdentifier`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.InterpolatedWorkloadIdentifier))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.InterpolatedWorkloadIdentifier)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JWT))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JWT)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"JWT\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `JWT`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.JWT))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JWT)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.Expiration) + } else if yyxt22 := z.Extension(z.I2Rtid(x.Expiration)); yyxt22 != nil { + z.EncExtension(x.Expiration, yyxt22) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Expiration) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.Expiration) + } else { + z.EncFallback(x.Expiration) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Expiration\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Expiration`) + } + r.WriteMapElemValue() + if false { + } else if !z.EncBasicHandle().TimeNotBuiltin { + r.EncodeTime(x.Expiration) + } else if yyxt23 := z.Extension(z.I2Rtid(x.Expiration)); yyxt23 != nil { + z.EncExtension(x.Expiration, yyxt23) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Expiration) + } else if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(x.Expiration) + } else { + z.EncFallback(x.Expiration) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *SignedWorkloadIdentity) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *SignedWorkloadIdentity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AllocID": + if r.TryDecodeAsNil() { + x.WorkloadIdentityRequest.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "IdentityName": + if r.TryDecodeAsNil() { + x.WorkloadIdentityRequest.WIHandle.IdentityName = "" + } else { + x.IdentityName = (string)(r.DecodeString()) + } + case "WorkloadIdentifier": + if r.TryDecodeAsNil() { + x.WorkloadIdentityRequest.WIHandle.WorkloadIdentifier = "" + } else { + x.WorkloadIdentifier = (string)(r.DecodeString()) + } + case "WorkloadType": + if r.TryDecodeAsNil() { + x.WorkloadIdentityRequest.WIHandle.WorkloadType = 0 + } else { + x.WorkloadType.CodecDecodeSelf(d) + } + case "InterpolatedWorkloadIdentifier": + if r.TryDecodeAsNil() { + x.WorkloadIdentityRequest.WIHandle.InterpolatedWorkloadIdentifier = "" + } else { + x.InterpolatedWorkloadIdentifier = (string)(r.DecodeString()) + } + case "JWT": + if r.TryDecodeAsNil() { + x.JWT = "" + } else { + x.JWT = (string)(r.DecodeString()) + } + case "Expiration": + if r.TryDecodeAsNil() { + x.Expiration = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.Expiration = r.DecodeTime() + } else if yyxt11 := z.Extension(z.I2Rtid(x.Expiration)); yyxt11 != nil { + z.DecExtension(x.Expiration, yyxt11) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Expiration) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.Expiration) + } else { + z.DecFallback(&x.Expiration, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *SignedWorkloadIdentity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WorkloadIdentityRequest.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WorkloadIdentityRequest.WIHandle.IdentityName = "" + } else { + x.IdentityName = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WorkloadIdentityRequest.WIHandle.WorkloadIdentifier = "" + } else { + x.WorkloadIdentifier = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WorkloadIdentityRequest.WIHandle.WorkloadType = 0 + } else { + x.WorkloadType.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WorkloadIdentityRequest.WIHandle.InterpolatedWorkloadIdentifier = "" + } else { + x.InterpolatedWorkloadIdentifier = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.JWT = "" + } else { + x.JWT = (string)(r.DecodeString()) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Expiration = time.Time{} + } else { + if false { + } else if !z.DecBasicHandle().TimeNotBuiltin { + x.Expiration = r.DecodeTime() + } else if yyxt20 := z.Extension(z.I2Rtid(x.Expiration)); yyxt20 != nil { + z.DecExtension(x.Expiration, yyxt20) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Expiration) + } else if !z.DecBinary() && z.IsJSONHandle() { + z.DecJSONUnmarshal(&x.Expiration) + } else { + z.DecFallback(&x.Expiration, false) + } + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } + r.ReadArrayEnd() +} + +func (x *WorkloadIdentityRejection) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllocID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdentityName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdentityName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdentityName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdentityName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdentityName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdentityName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.WorkloadIdentifier))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.WorkloadIdentifier)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"WorkloadIdentifier\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `WorkloadIdentifier`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.WorkloadIdentifier))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.WorkloadIdentifier)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.WorkloadType.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"WorkloadType\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `WorkloadType`) + } + r.WriteMapElemValue() + x.WorkloadType.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.InterpolatedWorkloadIdentifier))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.InterpolatedWorkloadIdentifier)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"InterpolatedWorkloadIdentifier\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `InterpolatedWorkloadIdentifier`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.InterpolatedWorkloadIdentifier))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.InterpolatedWorkloadIdentifier)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Reason))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Reason)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reason\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reason`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Reason))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Reason)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *WorkloadIdentityRejection) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *WorkloadIdentityRejection) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "AllocID": + if r.TryDecodeAsNil() { + x.WorkloadIdentityRequest.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + case "IdentityName": + if r.TryDecodeAsNil() { + x.WorkloadIdentityRequest.WIHandle.IdentityName = "" + } else { + x.IdentityName = (string)(r.DecodeString()) + } + case "WorkloadIdentifier": + if r.TryDecodeAsNil() { + x.WorkloadIdentityRequest.WIHandle.WorkloadIdentifier = "" + } else { + x.WorkloadIdentifier = (string)(r.DecodeString()) + } + case "WorkloadType": + if r.TryDecodeAsNil() { + x.WorkloadIdentityRequest.WIHandle.WorkloadType = 0 + } else { + x.WorkloadType.CodecDecodeSelf(d) + } + case "InterpolatedWorkloadIdentifier": + if r.TryDecodeAsNil() { + x.WorkloadIdentityRequest.WIHandle.InterpolatedWorkloadIdentifier = "" + } else { + x.InterpolatedWorkloadIdentifier = (string)(r.DecodeString()) + } + case "Reason": + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *WorkloadIdentityRejection) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WorkloadIdentityRequest.AllocID = "" + } else { + x.AllocID = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WorkloadIdentityRequest.WIHandle.IdentityName = "" + } else { + x.IdentityName = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WorkloadIdentityRequest.WIHandle.WorkloadIdentifier = "" + } else { + x.WorkloadIdentifier = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WorkloadIdentityRequest.WIHandle.WorkloadType = 0 + } else { + x.WorkloadType.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WorkloadIdentityRequest.WIHandle.InterpolatedWorkloadIdentifier = "" + } else { + x.InterpolatedWorkloadIdentifier = (string)(r.DecodeString()) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = (string)(r.DecodeString()) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = r.CheckBreak() + } + if yyb10 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocIdentitiesRequest) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) + } else { + r.WriteMapStart(13) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Identities == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoWorkloadIdentityRequest(([]*WorkloadIdentityRequest)(x.Identities), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Identities\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Identities`) + } + r.WriteMapElemValue() + if x.Identities == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoWorkloadIdentityRequest(([]*WorkloadIdentityRequest)(x.Identities), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Region\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Namespace\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MinQueryIndex\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.MinQueryIndex)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { + z.EncExtension(x.MaxQueryTime, yyxt16) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MaxQueryTime\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) + } + r.WriteMapElemValue() + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { + z.EncExtension(x.MaxQueryTime, yyxt17) + } else { + r.EncodeInt(int64(x.MaxQueryTime)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AllowStale\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.AllowStale)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Prefix\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"AuthToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Filter\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Filter`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.Filter))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Filter)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"PerPage\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `PerPage`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(x.PerPage)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Reverse\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Reverse`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Reverse)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Forwarded\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Forwarded)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocIdentitiesRequest) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocIdentitiesRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "Identities": + if r.TryDecodeAsNil() { + x.Identities = nil + } else { + if false { + } else { + h.decSlicePtrtoWorkloadIdentityRequest((*[]*WorkloadIdentityRequest)(&x.Identities), d) + } + } + case "Region": + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + case "Namespace": + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + case "MinQueryIndex": + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + case "MaxQueryTime": + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { + z.DecExtension(x.MaxQueryTime, yyxt10) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + case "AllowStale": + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + case "Prefix": + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + case "AuthToken": + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + case "Filter": + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + case "PerPage": + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + case "Reverse": + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + case "Forwarded": + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocIdentitiesRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj19 int + var yyb19 bool + var yyhl19 bool = l >= 0 + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Identities = nil + } else { + if false { + } else { + h.decSlicePtrtoWorkloadIdentityRequest((*[]*WorkloadIdentityRequest)(&x.Identities), d) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Region = "" + } else { + x.Region = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Namespace = "" + } else { + x.Namespace = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MinQueryIndex = 0 + } else { + x.MinQueryIndex = (uint64)(r.DecodeUint64()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.MaxQueryTime = 0 + } else { + if false { + } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { + z.DecExtension(x.MaxQueryTime, yyxt26) + } else { + x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) + } + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AllowStale = false + } else { + x.AllowStale = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Prefix = "" + } else { + x.Prefix = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.AuthToken = "" + } else { + x.AuthToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Filter = "" + } else { + x.Filter = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.PerPage = 0 + } else { + x.PerPage = (int32)(z.C.IntV(r.DecodeInt64(), 32)) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.Reverse = false + } else { + x.Reverse = (bool)(r.DecodeBool()) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryOptions.InternalRpcInfo.Forwarded = false + } else { + x.Forwarded = (bool)(r.DecodeBool()) + } + for { + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj19-1, "") + } + r.ReadArrayEnd() +} + +func (x *AllocIdentitiesResponse) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) + } else { + r.WriteMapStart(6) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.SignedIdentities == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoSignedWorkloadIdentity(([]*SignedWorkloadIdentity)(x.SignedIdentities), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"SignedIdentities\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `SignedIdentities`) + } + r.WriteMapElemValue() + if x.SignedIdentities == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoSignedWorkloadIdentity(([]*SignedWorkloadIdentity)(x.SignedIdentities), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Rejections == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoWorkloadIdentityRejection(([]*WorkloadIdentityRejection)(x.Rejections), e) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Rejections\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Rejections`) + } + r.WriteMapElemValue() + if x.Rejections == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoWorkloadIdentityRejection(([]*WorkloadIdentityRejection)(x.Rejections), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Index\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(x.Index)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { + z.EncExtension(x.LastContact, yyxt13) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LastContact\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) + } + r.WriteMapElemValue() + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { + z.EncExtension(x.LastContact, yyxt14) + } else { + r.EncodeInt(int64(x.LastContact)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"KnownLeader\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.KnownLeader)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NextToken\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `NextToken`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.NextToken))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextToken)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *AllocIdentitiesResponse) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *AllocIdentitiesResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "SignedIdentities": + if r.TryDecodeAsNil() { + x.SignedIdentities = nil + } else { + if false { + } else { + h.decSlicePtrtoSignedWorkloadIdentity((*[]*SignedWorkloadIdentity)(&x.SignedIdentities), d) + } + } + case "Rejections": + if r.TryDecodeAsNil() { + x.Rejections = nil + } else { + if false { + } else { + h.decSlicePtrtoWorkloadIdentityRejection((*[]*WorkloadIdentityRejection)(&x.Rejections), d) + } + } + case "Index": + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + case "LastContact": + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { + z.DecExtension(x.LastContact, yyxt10) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + case "KnownLeader": + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + case "NextToken": + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *AllocIdentitiesResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.SignedIdentities = nil + } else { + if false { + } else { + h.decSlicePtrtoSignedWorkloadIdentity((*[]*SignedWorkloadIdentity)(&x.SignedIdentities), d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Rejections = nil + } else { + if false { + } else { + h.decSlicePtrtoWorkloadIdentityRejection((*[]*WorkloadIdentityRejection)(&x.Rejections), d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.Index = 0 + } else { + x.Index = (uint64)(r.DecodeUint64()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.LastContact = 0 + } else { + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(x.LastContact)); yyxt20 != nil { + z.DecExtension(x.LastContact, yyxt20) + } else { + x.LastContact = (time.Duration)(r.DecodeInt64()) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.KnownLeader = false + } else { + x.KnownLeader = (bool)(r.DecodeBool()) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.QueryMeta.NextToken = "" + } else { + x.NextToken = (string)(r.DecodeString()) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } + r.ReadArrayEnd() +} + +func (x WorkloadType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + r.EncodeInt(int64(x)) + } +} + +func (x *WorkloadType) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + *x = (WorkloadType)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } +} + +func (x *WIHandle) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(4) + } else { + r.WriteMapStart(4) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdentityName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdentityName)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"IdentityName\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `IdentityName`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.IdentityName))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IdentityName)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.WorkloadIdentifier))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.WorkloadIdentifier)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"WorkloadIdentifier\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `WorkloadIdentifier`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.WorkloadIdentifier))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.WorkloadIdentifier)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + x.WorkloadType.CodecEncodeSelf(e) + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"WorkloadType\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `WorkloadType`) + } + r.WriteMapElemValue() + x.WorkloadType.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.InterpolatedWorkloadIdentifier))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.InterpolatedWorkloadIdentifier)) + } + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"InterpolatedWorkloadIdentifier\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, `InterpolatedWorkloadIdentifier`) + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(x.InterpolatedWorkloadIdentifier))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(x.InterpolatedWorkloadIdentifier)) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } + } + } +} + +func (x *WIHandle) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap100 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray100 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) + } + } +} + +func (x *WIHandle) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + r.ReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + r.ReadMapElemValue() + switch yys3 { + case "IdentityName": + if r.TryDecodeAsNil() { + x.IdentityName = "" + } else { + x.IdentityName = (string)(r.DecodeString()) + } + case "WorkloadIdentifier": + if r.TryDecodeAsNil() { + x.WorkloadIdentifier = "" + } else { + x.WorkloadIdentifier = (string)(r.DecodeString()) + } + case "WorkloadType": + if r.TryDecodeAsNil() { + x.WorkloadType = 0 + } else { + x.WorkloadType.CodecDecodeSelf(d) + } + case "InterpolatedWorkloadIdentifier": + if r.TryDecodeAsNil() { + x.InterpolatedWorkloadIdentifier = "" + } else { + x.InterpolatedWorkloadIdentifier = (string)(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + r.ReadMapEnd() +} + +func (x *WIHandle) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.IdentityName = "" + } else { + x.IdentityName = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WorkloadIdentifier = "" + } else { + x.WorkloadIdentifier = (string)(r.DecodeString()) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.WorkloadType = 0 + } else { + x.WorkloadType.CodecDecodeSelf(d) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.InterpolatedWorkloadIdentifier = "" + } else { + x.InterpolatedWorkloadIdentifier = (string)(r.DecodeString()) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = r.CheckBreak() + } + if yyb8 { + break + } + r.ReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } + r.ReadArrayEnd() +} + +func (x codecSelfer100) encSlicePtrtoACLRolePolicyLink(v []*ACLRolePolicyLink, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoACLRolePolicyLink(v *[]*ACLRolePolicyLink, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ACLRolePolicyLink{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ACLRolePolicyLink, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ACLRolePolicyLink, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ACLRolePolicyLink) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ACLRolePolicyLink, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoACLRole(v []*ACLRole, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoACLRole(v *[]*ACLRole, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ACLRole{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ACLRole, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ACLRole, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ACLRole) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ACLRole, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicestring(v []string, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyv1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyv1)) + } + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicestring(v *[]string, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []string{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]string, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) + } else { + yyrl1 = 8 + } + yyv1 = make([]string, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, "") + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = "" + } else { + yyv1[yyj1] = (string)(r.DecodeString()) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]string, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoACLRoleListStub(v []*ACLRoleListStub, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoACLRoleListStub(v *[]*ACLRoleListStub, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ACLRoleListStub{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ACLRoleListStub, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ACLRoleListStub, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ACLRoleListStub) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ACLRoleListStub, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringPtrtoACLRole(v map[string]*ACLRole, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoACLRole(v *map[string]*ACLRole, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*ACLRole, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *ACLRole + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(ACLRole) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encMapstringstring(v map[string]string, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyv1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyv1)) + } + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringstring(v *map[string]string, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 32) + yyv1 = make(map[string]string, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 string + var yymg1, yymdn1 bool + if yybh1.MapValueReset { + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + if yymg1 { + yymv1 = yyv1[yymk1] + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + yymv1 = (string)(r.DecodeString()) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = "" + } + } else if yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encMapstringSlicestring(v map[string][]string, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(yyv1), e) + } + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringSlicestring(v *map[string][]string, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) + yyv1 = make(map[string][]string, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 []string + var yymg1, yymdn1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + if yymg1 { + yymv1 = yyv1[yymk1] + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if false { + } else { + h.decSlicestring((*[]string)(&yymv1), d) + } + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoACLAuthMethodStub(v []*ACLAuthMethodStub, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoACLAuthMethodStub(v *[]*ACLAuthMethodStub, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ACLAuthMethodStub{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ACLAuthMethodStub, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ACLAuthMethodStub, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ACLAuthMethodStub) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ACLAuthMethodStub, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringPtrtoACLAuthMethod(v map[string]*ACLAuthMethod, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoACLAuthMethod(v *map[string]*ACLAuthMethod, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*ACLAuthMethod, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *ACLAuthMethod + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(ACLAuthMethod) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoACLAuthMethod(v []*ACLAuthMethod, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoACLAuthMethod(v *[]*ACLAuthMethod, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ACLAuthMethod{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ACLAuthMethod, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ACLAuthMethod, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ACLAuthMethod) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ACLAuthMethod, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoACLBindingRule(v []*ACLBindingRule, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoACLBindingRule(v *[]*ACLBindingRule, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ACLBindingRule{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ACLBindingRule, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ACLBindingRule, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ACLBindingRule) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ACLBindingRule, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoACLBindingRuleListStub(v []*ACLBindingRuleListStub, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoACLBindingRuleListStub(v *[]*ACLBindingRuleListStub, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ACLBindingRuleListStub{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ACLBindingRuleListStub, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ACLBindingRuleListStub, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ACLBindingRuleListStub) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ACLBindingRuleListStub, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringPtrtoACLBindingRule(v map[string]*ACLBindingRule, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoACLBindingRule(v *map[string]*ACLBindingRule, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*ACLBindingRule, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *ACLBindingRule + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(ACLBindingRule) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoJobAction(v []*JobAction, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoJobAction(v *[]*JobAction, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*JobAction{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*JobAction, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*JobAction, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(JobAction) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*JobAction, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoServiceRegistration(v []*ServiceRegistration, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoServiceRegistration(v *[]*ServiceRegistration, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ServiceRegistration{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ServiceRegistration, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ServiceRegistration, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ServiceRegistration) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ServiceRegistration, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSliceServerHealth(v []ServerHealth, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + yy2 := &yyv1 + yy2.CodecEncodeSelf(e) + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSliceServerHealth(v *[]ServerHealth, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []ServerHealth{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 136) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]ServerHealth, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 136) + } else { + yyrl1 = 8 + } + yyv1 = make([]ServerHealth, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, ServerHealth{}) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = ServerHealth{} + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]ServerHealth, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringAutopilotZone(v map[string]AutopilotZone, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + yy3 := &yyv1 + yy3.CodecEncodeSelf(e) + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringAutopilotZone(v *map[string]AutopilotZone, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 72) + yyv1 = make(map[string]AutopilotZone, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 AutopilotZone + var yymg1, yymdn1 bool + if yybh1.MapValueReset { + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + if yymg1 { + yymv1 = yyv1[yymk1] + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = AutopilotZone{} + } + } else if yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encMapstringAutopilotZoneUpgradeVersions(v map[string]AutopilotZoneUpgradeVersions, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + yy3 := &yyv1 + yy3.CodecEncodeSelf(e) + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringAutopilotZoneUpgradeVersions(v *map[string]AutopilotZoneUpgradeVersions, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 112) + yyv1 = make(map[string]AutopilotZoneUpgradeVersions, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 AutopilotZoneUpgradeVersions + var yymg1, yymdn1 bool + if yybh1.MapValueReset { + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + if yymg1 { + yymv1 = yyv1[yymk1] + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = AutopilotZoneUpgradeVersions{} + } + } else if yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encBitmap(v Bitmap, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeStringBytesRaw([]byte(v)) +} + +func (x codecSelfer100) decBitmap(v *Bitmap, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + *v = r.DecodeBytes(*((*[]byte)(v)), false) +} + +func (x codecSelfer100) encMapstringPtrtoConsulIngressConfigEntry(v map[string]*ConsulIngressConfigEntry, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoConsulIngressConfigEntry(v *map[string]*ConsulIngressConfigEntry, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*ConsulIngressConfigEntry, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *ConsulIngressConfigEntry + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(ConsulIngressConfigEntry) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encMapstringPtrtoConsulTerminatingConfigEntry(v map[string]*ConsulTerminatingConfigEntry, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoConsulTerminatingConfigEntry(v *map[string]*ConsulTerminatingConfigEntry, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*ConsulTerminatingConfigEntry, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *ConsulTerminatingConfigEntry + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(ConsulTerminatingConfigEntry) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSliceuint16(v []uint16, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if false { + } else { + r.EncodeUint(uint64(yyv1)) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSliceuint16(v *[]uint16, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []uint16{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 2) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]uint16, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 2) + } else { + yyrl1 = 8 + } + yyv1 = make([]uint16, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, 0) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = 0 + } else { + yyv1[yyj1] = (uint16)(z.C.UintV(r.DecodeUint64(), 16)) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]uint16, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encCSISecrets(v CSISecrets, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyv1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyv1)) + } + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decCSISecrets(v *CSISecrets, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 32) + yyv1 = make(map[string]string, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 string + var yymg1, yymdn1 bool + if yybh1.MapValueReset { + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + if yymg1 { + yymv1 = yyv1[yymk1] + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + yymv1 = (string)(r.DecodeString()) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = "" + } + } else if yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoCSITopology(v []*CSITopology, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoCSITopology(v *[]*CSITopology, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*CSITopology{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*CSITopology, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*CSITopology, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(CSITopology) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*CSITopology, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoCSIVolumeCapability(v []*CSIVolumeCapability, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoCSIVolumeCapability(v *[]*CSIVolumeCapability, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*CSIVolumeCapability{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*CSIVolumeCapability, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*CSIVolumeCapability, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(CSIVolumeCapability) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*CSIVolumeCapability, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringPtrtoAllocation(v map[string]*Allocation, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoAllocation(v *map[string]*Allocation, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*Allocation, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *Allocation + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(Allocation) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encMapstringPtrtoCSIVolumeClaim(v map[string]*CSIVolumeClaim, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoCSIVolumeClaim(v *map[string]*CSIVolumeClaim, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*CSIVolumeClaim, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *CSIVolumeClaim + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(CSIVolumeClaim) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoCSIVolume(v []*CSIVolume, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoCSIVolume(v *[]*CSIVolume, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*CSIVolume{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*CSIVolume, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*CSIVolume, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(CSIVolume) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*CSIVolume, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSliceCSIVolumeClaimRequest(v []CSIVolumeClaimRequest, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + yy2 := &yyv1 + yy2.CodecEncodeSelf(e) + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSliceCSIVolumeClaimRequest(v *[]CSIVolumeClaimRequest, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []CSIVolumeClaimRequest{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 200) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]CSIVolumeClaimRequest, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 200) + } else { + yyrl1 = 8 + } + yyv1 = make([]CSIVolumeClaimRequest, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, CSIVolumeClaimRequest{}) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = CSIVolumeClaimRequest{} + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]CSIVolumeClaimRequest, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoCSIVolListStub(v []*CSIVolListStub, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoCSIVolListStub(v *[]*CSIVolListStub, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*CSIVolListStub{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*CSIVolListStub, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*CSIVolListStub, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(CSIVolListStub) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*CSIVolListStub, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoCSIVolumeExternalStub(v []*CSIVolumeExternalStub, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoCSIVolumeExternalStub(v *[]*CSIVolumeExternalStub, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*CSIVolumeExternalStub{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*CSIVolumeExternalStub, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*CSIVolumeExternalStub, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(CSIVolumeExternalStub) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*CSIVolumeExternalStub, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoCSISnapshot(v []*CSISnapshot, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoCSISnapshot(v *[]*CSISnapshot, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*CSISnapshot{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*CSISnapshot, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*CSISnapshot, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(CSISnapshot) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*CSISnapshot, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringPtrtoCSIInfo(v map[string]*CSIInfo, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoCSIInfo(v *map[string]*CSIInfo, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*CSIInfo, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *CSIInfo + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(CSIInfo) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoAllocListStub(v []*AllocListStub, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoAllocListStub(v *[]*AllocListStub, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*AllocListStub{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*AllocListStub, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*AllocListStub, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(AllocListStub) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*AllocListStub, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encJobNamespacedDescriptions(v JobNamespacedDescriptions, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + yy3 := &yyv1 + yy3.CodecEncodeSelf(e) + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decJobNamespacedDescriptions(v *JobNamespacedDescriptions, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 56) + yyv1 = make(map[string]JobDescription, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 JobDescription + var yymg1, yymdn1 bool + if yybh1.MapValueReset { + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + if yymg1 { + yymv1 = yyv1[yymk1] + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = JobDescription{} + } + } else if yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encJobDescriptions(v JobDescriptions, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decJobDescriptions(v *JobDescriptions, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]JobNamespacedDescriptions, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 JobNamespacedDescriptions + var yymg1, yymdn1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + if yymg1 { + yymv1 = yyv1[yymk1] + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoCSIPluginListStub(v []*CSIPluginListStub, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoCSIPluginListStub(v *[]*CSIPluginListStub, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*CSIPluginListStub{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*CSIPluginListStub, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*CSIPluginListStub, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(CSIPluginListStub) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*CSIPluginListStub, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapDeviceIdTuplePtrtoDeviceAccounterInstance(v map[DeviceIdTuple]*DeviceAccounterInstance, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + yy2 := &yyk1 + yy2.CodecEncodeSelf(e) + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapDeviceIdTuplePtrtoDeviceAccounterInstance(v *map[DeviceIdTuple]*DeviceAccounterInstance, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 56) + yyv1 = make(map[DeviceIdTuple]*DeviceAccounterInstance, yyrl1) + *v = yyv1 + } + var yymk1 DeviceIdTuple + var yymv1 *DeviceAccounterInstance + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = DeviceIdTuple{} + } else { + yymk1.CodecDecodeSelf(d) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(DeviceAccounterInstance) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encMapstringint(v map[string]int, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeInt(int64(yyv1)) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringint(v *map[string]int, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]int, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 int + var yymg1, yymdn1 bool + if yybh1.MapValueReset { + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + if yymg1 { + yymv1 = yyv1[yymk1] + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + yymv1 = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = 0 + } + } else if yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoFieldDiff(v []*FieldDiff, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoFieldDiff(v *[]*FieldDiff, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*FieldDiff{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*FieldDiff, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*FieldDiff, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(FieldDiff) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*FieldDiff, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoObjectDiff(v []*ObjectDiff, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoObjectDiff(v *[]*ObjectDiff, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ObjectDiff{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ObjectDiff, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ObjectDiff, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ObjectDiff) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ObjectDiff, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoTaskGroupDiff(v []*TaskGroupDiff, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoTaskGroupDiff(v *[]*TaskGroupDiff, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*TaskGroupDiff{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*TaskGroupDiff, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*TaskGroupDiff, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(TaskGroupDiff) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*TaskGroupDiff, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoTaskDiff(v []*TaskDiff, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoTaskDiff(v *[]*TaskDiff, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*TaskDiff{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*TaskDiff, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*TaskDiff, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(TaskDiff) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*TaskDiff, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringuint64(v map[string]uint64, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeUint(uint64(yyv1)) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringuint64(v *map[string]uint64, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]uint64, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 uint64 + var yymg1, yymdn1 bool + if yybh1.MapValueReset { + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + if yymg1 { + yymv1 = yyv1[yymk1] + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + yymv1 = (uint64)(r.DecodeUint64()) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = 0 + } + } else if yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encTaskGroupDiffs(v TaskGroupDiffs, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decTaskGroupDiffs(v *TaskGroupDiffs, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*TaskGroupDiff{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*TaskGroupDiff, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*TaskGroupDiff, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(TaskGroupDiff) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*TaskGroupDiff, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encTaskDiffs(v TaskDiffs, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decTaskDiffs(v *TaskDiffs, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*TaskDiff{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*TaskDiff, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*TaskDiff, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(TaskDiff) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*TaskDiff, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encObjectDiffs(v ObjectDiffs, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decObjectDiffs(v *ObjectDiffs, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ObjectDiff{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ObjectDiff, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ObjectDiff, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ObjectDiff) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ObjectDiff, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encFieldDiffs(v FieldDiffs, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decFieldDiffs(v *FieldDiffs, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*FieldDiff{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*FieldDiff, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*FieldDiff, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(FieldDiff) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*FieldDiff, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapTopicSlicestring(v map[Topic][]string, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + yyk1.CodecEncodeSelf(e) + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(yyv1), e) + } + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapTopicSlicestring(v *map[Topic][]string, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) + yyv1 = make(map[Topic][]string, yyrl1) + *v = yyv1 + } + var yymk1 Topic + var yymv1 []string + var yymg1, yymdn1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1.CodecDecodeSelf(d) + } + + if yymg1 { + yymv1 = yyv1[yymk1] + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if false { + } else { + h.decSlicestring((*[]string)(&yymv1), d) + } + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSliceEvent(v []Event, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + yy2 := &yyv1 + yy2.CodecEncodeSelf(e) + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSliceEvent(v *[]Event, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []Event{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 112) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]Event, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 112) + } else { + yyrl1 = 8 + } + yyv1 = make([]Event, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, Event{}) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = Event{} + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]Event, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encTerminalByNodeByName(v TerminalByNodeByName, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encMapstringPtrtoAllocation((map[string]*Allocation)(yyv1), e) + } + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decTerminalByNodeByName(v *TerminalByNodeByName, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]map[string]*Allocation, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 map[string]*Allocation + var yymg1, yymdn1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + if yymg1 { + yymv1 = yyv1[yymk1] + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if false { + } else { + h.decMapstringPtrtoAllocation((*map[string]*Allocation)(&yymv1), d) + } + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoConstraint(v []*Constraint, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoConstraint(v *[]*Constraint, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*Constraint{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*Constraint, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*Constraint, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(Constraint) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*Constraint, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoHostVolumeCapability(v []*HostVolumeCapability, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoHostVolumeCapability(v *[]*HostVolumeCapability, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*HostVolumeCapability{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*HostVolumeCapability, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*HostVolumeCapability, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(HostVolumeCapability) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*HostVolumeCapability, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoHostVolumeStub(v []*HostVolumeStub, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoHostVolumeStub(v *[]*HostVolumeStub, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*HostVolumeStub{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*HostVolumeStub, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*HostVolumeStub, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(HostVolumeStub) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*HostVolumeStub, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoTaskGroupHostVolumeClaim(v []*TaskGroupHostVolumeClaim, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoTaskGroupHostVolumeClaim(v *[]*TaskGroupHostVolumeClaim, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*TaskGroupHostVolumeClaim{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*TaskGroupHostVolumeClaim, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*TaskGroupHostVolumeClaim, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(TaskGroupHostVolumeClaim) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*TaskGroupHostVolumeClaim, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapNamespacedIDPtrtoJobDeregisterOptions(v map[NamespacedID]*JobDeregisterOptions, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + yy2 := &yyk1 + yy2.CodecEncodeSelf(e) + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapNamespacedIDPtrtoJobDeregisterOptions(v *map[NamespacedID]*JobDeregisterOptions, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) + yyv1 = make(map[NamespacedID]*JobDeregisterOptions, yyrl1) + *v = yyv1 + } + var yymk1 NamespacedID + var yymv1 *JobDeregisterOptions + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = NamespacedID{} + } else { + yymk1.CodecDecodeSelf(d) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(JobDeregisterOptions) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSliceNamespacedID(v []NamespacedID, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + yy2 := &yyv1 + yy2.CodecEncodeSelf(e) + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSliceNamespacedID(v *[]NamespacedID, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []NamespacedID{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]NamespacedID, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32) + } else { + yyrl1 = 8 + } + yyv1 = make([]NamespacedID, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, NamespacedID{}) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = NamespacedID{} + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]NamespacedID, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSliceJobStatusesJob(v []JobStatusesJob, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + yy2 := &yyv1 + yy2.CodecEncodeSelf(e) + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSliceJobStatusesJob(v *[]JobStatusesJob, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []JobStatusesJob{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 240) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]JobStatusesJob, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 240) + } else { + yyrl1 = 8 + } + yyv1 = make([]JobStatusesJob, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, JobStatusesJob{}) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = JobStatusesJob{} + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]JobStatusesJob, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSliceJobStatusesAlloc(v []JobStatusesAlloc, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + yy2 := &yyv1 + yy2.CodecEncodeSelf(e) + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSliceJobStatusesAlloc(v *[]JobStatusesAlloc, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []JobStatusesAlloc{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 112) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]JobStatusesAlloc, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 112) + } else { + yyrl1 = 8 + } + yyv1 = make([]JobStatusesAlloc, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, JobStatusesAlloc{}) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = JobStatusesAlloc{} + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]JobStatusesAlloc, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoWrappedKey(v []*WrappedKey, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoWrappedKey(v *[]*WrappedKey, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*WrappedKey{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*WrappedKey, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*WrappedKey, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(WrappedKey) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*WrappedKey, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoRootKeyMeta(v []*RootKeyMeta, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoRootKeyMeta(v *[]*RootKeyMeta, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*RootKeyMeta{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*RootKeyMeta, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*RootKeyMeta, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(RootKeyMeta) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*RootKeyMeta, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoKeyringPublicKey(v []*KeyringPublicKey, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoKeyringPublicKey(v *[]*KeyringPublicKey, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*KeyringPublicKey{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*KeyringPublicKey, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*KeyringPublicKey, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(KeyringPublicKey) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*KeyringPublicKey, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoNetworkResource(v []*NetworkResource, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoNetworkResource(v *[]*NetworkResource, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*NetworkResource{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*NetworkResource, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*NetworkResource, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(NetworkResource) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*NetworkResource, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoNodeNetworkResource(v []*NodeNetworkResource, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoNodeNetworkResource(v *[]*NodeNetworkResource, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*NodeNetworkResource{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*NodeNetworkResource, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*NodeNetworkResource, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(NodeNetworkResource) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*NodeNetworkResource, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringSliceNodeNetworkAddress(v map[string][]NodeNetworkAddress, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceNodeNetworkAddress(([]NodeNetworkAddress)(yyv1), e) + } + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringSliceNodeNetworkAddress(v *map[string][]NodeNetworkAddress, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) + yyv1 = make(map[string][]NodeNetworkAddress, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 []NodeNetworkAddress + var yymg1, yymdn1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + if yymg1 { + yymv1 = yyv1[yymk1] + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if false { + } else { + h.decSliceNodeNetworkAddress((*[]NodeNetworkAddress)(&yymv1), d) + } + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSliceNodeNetworkAddress(v []NodeNetworkAddress, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + yy2 := &yyv1 + yy2.CodecEncodeSelf(e) + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSliceNodeNetworkAddress(v *[]NodeNetworkAddress, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []NodeNetworkAddress{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 80) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]NodeNetworkAddress, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 80) + } else { + yyrl1 = 8 + } + yyv1 = make([]NodeNetworkAddress, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, NodeNetworkAddress{}) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = NodeNetworkAddress{} + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]NodeNetworkAddress, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringBitmap(v map[string]Bitmap, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringBitmap(v *map[string]Bitmap, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) + yyv1 = make(map[string]Bitmap, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 Bitmap + var yymg1, yymdn1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + if yymg1 { + yymv1 = yyv1[yymk1] + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encMapstringPtrtostring(v map[string]*string, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yy3 := *yyv1 + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yy3))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yy3)) + } + } + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtostring(v *map[string]*string, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*string, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *string + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(string) + } + if false { + } else { + *yymv1 = (string)(r.DecodeString()) + } + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoNodePool(v []*NodePool, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoNodePool(v *[]*NodePool, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*NodePool{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*NodePool, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*NodePool, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(NodePool) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*NodePool, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoNodeListStub(v []*NodeListStub, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoNodeListStub(v *[]*NodeListStub, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*NodeListStub{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*NodeListStub, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*NodeListStub, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(NodeListStub) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*NodeListStub, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoJobListStub(v []*JobListStub, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoJobListStub(v *[]*JobListStub, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*JobListStub{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*JobListStub, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*JobListStub, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(JobListStub) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*JobListStub, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoRaftServer(v []*RaftServer, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoRaftServer(v *[]*RaftServer, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*RaftServer{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*RaftServer, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*RaftServer, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(RaftServer) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*RaftServer, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoVaultAccessor(v []*VaultAccessor, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoVaultAccessor(v *[]*VaultAccessor, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*VaultAccessor{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*VaultAccessor, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*VaultAccessor, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(VaultAccessor) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*VaultAccessor, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapContextSlicestring(v map[Context][]string, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + yyk1.CodecEncodeSelf(e) + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicestring(([]string)(yyv1), e) + } + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapContextSlicestring(v *map[Context][]string, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) + yyv1 = make(map[Context][]string, yyrl1) + *v = yyv1 + } + var yymk1 Context + var yymv1 []string + var yymg1, yymdn1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1.CodecDecodeSelf(d) + } + + if yymg1 { + yymv1 = yyv1[yymk1] + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if false { + } else { + h.decSlicestring((*[]string)(&yymv1), d) + } + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encMapContextbool(v map[Context]bool, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + yyk1.CodecEncodeSelf(e) + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(yyv1)) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapContextbool(v *map[Context]bool, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 17) + yyv1 = make(map[Context]bool, yyrl1) + *v = yyv1 + } + var yymk1 Context + var yymv1 bool + var yymg1, yymdn1 bool + if yybh1.MapValueReset { + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1.CodecDecodeSelf(d) + } + + if yymg1 { + yymv1 = yyv1[yymk1] + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + yymv1 = (bool)(r.DecodeBool()) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = false + } + } else if yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encMapContextSliceFuzzyMatch(v map[Context][]FuzzyMatch, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + yyk1.CodecEncodeSelf(e) + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceFuzzyMatch(([]FuzzyMatch)(yyv1), e) + } + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapContextSliceFuzzyMatch(v *map[Context][]FuzzyMatch, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) + yyv1 = make(map[Context][]FuzzyMatch, yyrl1) + *v = yyv1 + } + var yymk1 Context + var yymv1 []FuzzyMatch + var yymg1, yymdn1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1.CodecDecodeSelf(d) + } + + if yymg1 { + yymv1 = yyv1[yymk1] + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if false { + } else { + h.decSliceFuzzyMatch((*[]FuzzyMatch)(&yymv1), d) + } + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSliceFuzzyMatch(v []FuzzyMatch, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + yy2 := &yyv1 + yy2.CodecEncodeSelf(e) + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSliceFuzzyMatch(v *[]FuzzyMatch, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []FuzzyMatch{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 40) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]FuzzyMatch, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 40) + } else { + yyrl1 = 8 + } + yyv1 = make([]FuzzyMatch, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, FuzzyMatch{}) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = FuzzyMatch{} + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]FuzzyMatch, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoServiceRegistrationListStub(v []*ServiceRegistrationListStub, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoServiceRegistrationListStub(v *[]*ServiceRegistrationListStub, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ServiceRegistrationListStub{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ServiceRegistrationListStub, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ServiceRegistrationListStub, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ServiceRegistrationListStub) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ServiceRegistrationListStub, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoServiceRegistrationStub(v []*ServiceRegistrationStub, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoServiceRegistrationStub(v *[]*ServiceRegistrationStub, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ServiceRegistrationStub{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ServiceRegistrationStub, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ServiceRegistrationStub, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ServiceRegistrationStub) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ServiceRegistrationStub, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoServiceCheck(v []*ServiceCheck, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoServiceCheck(v *[]*ServiceCheck, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ServiceCheck{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ServiceCheck, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ServiceCheck, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ServiceCheck) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ServiceCheck, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringInterface(v map[string]interface{}, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + if false { + } else { + z.EncFallback(yyv1) + } + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringInterface(v *map[string]interface{}, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 32) + yyv1 = make(map[string]interface{}, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 interface{} + var yymg1, yymdn1 bool + if yybh1.MapValueReset { + if !yybh1.InterfaceReset { + yymg1 = true + } + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + if yymg1 { + yymv1 = yyv1[yymk1] + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if false { + } else { + z.DecFallback(&yymv1, true) + } + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoVolumeMount(v []*VolumeMount, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoVolumeMount(v *[]*VolumeMount, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*VolumeMount{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*VolumeMount, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*VolumeMount, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(VolumeMount) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*VolumeMount, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSliceConsulUpstream(v []ConsulUpstream, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + yy2 := &yyv1 + yy2.CodecEncodeSelf(e) + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSliceConsulUpstream(v *[]ConsulUpstream, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []ConsulUpstream{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 176) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]ConsulUpstream, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 176) + } else { + yyrl1 = 8 + } + yyv1 = make([]ConsulUpstream, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, ConsulUpstream{}) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = ConsulUpstream{} + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]ConsulUpstream, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSliceConsulExposePath(v []ConsulExposePath, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + yy2 := &yyv1 + yy2.CodecEncodeSelf(e) + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSliceConsulExposePath(v *[]ConsulExposePath, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []ConsulExposePath{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 56) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]ConsulExposePath, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 56) + } else { + yyrl1 = 8 + } + yyv1 = make([]ConsulExposePath, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, ConsulExposePath{}) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = ConsulExposePath{} + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]ConsulExposePath, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringPtrtoConsulGatewayBindAddress(v map[string]*ConsulGatewayBindAddress, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoConsulGatewayBindAddress(v *map[string]*ConsulGatewayBindAddress, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*ConsulGatewayBindAddress, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *ConsulGatewayBindAddress + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(ConsulGatewayBindAddress) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoConsulIngressService(v []*ConsulIngressService, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoConsulIngressService(v *[]*ConsulIngressService, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ConsulIngressService{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ConsulIngressService, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ConsulIngressService, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ConsulIngressService) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ConsulIngressService, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoConsulIngressListener(v []*ConsulIngressListener, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoConsulIngressListener(v *[]*ConsulIngressListener, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ConsulIngressListener{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ConsulIngressListener, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ConsulIngressListener, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ConsulIngressListener) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ConsulIngressListener, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoConsulLinkedService(v []*ConsulLinkedService, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoConsulLinkedService(v *[]*ConsulLinkedService, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ConsulLinkedService{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ConsulLinkedService, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ConsulLinkedService, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ConsulLinkedService) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ConsulLinkedService, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encnet_IP(v net.IP, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeStringBytesRaw([]byte(v)) +} + +func (x codecSelfer100) decnet_IP(v *net.IP, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + *v = r.DecodeBytes(*((*[]byte)(v)), false) +} + +func (x codecSelfer100) encMapstringPtrtoDrainUpdate(v map[string]*DrainUpdate, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoDrainUpdate(v *map[string]*DrainUpdate, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*DrainUpdate, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *DrainUpdate + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(DrainUpdate) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encMapstringPtrtoNodeEvent(v map[string]*NodeEvent, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoNodeEvent(v *map[string]*NodeEvent, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*NodeEvent, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *NodeEvent + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(NodeEvent) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoEvaluation(v []*Evaluation, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoEvaluation(v *[]*Evaluation, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*Evaluation{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*Evaluation, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*Evaluation, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(Evaluation) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*Evaluation, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoAllocation(v []*Allocation, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoAllocation(v *[]*Allocation, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*Allocation{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*Allocation, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*Allocation, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(Allocation) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*Allocation, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoAllocationDiff(v []*AllocationDiff, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoAllocationDiff(v *[]*AllocationDiff, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*AllocationDiff{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*AllocationDiff, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*AllocationDiff, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(AllocationDiff) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*AllocationDiff, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoDeploymentStatusUpdate(v []*DeploymentStatusUpdate, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoDeploymentStatusUpdate(v *[]*DeploymentStatusUpdate, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*DeploymentStatusUpdate{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*DeploymentStatusUpdate, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*DeploymentStatusUpdate, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(DeploymentStatusUpdate) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*DeploymentStatusUpdate, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringPtrtoDesiredTransition(v map[string]*DesiredTransition, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoDesiredTransition(v *map[string]*DesiredTransition, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*DesiredTransition, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *DesiredTransition + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(DesiredTransition) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoServerMember(v []*ServerMember, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoServerMember(v *[]*ServerMember, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ServerMember{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ServerMember, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ServerMember, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ServerMember) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ServerMember, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoScalingPolicyListStub(v []*ScalingPolicyListStub, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoScalingPolicyListStub(v *[]*ScalingPolicyListStub, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ScalingPolicyListStub{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ScalingPolicyListStub, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ScalingPolicyListStub, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ScalingPolicyListStub) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ScalingPolicyListStub, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoNodeServerInfo(v []*NodeServerInfo, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoNodeServerInfo(v *[]*NodeServerInfo, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*NodeServerInfo{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*NodeServerInfo, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*NodeServerInfo, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(NodeServerInfo) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*NodeServerInfo, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringPtrtoTaskGroupScaleStatus(v map[string]*TaskGroupScaleStatus, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoTaskGroupScaleStatus(v *map[string]*TaskGroupScaleStatus, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*TaskGroupScaleStatus, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *TaskGroupScaleStatus + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(TaskGroupScaleStatus) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoScalingEvent(v []*ScalingEvent, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoScalingEvent(v *[]*ScalingEvent, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ScalingEvent{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ScalingEvent, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ScalingEvent, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ScalingEvent) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ScalingEvent, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoJob(v []*Job, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoJob(v *[]*Job, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*Job{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*Job, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*Job, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(Job) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*Job, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoJobDiff(v []*JobDiff, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoJobDiff(v *[]*JobDiff, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*JobDiff{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*JobDiff, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*JobDiff, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(JobDiff) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*JobDiff, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringPtrtoAllocMetric(v map[string]*AllocMetric, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoAllocMetric(v *map[string]*AllocMetric, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*AllocMetric, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *AllocMetric + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(AllocMetric) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSliceSignedWorkloadIdentity(v []SignedWorkloadIdentity, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + yy2 := &yyv1 + yy2.CodecEncodeSelf(e) + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSliceSignedWorkloadIdentity(v *[]SignedWorkloadIdentity, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []SignedWorkloadIdentity{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 112) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]SignedWorkloadIdentity, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 112) + } else { + yyrl1 = 8 + } + yyv1 = make([]SignedWorkloadIdentity, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, SignedWorkloadIdentity{}) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = SignedWorkloadIdentity{} + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]SignedWorkloadIdentity, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoDeployment(v []*Deployment, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoDeployment(v *[]*Deployment, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*Deployment{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*Deployment, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*Deployment, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(Deployment) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*Deployment, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringSlicePtrtoNodeEvent(v map[string][]*NodeEvent, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoNodeEvent(([]*NodeEvent)(yyv1), e) + } + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringSlicePtrtoNodeEvent(v *map[string][]*NodeEvent, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) + yyv1 = make(map[string][]*NodeEvent, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 []*NodeEvent + var yymg1, yymdn1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + if yymg1 { + yymv1 = yyv1[yymk1] + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if false { + } else { + h.decSlicePtrtoNodeEvent((*[]*NodeEvent)(&yymv1), d) + } + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoNodeEvent(v []*NodeEvent, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoNodeEvent(v *[]*NodeEvent, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*NodeEvent{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*NodeEvent, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*NodeEvent, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(NodeEvent) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*NodeEvent, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringPtrtoDriverInfo(v map[string]*DriverInfo, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoDriverInfo(v *map[string]*DriverInfo, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*DriverInfo, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *DriverInfo + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(DriverInfo) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encMapstringPtrtoClientHostVolumeConfig(v map[string]*ClientHostVolumeConfig, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoClientHostVolumeConfig(v *map[string]*ClientHostVolumeConfig, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*ClientHostVolumeConfig, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *ClientHostVolumeConfig + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(ClientHostVolumeConfig) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encMapstringPtrtoClientHostNetworkConfig(v map[string]*ClientHostNetworkConfig, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoClientHostNetworkConfig(v *map[string]*ClientHostNetworkConfig, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*ClientHostNetworkConfig, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *ClientHostNetworkConfig + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(ClientHostNetworkConfig) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encResourceDevices(v ResourceDevices, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decResourceDevices(v *ResourceDevices, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*RequestedDevice{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*RequestedDevice, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*RequestedDevice, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(RequestedDevice) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*RequestedDevice, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encAllocatedPorts(v AllocatedPorts, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + yy2 := &yyv1 + yy2.CodecEncodeSelf(e) + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decAllocatedPorts(v *AllocatedPorts, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []AllocatedPortMapping{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 64) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]AllocatedPortMapping, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 64) + } else { + yyrl1 = 8 + } + yyv1 = make([]AllocatedPortMapping, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, AllocatedPortMapping{}) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = AllocatedPortMapping{} + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]AllocatedPortMapping, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePort(v []Port, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + yy2 := &yyv1 + yy2.CodecEncodeSelf(e) + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePort(v *[]Port, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []Port{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 64) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]Port, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 64) + } else { + yyrl1 = 8 + } + yyv1 = make([]Port, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, Port{}) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = Port{} + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]Port, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encNetworks(v Networks, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decNetworks(v *Networks, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*NetworkResource{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*NetworkResource, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*NetworkResource, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(NetworkResource) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*NetworkResource, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoNodeDeviceResource(v []*NodeDeviceResource, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoNodeDeviceResource(v *[]*NodeDeviceResource, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*NodeDeviceResource{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*NodeDeviceResource, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*NodeDeviceResource, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(NodeDeviceResource) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*NodeDeviceResource, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoNodeDevice(v []*NodeDevice, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoNodeDevice(v *[]*NodeDevice, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*NodeDevice{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*NodeDevice, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*NodeDevice, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(NodeDevice) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*NodeDevice, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringPtrtostructs_Attribute(v map[string]*pkg3_structs.Attribute, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + if false { + } else if yyxt3 := z.Extension(z.I2Rtid(yyv1)); yyxt3 != nil { + z.EncExtension(yyv1, yyxt3) + } else { + z.EncFallback(yyv1) + } + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtostructs_Attribute(v *map[string]*pkg3_structs.Attribute, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*pkg3_structs.Attribute, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *pkg3_structs.Attribute + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(pkg3_structs.Attribute) + } + if false { + } else if yyxt4 := z.Extension(z.I2Rtid(yymv1)); yyxt4 != nil { + z.DecExtension(yymv1, yyxt4) + } else { + z.DecFallback(yymv1, false) + } + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encMapstringPtrtoAllocatedTaskResources(v map[string]*AllocatedTaskResources, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoAllocatedTaskResources(v *map[string]*AllocatedTaskResources, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*AllocatedTaskResources, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *AllocatedTaskResources + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(AllocatedTaskResources) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encMapstringPtrtoTaskLifecycleConfig(v map[string]*TaskLifecycleConfig, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoTaskLifecycleConfig(v *map[string]*TaskLifecycleConfig, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*TaskLifecycleConfig, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *TaskLifecycleConfig + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(TaskLifecycleConfig) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoAllocatedDeviceResource(v []*AllocatedDeviceResource, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoAllocatedDeviceResource(v *[]*AllocatedDeviceResource, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*AllocatedDeviceResource{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*AllocatedDeviceResource, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*AllocatedDeviceResource, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(AllocatedDeviceResource) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*AllocatedDeviceResource, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encAllocatedDevices(v AllocatedDevices, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decAllocatedDevices(v *AllocatedDevices, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*AllocatedDeviceResource{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*AllocatedDeviceResource, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*AllocatedDeviceResource, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(AllocatedDeviceResource) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*AllocatedDeviceResource, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoAffinity(v []*Affinity, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoAffinity(v *[]*Affinity, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*Affinity{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*Affinity, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*Affinity, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(Affinity) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*Affinity, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoSpread(v []*Spread, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoSpread(v *[]*Spread, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*Spread{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*Spread, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*Spread, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(Spread) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*Spread, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoTaskGroup(v []*TaskGroup, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoTaskGroup(v *[]*TaskGroup, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*TaskGroup{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*TaskGroup, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*TaskGroup, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(TaskGroup) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*TaskGroup, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoJobUILink(v []*JobUILink, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoJobUILink(v *[]*JobUILink, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*JobUILink{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*JobUILink, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*JobUILink, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(JobUILink) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*JobUILink, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringTaskGroupSummary(v map[string]TaskGroupSummary, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + yy3 := &yyv1 + yy3.CodecEncodeSelf(e) + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringTaskGroupSummary(v *map[string]TaskGroupSummary, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 72) + yyv1 = make(map[string]TaskGroupSummary, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 TaskGroupSummary + var yymg1, yymdn1 bool + if yybh1.MapValueReset { + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + if yymg1 { + yymv1 = yyv1[yymk1] + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = TaskGroupSummary{} + } + } else if yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoMultiregionRegion(v []*MultiregionRegion, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoMultiregionRegion(v *[]*MultiregionRegion, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*MultiregionRegion{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*MultiregionRegion, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*MultiregionRegion, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(MultiregionRegion) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*MultiregionRegion, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoNamespace(v []*Namespace, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoNamespace(v *[]*Namespace, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*Namespace{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*Namespace, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*Namespace, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(Namespace) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*Namespace, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringPtrtoNamespace(v map[string]*Namespace, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoNamespace(v *map[string]*Namespace, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*Namespace, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *Namespace + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(Namespace) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encMapstringSlicePtrtoScalingEvent(v map[string][]*ScalingEvent, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoScalingEvent(([]*ScalingEvent)(yyv1), e) + } + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringSlicePtrtoScalingEvent(v *map[string][]*ScalingEvent, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) + yyv1 = make(map[string][]*ScalingEvent, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 []*ScalingEvent + var yymg1, yymdn1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + if yymg1 { + yymv1 = yyv1[yymk1] + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if false { + } else { + h.decSlicePtrtoScalingEvent((*[]*ScalingEvent)(&yymv1), d) + } + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoTask(v []*Task, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoTask(v *[]*Task, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*Task{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*Task, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*Task, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(Task) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*Task, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoService(v []*Service, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoService(v *[]*Service, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*Service{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*Service, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*Service, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(Service) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*Service, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringPtrtoVolumeRequest(v map[string]*VolumeRequest, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoVolumeRequest(v *map[string]*VolumeRequest, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*VolumeRequest, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *VolumeRequest + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(VolumeRequest) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoTemplate(v []*Template, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoTemplate(v *[]*Template, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*Template{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*Template, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*Template, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(Template) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*Template, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoTaskArtifact(v []*TaskArtifact, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoTaskArtifact(v *[]*TaskArtifact, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*TaskArtifact{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*TaskArtifact, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*TaskArtifact, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(TaskArtifact) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*TaskArtifact, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoScalingPolicy(v []*ScalingPolicy, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoScalingPolicy(v *[]*ScalingPolicy, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ScalingPolicy{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ScalingPolicy, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ScalingPolicy, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ScalingPolicy) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ScalingPolicy, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoWorkloadIdentity(v []*WorkloadIdentity, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoWorkloadIdentity(v *[]*WorkloadIdentity, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*WorkloadIdentity{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*WorkloadIdentity, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*WorkloadIdentity, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(WorkloadIdentity) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*WorkloadIdentity, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoAction(v []*Action, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoAction(v *[]*Action, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*Action{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*Action, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*Action, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(Action) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*Action, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoTaskEvent(v []*TaskEvent, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoTaskEvent(v *[]*TaskEvent, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*TaskEvent{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*TaskEvent, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*TaskEvent, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(TaskEvent) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*TaskEvent, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encConstraints(v Constraints, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decConstraints(v *Constraints, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*Constraint{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*Constraint, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*Constraint, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(Constraint) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*Constraint, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoSpreadTarget(v []*SpreadTarget, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoSpreadTarget(v *[]*SpreadTarget, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*SpreadTarget{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*SpreadTarget, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*SpreadTarget, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(SpreadTarget) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*SpreadTarget, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encAffinities(v Affinities, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decAffinities(v *Affinities, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*Affinity{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*Affinity, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*Affinity, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(Affinity) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*Affinity, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringPtrtoDeploymentState(v map[string]*DeploymentState, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoDeploymentState(v *map[string]*DeploymentState, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*DeploymentState, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *DeploymentState + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(DeploymentState) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoRescheduleEvent(v []*RescheduleEvent, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoRescheduleEvent(v *[]*RescheduleEvent, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*RescheduleEvent{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*RescheduleEvent, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*RescheduleEvent, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(RescheduleEvent) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*RescheduleEvent, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringPtrtoResources(v map[string]*Resources, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoResources(v *map[string]*Resources, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*Resources, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *Resources + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(Resources) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encMapstringPtrtoTaskState(v map[string]*TaskState, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoTaskState(v *map[string]*TaskState, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*TaskState, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *TaskState + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(TaskState) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoAllocState(v []*AllocState, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoAllocState(v *[]*AllocState, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*AllocState{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*AllocState, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*AllocState, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(AllocState) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*AllocState, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringfloat64(v map[string]float64, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeFloat64(float64(yyv1)) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringfloat64(v *map[string]float64, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]float64, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 float64 + var yymg1, yymdn1 bool + if yybh1.MapValueReset { + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + if yymg1 { + yymv1 = yyv1[yymk1] + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + yymv1 = (float64)(r.DecodeFloat64()) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = 0 + } + } else if yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoNodeScoreMeta(v []*NodeScoreMeta, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoNodeScoreMeta(v *[]*NodeScoreMeta, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*NodeScoreMeta{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*NodeScoreMeta, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*NodeScoreMeta, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(NodeScoreMeta) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*NodeScoreMeta, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoEvaluationStub(v []*EvaluationStub, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoEvaluationStub(v *[]*EvaluationStub, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*EvaluationStub{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*EvaluationStub, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*EvaluationStub, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(EvaluationStub) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*EvaluationStub, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringbool(v map[string]bool, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(yyv1)) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringbool(v *map[string]bool, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 17) + yyv1 = make(map[string]bool, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 bool + var yymg1, yymdn1 bool + if yybh1.MapValueReset { + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + if yymg1 { + yymv1 = yyv1[yymk1] + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + yymv1 = (bool)(r.DecodeBool()) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = false + } + } else if yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encMapstringSlicePtrtoAllocation(v map[string][]*Allocation, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoAllocation(([]*Allocation)(yyv1), e) + } + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringSlicePtrtoAllocation(v *map[string][]*Allocation, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) + yyv1 = make(map[string][]*Allocation, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 []*Allocation + var yymg1, yymdn1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + if yymg1 { + yymv1 = yyv1[yymk1] + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if false { + } else { + h.decSlicePtrtoAllocation((*[]*Allocation)(&yymv1), d) + } + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encMapstringPtrtoDesiredUpdates(v map[string]*DesiredUpdates, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoDesiredUpdates(v *map[string]*DesiredUpdates, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*DesiredUpdates, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *DesiredUpdates + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(DesiredUpdates) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoACLPolicyListStub(v []*ACLPolicyListStub, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoACLPolicyListStub(v *[]*ACLPolicyListStub, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ACLPolicyListStub{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ACLPolicyListStub, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ACLPolicyListStub, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ACLPolicyListStub) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ACLPolicyListStub, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringPtrtoACLPolicy(v map[string]*ACLPolicy, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoACLPolicy(v *map[string]*ACLPolicy, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*ACLPolicy, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *ACLPolicy + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(ACLPolicy) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoACLPolicy(v []*ACLPolicy, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoACLPolicy(v *[]*ACLPolicy, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ACLPolicy{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ACLPolicy, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ACLPolicy, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ACLPolicy) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ACLPolicy, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoACLTokenRoleLink(v []*ACLTokenRoleLink, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoACLTokenRoleLink(v *[]*ACLTokenRoleLink, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ACLTokenRoleLink{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ACLTokenRoleLink, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ACLTokenRoleLink, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ACLTokenRoleLink) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ACLTokenRoleLink, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoACLTokenListStub(v []*ACLTokenListStub, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoACLTokenListStub(v *[]*ACLTokenListStub, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ACLTokenListStub{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ACLTokenListStub, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ACLTokenListStub, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ACLTokenListStub) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ACLTokenListStub, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encMapstringPtrtoACLToken(v map[string]*ACLToken, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decMapstringPtrtoACLToken(v *map[string]*ACLToken, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) + yyv1 = make(map[string]*ACLToken, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 *ACLToken + var yymg1, yymdn1, yyms1, yymok1 bool + if yybh1.MapValueReset { + yymg1 = true + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + yyms1 = true + if yymg1 { + yymv1, yymok1 = yyv1[yymk1] + if yymok1 { + yyms1 = false + } + } else { + yymv1 = nil + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + if yymv1 == nil { + yymv1 = new(ACLToken) + } + yymv1.CodecDecodeSelf(d) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = nil + } + } else if yyms1 && yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoACLToken(v []*ACLToken, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoACLToken(v *[]*ACLToken, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*ACLToken{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*ACLToken, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*ACLToken, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(ACLToken) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*ACLToken, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encVariableItems(v VariableItems, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteMapStart(len(v)) + for yyk1, yyv1 := range v { + r.WriteMapElemKey() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) + } + } + r.WriteMapElemValue() + if false { + } else { + if z.EncBasicHandle().StringToRaw { + r.EncodeStringBytesRaw(z.BytesView(string(yyv1))) + } else { + r.EncodeStringEnc(codecSelferCcUTF8100, string(yyv1)) + } + } + } + r.WriteMapEnd() +} + +func (x codecSelfer100) decVariableItems(v *VariableItems, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyl1 := r.ReadMapStart() + yybh1 := z.DecBasicHandle() + if yyv1 == nil { + yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 32) + yyv1 = make(map[string]string, yyrl1) + *v = yyv1 + } + var yymk1 string + var yymv1 string + var yymg1, yymdn1 bool + if yybh1.MapValueReset { + } + if yyl1 != 0 { + yyhl1 := yyl1 > 0 + for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { + r.ReadMapElemKey() + if r.TryDecodeAsNil() { + yymk1 = "" + } else { + yymk1 = (string)(r.DecodeString()) + } + + if yymg1 { + yymv1 = yyv1[yymk1] + } + r.ReadMapElemValue() + yymdn1 = false + if r.TryDecodeAsNil() { + yymdn1 = true + } else { + yymv1 = (string)(r.DecodeString()) + } + + if yymdn1 { + if yybh1.DeleteOnNilMapValue { + delete(yyv1, yymk1) + } else { + yyv1[yymk1] = "" + } + } else if yyv1 != nil { + yyv1[yymk1] = yymv1 + } + } + } // else len==0: TODO: Should we clear map entries? + r.ReadMapEnd() +} + +func (x codecSelfer100) encSlicePtrtoVariableMetadata(v []*VariableMetadata, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoVariableMetadata(v *[]*VariableMetadata, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*VariableMetadata{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*VariableMetadata, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*VariableMetadata, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(VariableMetadata) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*VariableMetadata, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoWorkloadIdentityRequest(v []*WorkloadIdentityRequest, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoWorkloadIdentityRequest(v *[]*WorkloadIdentityRequest, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*WorkloadIdentityRequest{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*WorkloadIdentityRequest, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*WorkloadIdentityRequest, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(WorkloadIdentityRequest) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*WorkloadIdentityRequest, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoSignedWorkloadIdentity(v []*SignedWorkloadIdentity, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoSignedWorkloadIdentity(v *[]*SignedWorkloadIdentity, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*SignedWorkloadIdentity{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*SignedWorkloadIdentity, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*SignedWorkloadIdentity, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(SignedWorkloadIdentity) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*SignedWorkloadIdentity, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} + +func (x codecSelfer100) encSlicePtrtoWorkloadIdentityRejection(v []*WorkloadIdentityRejection, e *codec1978.Encoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.WriteArrayStart(len(v)) + for _, yyv1 := range v { + r.WriteArrayElem() + if yyv1 == nil { + r.EncodeNil() + } else { + yyv1.CodecEncodeSelf(e) + } + } + r.WriteArrayEnd() +} + +func (x codecSelfer100) decSlicePtrtoWorkloadIdentityRejection(v *[]*WorkloadIdentityRejection, d *codec1978.Decoder) { + var h codecSelfer100 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1 := *v + yyh1, yyl1 := z.DecSliceHelperStart() + var yyc1 bool + _ = yyc1 + if yyl1 == 0 { + if yyv1 == nil { + yyv1 = []*WorkloadIdentityRejection{} + yyc1 = true + } else if len(yyv1) != 0 { + yyv1 = yyv1[:0] + yyc1 = true + } + } else { + yyhl1 := yyl1 > 0 + var yyrl1 int + _ = yyrl1 + if yyhl1 { + if yyl1 > cap(yyv1) { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + if yyrl1 <= cap(yyv1) { + yyv1 = yyv1[:yyrl1] + } else { + yyv1 = make([]*WorkloadIdentityRejection, yyrl1) + } + yyc1 = true + } else if yyl1 != len(yyv1) { + yyv1 = yyv1[:yyl1] + yyc1 = true + } + } + var yyj1 int + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + if yyj1 == 0 && yyv1 == nil { + if yyhl1 { + yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) + } else { + yyrl1 = 8 + } + yyv1 = make([]*WorkloadIdentityRejection, yyrl1) + yyc1 = true + } + yyh1.ElemContainerState(yyj1) + + var yydb1 bool + if yyj1 >= len(yyv1) { + yyv1 = append(yyv1, nil) + yyc1 = true + + } + if yydb1 { + z.DecSwallow() + } else { + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil + } else { + if yyv1[yyj1] == nil { + yyv1[yyj1] = new(WorkloadIdentityRejection) + } + yyv1[yyj1].CodecDecodeSelf(d) + } + + } + + } + if yyj1 < len(yyv1) { + yyv1 = yyv1[:yyj1] + yyc1 = true + } else if yyj1 == 0 && yyv1 == nil { + yyv1 = make([]*WorkloadIdentityRejection, 0) + yyc1 = true + } + } + yyh1.End() + if yyc1 { + *v = yyv1 + } +} diff --git a/version/version.go b/version/version.go index d5c0c5bfb..bf1ef62d2 100644 --- a/version/version.go +++ b/version/version.go @@ -24,7 +24,7 @@ var ( // A pre-release marker for the version. If this is "" (empty string) // then it means that it is a final release. Otherwise, this is a pre-release // such as "dev" (in development), "beta", "rc1", etc. - VersionPrerelease = "dev" + VersionPrerelease = "" // VersionMetadata is metadata further describing the build type. VersionMetadata = ""