diff --git a/nomad/autopilot_ent.go b/nomad/autopilot_ent.go new file mode 100644 index 00000000000..889f691f9e7 --- /dev/null +++ b/nomad/autopilot_ent.go @@ -0,0 +1,51 @@ +// +build ent + +package nomad + +import ( + "fmt" + + "github.com/hashicorp/consul/agent/consul/autopilot" + "github.com/hashicorp/consul/agent/consul/autopilot_ent" + "github.com/hashicorp/raft" +) + +// AdvancedAutopilotDelegate defines a policy for promoting non-voting servers in a way +// that maintains an odd-numbered voter count while respecting configured redundancy +// zones, servers marked non-voter, and any upgrade migrations to perform. +type AdvancedAutopilotDelegate struct { + AutopilotDelegate + + promoter *autopilot_ent.AdvancedPromoter +} + +func (d *AdvancedAutopilotDelegate) PromoteNonVoters(conf *autopilot.Config, health autopilot.OperatorHealthReply) ([]raft.Server, error) { + minRaftProtocol, err := d.server.autopilot.MinRaftProtocol() + if err != nil { + return nil, fmt.Errorf("error getting server raft protocol versions: %s", err) + } + + // If we don't meet the minimum version for non-voter features, bail early + if minRaftProtocol < 3 { + return nil, nil + } + + return d.promoter.PromoteNonVoters(conf, health) +} + +// getNodeMeta tries to fetch a node's metadata +func (s *Server) getNodeMeta(serverID raft.ServerID) (map[string]string, error) { + meta := make(map[string]string) + for _, member := range s.Members() { + ok, parts := isNomadServer(member) + if !ok || raft.ServerID(parts.ID) != serverID { + continue + } + + meta[AutopilotRZTag] = member.Tags[AutopilotRZTag] + meta[AutopilotVersionTag] = member.Tags[AutopilotVersionTag] + break + } + + return meta, nil +} diff --git a/nomad/autopilot_ent_test.go b/nomad/autopilot_ent_test.go new file mode 100644 index 00000000000..90b10c13e1f --- /dev/null +++ b/nomad/autopilot_ent_test.go @@ -0,0 +1,273 @@ +package nomad + +import ( + "testing" + "time" + + "github.com/hashicorp/consul/agent/consul/autopilot" + "github.com/hashicorp/consul/testutil/retry" + "github.com/hashicorp/nomad/testutil" + "github.com/hashicorp/raft" + "github.com/stretchr/testify/assert" +) + +func TestAdvancedAutopilot_DesignateNonVoter(t *testing.T) { + assert := assert.New(t) + s1 := testServer(t, func(c *Config) { + c.RaftConfig.ProtocolVersion = 3 + }) + defer s1.Shutdown() + + s2 := testServer(t, func(c *Config) { + c.DevDisableBootstrap = true + c.RaftConfig.ProtocolVersion = 3 + }) + defer s2.Shutdown() + + s3 := testServer(t, func(c *Config) { + c.DevDisableBootstrap = true + c.NonVoter = true + c.RaftConfig.ProtocolVersion = 3 + }) + defer s3.Shutdown() + + testutil.WaitForLeader(t, s1.RPC) + + testJoin(t, s1, s2, s3) + retry.Run(t, func(r *retry.R) { r.Check(wantRaft([]*Server{s1, s2, s3})) }) + + // Wait twice the server stabilization threshold to give the server + // time to be promoted + time.Sleep(2 * s1.config.AutopilotConfig.ServerStabilizationTime) + + future := s1.raft.GetConfiguration() + assert.Nil(future.Error()) + + servers := future.Configuration().Servers + + // s2 should be a voter + if !autopilot.IsPotentialVoter(servers[1].Suffrage) || servers[1].ID != s2.config.RaftConfig.LocalID { + t.Fatalf("bad: %v", servers) + } + + // s3 should remain a non-voter + if autopilot.IsPotentialVoter(servers[2].Suffrage) || servers[2].ID != s3.config.RaftConfig.LocalID { + t.Fatalf("bad: %v", servers) + } +} + +func TestAdvancedAutopilot_RedundancyZone(t *testing.T) { + assert := assert.New(t) + s1 := testServer(t, func(c *Config) { + c.RaftConfig.ProtocolVersion = 3 + c.AutopilotConfig.EnableRedundancyZones = true + c.RedundancyZone = "east" + }) + defer s1.Shutdown() + + s2 := testServer(t, func(c *Config) { + c.DevDisableBootstrap = true + c.RaftConfig.ProtocolVersion = 3 + c.RedundancyZone = "west" + }) + defer s2.Shutdown() + + s3 := testServer(t, func(c *Config) { + c.DevDisableBootstrap = true + c.RaftConfig.ProtocolVersion = 3 + c.RedundancyZone = "west-2" + }) + defer s3.Shutdown() + + testutil.WaitForLeader(t, s1.RPC) + + testJoin(t, s1, s2, s3) + retry.Run(t, func(r *retry.R) { r.Check(wantRaft([]*Server{s1, s2, s3})) }) + + // Wait past the stabilization time to give the servers a chance to be promoted + time.Sleep(2*s1.config.AutopilotConfig.ServerStabilizationTime + s1.config.AutopilotInterval) + + // Now s2 and s3 should be voters + { + future := s1.raft.GetConfiguration() + assert.Nil(future.Error()) + servers := future.Configuration().Servers + assert.Equal(3, len(servers)) + // s2 and s3 should be voters now + assert.Equal(raft.Voter, servers[1].Suffrage) + assert.Equal(raft.Voter, servers[2].Suffrage) + } + + // Join s4 + s4 := testServer(t, func(c *Config) { + c.DevDisableBootstrap = true + c.RaftConfig.ProtocolVersion = 3 + c.RedundancyZone = "west-2" + }) + defer s4.Shutdown() + testJoin(t, s1, s4) + time.Sleep(2*s1.config.AutopilotConfig.ServerStabilizationTime + s1.config.AutopilotInterval) + + // s4 should not be a voter yet + { + future := s1.raft.GetConfiguration() + assert.Nil(future.Error()) + servers := future.Configuration().Servers + assert.Equal(raft.Nonvoter, servers[3].Suffrage) + } + + s3.Shutdown() + + // s4 should be a voter now, s3 should be removed + retry.Run(t, func(r *retry.R) { + r.Check(wantRaft([]*Server{s1, s2, s4})) + future := s1.raft.GetConfiguration() + if err := future.Error(); err != nil { + r.Fatal(err) + } + servers := future.Configuration().Servers + for _, s := range servers { + if s.Suffrage != raft.Voter { + r.Fatalf("bad: %v", servers) + } + } + }) +} + +func TestAdvancedAutopilot_UpgradeMigration(t *testing.T) { + s1 := testServer(t, func(c *Config) { + c.RaftConfig.ProtocolVersion = 3 + c.Build = "0.8.0" + }) + defer s1.Shutdown() + + s2 := testServer(t, func(c *Config) { + c.DevDisableBootstrap = true + c.RaftConfig.ProtocolVersion = 3 + c.Build = "0.8.1" + }) + defer s2.Shutdown() + + testutil.WaitForLeader(t, s1.RPC) + testJoin(t, s1, s2) + + // Wait for the migration to complete + retry.Run(t, func(r *retry.R) { + future := s1.raft.GetConfiguration() + if err := future.Error(); err != nil { + r.Fatal(err) + } + for _, s := range future.Configuration().Servers { + switch s.ID { + case raft.ServerID(s1.config.NodeID): + if got, want := s.Suffrage, raft.Nonvoter; got != want { + r.Fatalf("got %v want %v", got, want) + } + + case raft.ServerID(s2.config.NodeID): + if got, want := s.Suffrage, raft.Voter; got != want { + r.Fatalf("got %v want %v", got, want) + } + + default: + r.Fatalf("unexpected server %s", s.ID) + } + } + + if !s2.IsLeader() { + r.Fatal("server 2 should be the leader") + } + }) +} + +func TestAdvancedAutopilot_CustomUpgradeMigration(t *testing.T) { + s1 := testServer(t, func(c *Config) { + c.RaftConfig.ProtocolVersion = 3 + c.AutopilotConfig.EnableCustomUpgrades = true + c.UpgradeVersion = "0.0.1" + }) + defer s1.Shutdown() + + s2 := testServer(t, func(c *Config) { + c.DevDisableBootstrap = true + c.RaftConfig.ProtocolVersion = 3 + c.UpgradeVersion = "0.0.2" + }) + defer s2.Shutdown() + + testutil.WaitForLeader(t, s1.RPC) + testJoin(t, s1, s2) + + // Wait for the migration to complete + retry.Run(t, func(r *retry.R) { + future := s1.raft.GetConfiguration() + if err := future.Error(); err != nil { + r.Fatal(err) + } + for _, s := range future.Configuration().Servers { + switch s.ID { + case raft.ServerID(s1.config.NodeID): + if got, want := s.Suffrage, raft.Nonvoter; got != want { + r.Fatalf("got %v want %v", got, want) + } + + case raft.ServerID(s2.config.NodeID): + if got, want := s.Suffrage, raft.Voter; got != want { + r.Fatalf("got %v want %v", got, want) + } + + default: + r.Fatalf("unexpected server %s", s.ID) + } + } + + if !s2.IsLeader() { + r.Fatal("server 2 should be the leader") + } + }) +} + +func TestAdvancedAutopilot_DisableUpgradeMigration(t *testing.T) { + s1 := testServer(t, func(c *Config) { + c.RaftConfig.ProtocolVersion = 3 + c.AutopilotConfig.DisableUpgradeMigration = true + c.Build = "0.8.0" + }) + defer s1.Shutdown() + + testutil.WaitForLeader(t, s1.RPC) + + s2 := testServer(t, func(c *Config) { + c.DevDisableBootstrap = true + c.RaftConfig.ProtocolVersion = 3 + c.Build = "0.8.0" + }) + defer s2.Shutdown() + + s3 := testServer(t, func(c *Config) { + c.DevDisableBootstrap = true + c.RaftConfig.ProtocolVersion = 3 + c.Build = "0.8.1" + }) + defer s3.Shutdown() + + testJoin(t, s1, s2, s3) + + // Wait for both servers to be added as voters + retry.Run(t, func(r *retry.R) { + future := s1.raft.GetConfiguration() + if err := future.Error(); err != nil { + r.Fatal(err) + } + + for _, s := range future.Configuration().Servers { + if got, want := s.Suffrage, raft.Voter; got != want { + r.Fatalf("got %v want %v", got, want) + } + } + + if !s1.IsLeader() { + r.Fatal("server 1 should be leader") + } + }) +} diff --git a/nomad/server_setup_ent.go b/nomad/server_setup_ent.go index 478c63ebf40..9a38d39e829 100644 --- a/nomad/server_setup_ent.go +++ b/nomad/server_setup_ent.go @@ -2,7 +2,11 @@ package nomad -import "github.com/hashicorp/sentinel/sentinel" +import ( + "github.com/hashicorp/consul/agent/consul/autopilot" + "github.com/hashicorp/consul/agent/consul/autopilot_ent" + "github.com/hashicorp/sentinel/sentinel" +) type EnterpriseState struct { // sentinel is a shared instance of the policy engine @@ -30,6 +34,14 @@ func (s *Server) setupEnterprise(config *Config) error { // Create the Sentinel instance based on the configuration s.sentinel = sentinel.New(sentConf) + + // Set up the enterprise version of autopilot + apDelegate := &AdvancedAutopilotDelegate{ + AutopilotDelegate: AutopilotDelegate{server: s}, + } + apDelegate.promoter = autopilot_ent.NewAdvancedPromoter(s.logger, apDelegate, s.getNodeMeta) + s.autopilot = autopilot.NewAutopilot(s.logger, apDelegate, config.AutopilotInterval, config.ServerHealthInterval) + return nil } diff --git a/nomad/server_setup_pro.go b/nomad/server_setup_pro.go index f30beaadb69..3679b84085d 100644 --- a/nomad/server_setup_pro.go +++ b/nomad/server_setup_pro.go @@ -2,9 +2,17 @@ package nomad +import ( + "github.com/hashicorp/consul/agent/consul/autopilot" +) + type EnterpriseState struct{} func (s *Server) setupEnterprise(config *Config) error { + // Set up the OSS version of autopilot + apDelegate := &AutopilotDelegate{s} + s.autopilot = autopilot.NewAutopilot(s.logger, apDelegate, config.AutopilotInterval, config.ServerHealthInterval) + return nil } diff --git a/nomad/server_test.go b/nomad/server_test.go index bfe4fbf4ba2..6a6cbbf3ed7 100644 --- a/nomad/server_test.go +++ b/nomad/server_test.go @@ -79,6 +79,7 @@ func testServer(t *testing.T, cb func(*Config)) *Server { // Tighten the autopilot timing config.AutopilotConfig.ServerStabilizationTime = 100 * time.Millisecond + config.AutopilotConfig.LastContactThreshold = 200 * time.Millisecond config.ServerHealthInterval = 50 * time.Millisecond config.AutopilotInterval = 100 * time.Millisecond diff --git a/nomad/structs/structs.generated.go b/nomad/structs/structs.generated.go deleted file mode 100644 index d6cf62887f6..00000000000 --- a/nomad/structs/structs.generated.go +++ /dev/null @@ -1,77269 +0,0 @@ -// ************************************************************ -// DO NOT EDIT. -// THIS FILE IS AUTO-GENERATED BY codecgen. -// ************************************************************ - -package structs - -import ( - "errors" - "fmt" - codec1978 "github.com/ugorji/go/codec" - net "net" - "reflect" - "runtime" - time "time" -) - -const ( - // ----- content types ---- - codecSelferC_UTF8100 = 1 - codecSelferC_RAW100 = 0 - // ----- value types used ---- - codecSelferValueTypeArray100 = 10 - codecSelferValueTypeMap100 = 9 - // ----- containerStateValues ---- - codecSelfer_containerMapKey100 = 2 - codecSelfer_containerMapValue100 = 3 - codecSelfer_containerMapEnd100 = 4 - codecSelfer_containerArrayElem100 = 6 - codecSelfer_containerArrayEnd100 = 7 -) - -var ( - codecSelferBitsize100 = uint8(reflect.TypeOf(uint(0)).Bits()) - codecSelferOnlyMapOrArrayEncodeToStructErr100 = errors.New(`only encoded map or array can be decoded into a struct`) -) - -type codecSelfer100 struct{} - -func init() { - if codec1978.GenVersion != 5 { - _, file, _, _ := runtime.Caller(0) - err := fmt.Errorf("codecgen version mismatch: current: %v, need %v. Re-generate file: %v", - 5, codec1978.GenVersion, file) - panic(err) - } - if false { // reference the types, but skip this branch at build/run time - var v0 net.IP - var v1 time.Duration - _, _ = v0, v1 - } -} - -func (x MessageType) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeUint(uint64(x)) - } -} - -func (x *MessageType) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*uint8)(x)) = uint8(r.DecodeUint(8)) - } -} - -func (x Context) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x)) - } -} - -func (x *Context) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *NamespacedID) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(2) - } else { - yynn2 = 2 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *NamespacedID) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *NamespacedID) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "ID": - if r.TryDecodeAsNil() { - x.ID = "" - } else { - yyv4 := &x.ID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv6 := &x.Namespace - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *NamespacedID) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ID = "" - } else { - yyv9 := &x.ID - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - *((*string)(yyv9)) = r.DecodeString() - } - } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv11 := &x.Namespace - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - *((*string)(yyv11)) = r.DecodeString() - } - } - for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj8-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *QueryOptions) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [7]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(7) - } else { - yynn2 = 7 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *QueryOptions) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *QueryOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv4 := &x.Region - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv6 := &x.Namespace - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv8 := &x.MinQueryIndex - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv10 := &x.MaxQueryTime - yym11 := z.DecBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.DecExt(yyv10) { - } else { - *((*int64)(yyv10)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv12 := &x.AllowStale - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*bool)(yyv12)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv14 := &x.Prefix - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*string)(yyv14)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv16 := &x.AuthToken - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *QueryOptions) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv19 := &x.Region - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv21 := &x.Namespace - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv23 := &x.MinQueryIndex - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*uint64)(yyv23)) = uint64(r.DecodeUint(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv25 := &x.MaxQueryTime - yym26 := z.DecBinary() - _ = yym26 - if false { - } else if z.HasExtensions() && z.DecExt(yyv25) { - } else { - *((*int64)(yyv25)) = int64(r.DecodeInt(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv27 := &x.AllowStale - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*bool)(yyv27)) = r.DecodeBool() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv29 := &x.Prefix - yym30 := z.DecBinary() - _ = yym30 - if false { - } else { - *((*string)(yyv29)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv31 := &x.AuthToken - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*string)(yyv31)) = r.DecodeString() - } - } - for { - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj18-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *WriteRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(3) - } else { - yynn2 = 3 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *WriteRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *WriteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv4 := &x.Region - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv6 := &x.Namespace - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv8 := &x.AuthToken - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *WriteRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv11 := &x.Region - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - *((*string)(yyv11)) = r.DecodeString() - } - } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv13 := &x.Namespace - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*string)(yyv13)) = r.DecodeString() - } - } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv15 := &x.AuthToken - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj10-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *QueryMeta) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(3) - } else { - yynn2 = 3 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *QueryMeta) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *QueryMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv4 := &x.Index - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*uint64)(yyv4)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv6 := &x.LastContact - yym7 := z.DecBinary() - _ = yym7 - if false { - } else if z.HasExtensions() && z.DecExt(yyv6) { - } else { - *((*int64)(yyv6)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv8 := &x.KnownLeader - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*bool)(yyv8)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *QueryMeta) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv11 := &x.Index - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - *((*uint64)(yyv11)) = uint64(r.DecodeUint(64)) - } - } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv13 := &x.LastContact - yym14 := z.DecBinary() - _ = yym14 - if false { - } else if z.HasExtensions() && z.DecExt(yyv13) { - } else { - *((*int64)(yyv13)) = int64(r.DecodeInt(64)) - } - } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv15 := &x.KnownLeader - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*bool)(yyv15)) = r.DecodeBool() - } - } - for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj10-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *WriteMeta) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(1) - } else { - yynn2 = 1 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *WriteMeta) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *WriteMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv4 := &x.Index - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*uint64)(yyv4)) = uint64(r.DecodeUint(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *WriteMeta) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv7 := &x.Index - yym8 := z.DecBinary() - _ = yym8 - if false { - } else { - *((*uint64)(yyv7)) = uint64(r.DecodeUint(64)) - } - } - for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj6-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *NodeRegisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Node == nil { - r.EncodeNil() - } else { - x.Node.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Node")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Node == nil { - r.EncodeNil() - } else { - x.Node.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *NodeRegisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *NodeRegisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Node": - if r.TryDecodeAsNil() { - if x.Node != nil { - x.Node = nil - } - } else { - if x.Node == nil { - x.Node = new(Node) - } - x.Node.CodecDecodeSelf(d) - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv5 := &x.Region - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*string)(yyv5)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv7 := &x.Namespace - yym8 := z.DecBinary() - _ = yym8 - if false { - } else { - *((*string)(yyv7)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv9 := &x.AuthToken - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - *((*string)(yyv9)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *NodeRegisterRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Node != nil { - x.Node = nil - } - } else { - if x.Node == nil { - x.Node = new(Node) - } - x.Node.CodecDecodeSelf(d) - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv13 := &x.Region - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*string)(yyv13)) = r.DecodeString() - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv15 := &x.Namespace - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv17 := &x.AuthToken - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj11-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *NodeDeregisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.NodeID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("NodeID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.NodeID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *NodeDeregisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *NodeDeregisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "NodeID": - if r.TryDecodeAsNil() { - x.NodeID = "" - } else { - yyv4 := &x.NodeID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv10 := &x.AuthToken - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *NodeDeregisterRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.NodeID = "" - } else { - yyv13 := &x.NodeID - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*string)(yyv13)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv15 := &x.Region - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv17 := &x.Namespace - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv19 := &x.AuthToken - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *NodeServerInfo) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.RPCAdvertiseAddr)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("RPCAdvertiseAddr")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.RPCAdvertiseAddr)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeInt(int64(x.RPCMajorVersion)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("RPCMajorVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeInt(int64(x.RPCMajorVersion)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeInt(int64(x.RPCMinorVersion)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("RPCMinorVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeInt(int64(x.RPCMinorVersion)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Datacenter)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Datacenter")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Datacenter)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *NodeServerInfo) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *NodeServerInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "RPCAdvertiseAddr": - if r.TryDecodeAsNil() { - x.RPCAdvertiseAddr = "" - } else { - yyv4 := &x.RPCAdvertiseAddr - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "RPCMajorVersion": - if r.TryDecodeAsNil() { - x.RPCMajorVersion = 0 - } else { - yyv6 := &x.RPCMajorVersion - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*int32)(yyv6)) = int32(r.DecodeInt(32)) - } - } - case "RPCMinorVersion": - if r.TryDecodeAsNil() { - x.RPCMinorVersion = 0 - } else { - yyv8 := &x.RPCMinorVersion - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*int32)(yyv8)) = int32(r.DecodeInt(32)) - } - } - case "Datacenter": - if r.TryDecodeAsNil() { - x.Datacenter = "" - } else { - yyv10 := &x.Datacenter - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *NodeServerInfo) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.RPCAdvertiseAddr = "" - } else { - yyv13 := &x.RPCAdvertiseAddr - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*string)(yyv13)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.RPCMajorVersion = 0 - } else { - yyv15 := &x.RPCMajorVersion - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*int32)(yyv15)) = int32(r.DecodeInt(32)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.RPCMinorVersion = 0 - } else { - yyv17 := &x.RPCMinorVersion - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*int32)(yyv17)) = int32(r.DecodeInt(32)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Datacenter = "" - } else { - yyv19 := &x.Datacenter - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *NodeUpdateStatusRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [5]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(5) - } else { - yynn2 = 5 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.NodeID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("NodeID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.NodeID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Status)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Status")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Status)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *NodeUpdateStatusRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *NodeUpdateStatusRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "NodeID": - if r.TryDecodeAsNil() { - x.NodeID = "" - } else { - yyv4 := &x.NodeID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Status": - if r.TryDecodeAsNil() { - x.Status = "" - } else { - yyv6 := &x.Status - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv8 := &x.Region - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv10 := &x.Namespace - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv12 := &x.AuthToken - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*string)(yyv12)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *NodeUpdateStatusRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.NodeID = "" - } else { - yyv15 := &x.NodeID - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Status = "" - } else { - yyv17 := &x.Status - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv19 := &x.Region - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv21 := &x.Namespace - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv23 := &x.AuthToken - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - for { - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj14-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *NodeUpdateDrainRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [5]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(5) - } else { - yynn2 = 5 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.NodeID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("NodeID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.NodeID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeBool(bool(x.Drain)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Drain")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeBool(bool(x.Drain)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *NodeUpdateDrainRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *NodeUpdateDrainRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "NodeID": - if r.TryDecodeAsNil() { - x.NodeID = "" - } else { - yyv4 := &x.NodeID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Drain": - if r.TryDecodeAsNil() { - x.Drain = false - } else { - yyv6 := &x.Drain - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*bool)(yyv6)) = r.DecodeBool() - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv8 := &x.Region - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv10 := &x.Namespace - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv12 := &x.AuthToken - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*string)(yyv12)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *NodeUpdateDrainRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj14 int - var yyb14 bool - var yyhl14 bool = l >= 0 - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.NodeID = "" - } else { - yyv15 := &x.NodeID - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Drain = false - } else { - yyv17 := &x.Drain - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*bool)(yyv17)) = r.DecodeBool() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv19 := &x.Region - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv21 := &x.Namespace - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv23 := &x.AuthToken - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - for { - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj14-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *NodeEvaluateRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.NodeID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("NodeID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.NodeID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *NodeEvaluateRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *NodeEvaluateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "NodeID": - if r.TryDecodeAsNil() { - x.NodeID = "" - } else { - yyv4 := &x.NodeID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv10 := &x.AuthToken - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *NodeEvaluateRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.NodeID = "" - } else { - yyv13 := &x.NodeID - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*string)(yyv13)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv15 := &x.Region - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv17 := &x.Namespace - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv19 := &x.AuthToken - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *NodeSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [9]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(9) - } else { - yynn2 = 9 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.NodeID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("NodeID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.NodeID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.SecretID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("SecretID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.SecretID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym28 := z.EncBinary() - _ = yym28 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym29 := z.EncBinary() - _ = yym29 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *NodeSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *NodeSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "NodeID": - if r.TryDecodeAsNil() { - x.NodeID = "" - } else { - yyv4 := &x.NodeID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "SecretID": - if r.TryDecodeAsNil() { - x.SecretID = "" - } else { - yyv6 := &x.SecretID - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv8 := &x.Region - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv10 := &x.Namespace - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv12 := &x.MinQueryIndex - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*uint64)(yyv12)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv14 := &x.MaxQueryTime - yym15 := z.DecBinary() - _ = yym15 - if false { - } else if z.HasExtensions() && z.DecExt(yyv14) { - } else { - *((*int64)(yyv14)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv16 := &x.AllowStale - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*bool)(yyv16)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv18 := &x.Prefix - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*string)(yyv18)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv20 := &x.AuthToken - yym21 := z.DecBinary() - _ = yym21 - if false { - } else { - *((*string)(yyv20)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *NodeSpecificRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.NodeID = "" - } else { - yyv23 := &x.NodeID - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l - } else { - yyb22 = r.CheckBreak() - } - if yyb22 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.SecretID = "" - } else { - yyv25 := &x.SecretID - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*string)(yyv25)) = r.DecodeString() - } - } - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l - } else { - yyb22 = r.CheckBreak() - } - if yyb22 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv27 := &x.Region - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*string)(yyv27)) = r.DecodeString() - } - } - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l - } else { - yyb22 = r.CheckBreak() - } - if yyb22 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv29 := &x.Namespace - yym30 := z.DecBinary() - _ = yym30 - if false { - } else { - *((*string)(yyv29)) = r.DecodeString() - } - } - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l - } else { - yyb22 = r.CheckBreak() - } - if yyb22 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv31 := &x.MinQueryIndex - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*uint64)(yyv31)) = uint64(r.DecodeUint(64)) - } - } - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l - } else { - yyb22 = r.CheckBreak() - } - if yyb22 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv33 := &x.MaxQueryTime - yym34 := z.DecBinary() - _ = yym34 - if false { - } else if z.HasExtensions() && z.DecExt(yyv33) { - } else { - *((*int64)(yyv33)) = int64(r.DecodeInt(64)) - } - } - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l - } else { - yyb22 = r.CheckBreak() - } - if yyb22 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv35 := &x.AllowStale - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - *((*bool)(yyv35)) = r.DecodeBool() - } - } - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l - } else { - yyb22 = r.CheckBreak() - } - if yyb22 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv37 := &x.Prefix - yym38 := z.DecBinary() - _ = yym38 - if false { - } else { - *((*string)(yyv37)) = r.DecodeString() - } - } - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l - } else { - yyb22 = r.CheckBreak() - } - if yyb22 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv39 := &x.AuthToken - yym40 := z.DecBinary() - _ = yym40 - if false { - } else { - *((*string)(yyv39)) = r.DecodeString() - } - } - for { - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l - } else { - yyb22 = r.CheckBreak() - } - if yyb22 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj22-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *SearchResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [5]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(5) - } else { - yynn2 = 5 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Matches == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encMapContextSlicestring((map[Context][]string)(x.Matches), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Matches")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Matches == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encMapContextSlicestring((map[Context][]string)(x.Matches), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Truncations == nil { - r.EncodeNil() - } else { - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - h.encMapContextbool((map[Context]bool)(x.Truncations), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Truncations")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Truncations == nil { - r.EncodeNil() - } else { - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - h.encMapContextbool((map[Context]bool)(x.Truncations), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *SearchResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *SearchResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Matches": - if r.TryDecodeAsNil() { - x.Matches = nil - } else { - yyv4 := &x.Matches - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decMapContextSlicestring((*map[Context][]string)(yyv4), d) - } - } - case "Truncations": - if r.TryDecodeAsNil() { - x.Truncations = nil - } else { - yyv6 := &x.Truncations - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - h.decMapContextbool((*map[Context]bool)(yyv6), d) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv8 := &x.Index - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv10 := &x.LastContact - yym11 := z.DecBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.DecExt(yyv10) { - } else { - *((*int64)(yyv10)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv12 := &x.KnownLeader - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*bool)(yyv12)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *SearchResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Matches = nil - } else { - yyv15 := &x.Matches - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - h.decMapContextSlicestring((*map[Context][]string)(yyv15), d) - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Truncations = nil - } else { - yyv17 := &x.Truncations - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - h.decMapContextbool((*map[Context]bool)(yyv17), d) - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv19 := &x.Index - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*uint64)(yyv19)) = uint64(r.DecodeUint(64)) - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv21 := &x.LastContact - yym22 := z.DecBinary() - _ = yym22 - if false { - } else if z.HasExtensions() && z.DecExt(yyv21) { - } else { - *((*int64)(yyv21)) = int64(r.DecodeInt(64)) - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv23 := &x.KnownLeader - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*bool)(yyv23)) = r.DecodeBool() - } - } - for { - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj14-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *SearchRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(8) - } else { - yynn2 = 8 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - x.Context.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Context")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - x.Context.CodecEncodeSelf(e) - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *SearchRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *SearchRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv4 := &x.Prefix - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Context": - if r.TryDecodeAsNil() { - x.Context = "" - } else { - yyv6 := &x.Context - yyv6.CodecDecodeSelf(d) - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv7 := &x.Region - yym8 := z.DecBinary() - _ = yym8 - if false { - } else { - *((*string)(yyv7)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv9 := &x.Namespace - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - *((*string)(yyv9)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv11 := &x.MinQueryIndex - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - *((*uint64)(yyv11)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv13 := &x.MaxQueryTime - yym14 := z.DecBinary() - _ = yym14 - if false { - } else if z.HasExtensions() && z.DecExt(yyv13) { - } else { - *((*int64)(yyv13)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv15 := &x.AllowStale - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*bool)(yyv15)) = r.DecodeBool() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv17 := &x.AuthToken - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *SearchRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv20 := &x.Prefix - yym21 := z.DecBinary() - _ = yym21 - if false { - } else { - *((*string)(yyv20)) = r.DecodeString() - } - } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l - } else { - yyb19 = r.CheckBreak() - } - if yyb19 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Context = "" - } else { - yyv22 := &x.Context - yyv22.CodecDecodeSelf(d) - } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l - } else { - yyb19 = r.CheckBreak() - } - if yyb19 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv23 := &x.Region - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l - } else { - yyb19 = r.CheckBreak() - } - if yyb19 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv25 := &x.Namespace - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*string)(yyv25)) = r.DecodeString() - } - } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l - } else { - yyb19 = r.CheckBreak() - } - if yyb19 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv27 := &x.MinQueryIndex - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*uint64)(yyv27)) = uint64(r.DecodeUint(64)) - } - } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l - } else { - yyb19 = r.CheckBreak() - } - if yyb19 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv29 := &x.MaxQueryTime - yym30 := z.DecBinary() - _ = yym30 - if false { - } else if z.HasExtensions() && z.DecExt(yyv29) { - } else { - *((*int64)(yyv29)) = int64(r.DecodeInt(64)) - } - } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l - } else { - yyb19 = r.CheckBreak() - } - if yyb19 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv31 := &x.AllowStale - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*bool)(yyv31)) = r.DecodeBool() - } - } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l - } else { - yyb19 = r.CheckBreak() - } - if yyb19 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv33 := &x.AuthToken - yym34 := z.DecBinary() - _ = yym34 - if false { - } else { - *((*string)(yyv33)) = r.DecodeString() - } - } - for { - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l - } else { - yyb19 = r.CheckBreak() - } - if yyb19 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj19-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *JobRegisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [7]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(7) - } else { - yynn2 = 7 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Job == nil { - r.EncodeNil() - } else { - x.Job.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Job")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Job == nil { - r.EncodeNil() - } else { - x.Job.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeBool(bool(x.EnforceIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("EnforceIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeBool(bool(x.EnforceIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.JobModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("JobModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(x.JobModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.PolicyOverride)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("PolicyOverride")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.PolicyOverride)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *JobRegisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *JobRegisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Job": - if r.TryDecodeAsNil() { - if x.Job != nil { - x.Job = nil - } - } else { - if x.Job == nil { - x.Job = new(Job) - } - x.Job.CodecDecodeSelf(d) - } - case "EnforceIndex": - if r.TryDecodeAsNil() { - x.EnforceIndex = false - } else { - yyv5 := &x.EnforceIndex - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*bool)(yyv5)) = r.DecodeBool() - } - } - case "JobModifyIndex": - if r.TryDecodeAsNil() { - x.JobModifyIndex = 0 - } else { - yyv7 := &x.JobModifyIndex - yym8 := z.DecBinary() - _ = yym8 - if false { - } else { - *((*uint64)(yyv7)) = uint64(r.DecodeUint(64)) - } - } - case "PolicyOverride": - if r.TryDecodeAsNil() { - x.PolicyOverride = false - } else { - yyv9 := &x.PolicyOverride - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - *((*bool)(yyv9)) = r.DecodeBool() - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv11 := &x.Region - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - *((*string)(yyv11)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv13 := &x.Namespace - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*string)(yyv13)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv15 := &x.AuthToken - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *JobRegisterRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Job != nil { - x.Job = nil - } - } else { - if x.Job == nil { - x.Job = new(Job) - } - x.Job.CodecDecodeSelf(d) - } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = r.CheckBreak() - } - if yyb17 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.EnforceIndex = false - } else { - yyv19 := &x.EnforceIndex - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*bool)(yyv19)) = r.DecodeBool() - } - } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = r.CheckBreak() - } - if yyb17 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.JobModifyIndex = 0 - } else { - yyv21 := &x.JobModifyIndex - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*uint64)(yyv21)) = uint64(r.DecodeUint(64)) - } - } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = r.CheckBreak() - } - if yyb17 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.PolicyOverride = false - } else { - yyv23 := &x.PolicyOverride - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*bool)(yyv23)) = r.DecodeBool() - } - } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = r.CheckBreak() - } - if yyb17 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv25 := &x.Region - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*string)(yyv25)) = r.DecodeString() - } - } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = r.CheckBreak() - } - if yyb17 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv27 := &x.Namespace - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*string)(yyv27)) = r.DecodeString() - } - } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = r.CheckBreak() - } - if yyb17 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv29 := &x.AuthToken - yym30 := z.DecBinary() - _ = yym30 - if false { - } else { - *((*string)(yyv29)) = r.DecodeString() - } - } - for { - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = r.CheckBreak() - } - if yyb17 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj17-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *JobDeregisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [5]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(5) - } else { - yynn2 = 5 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.JobID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("JobID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.JobID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeBool(bool(x.Purge)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Purge")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeBool(bool(x.Purge)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *JobDeregisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *JobDeregisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "JobID": - if r.TryDecodeAsNil() { - x.JobID = "" - } else { - yyv4 := &x.JobID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Purge": - if r.TryDecodeAsNil() { - x.Purge = false - } else { - yyv6 := &x.Purge - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*bool)(yyv6)) = r.DecodeBool() - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv8 := &x.Region - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv10 := &x.Namespace - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv12 := &x.AuthToken - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*string)(yyv12)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *JobDeregisterRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.JobID = "" - } else { - yyv15 := &x.JobID - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Purge = false - } else { - yyv17 := &x.Purge - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*bool)(yyv17)) = r.DecodeBool() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv19 := &x.Region - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv21 := &x.Namespace - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv23 := &x.AuthToken - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - for { - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj14-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *JobEvaluateRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.JobID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("JobID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.JobID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *JobEvaluateRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *JobEvaluateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "JobID": - if r.TryDecodeAsNil() { - x.JobID = "" - } else { - yyv4 := &x.JobID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv10 := &x.AuthToken - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *JobEvaluateRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.JobID = "" - } else { - yyv13 := &x.JobID - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*string)(yyv13)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv15 := &x.Region - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv17 := &x.Namespace - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv19 := &x.AuthToken - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *JobSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [9]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(9) - } else { - yynn2 = 9 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.JobID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("JobID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.JobID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeBool(bool(x.AllAllocs)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllAllocs")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeBool(bool(x.AllAllocs)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym28 := z.EncBinary() - _ = yym28 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym29 := z.EncBinary() - _ = yym29 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *JobSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *JobSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "JobID": - if r.TryDecodeAsNil() { - x.JobID = "" - } else { - yyv4 := &x.JobID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "AllAllocs": - if r.TryDecodeAsNil() { - x.AllAllocs = false - } else { - yyv6 := &x.AllAllocs - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*bool)(yyv6)) = r.DecodeBool() - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv8 := &x.Region - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv10 := &x.Namespace - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv12 := &x.MinQueryIndex - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*uint64)(yyv12)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv14 := &x.MaxQueryTime - yym15 := z.DecBinary() - _ = yym15 - if false { - } else if z.HasExtensions() && z.DecExt(yyv14) { - } else { - *((*int64)(yyv14)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv16 := &x.AllowStale - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*bool)(yyv16)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv18 := &x.Prefix - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*string)(yyv18)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv20 := &x.AuthToken - yym21 := z.DecBinary() - _ = yym21 - if false { - } else { - *((*string)(yyv20)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *JobSpecificRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.JobID = "" - } else { - yyv23 := &x.JobID - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l - } else { - yyb22 = r.CheckBreak() - } - if yyb22 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllAllocs = false - } else { - yyv25 := &x.AllAllocs - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*bool)(yyv25)) = r.DecodeBool() - } - } - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l - } else { - yyb22 = r.CheckBreak() - } - if yyb22 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv27 := &x.Region - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*string)(yyv27)) = r.DecodeString() - } - } - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l - } else { - yyb22 = r.CheckBreak() - } - if yyb22 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv29 := &x.Namespace - yym30 := z.DecBinary() - _ = yym30 - if false { - } else { - *((*string)(yyv29)) = r.DecodeString() - } - } - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l - } else { - yyb22 = r.CheckBreak() - } - if yyb22 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv31 := &x.MinQueryIndex - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*uint64)(yyv31)) = uint64(r.DecodeUint(64)) - } - } - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l - } else { - yyb22 = r.CheckBreak() - } - if yyb22 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv33 := &x.MaxQueryTime - yym34 := z.DecBinary() - _ = yym34 - if false { - } else if z.HasExtensions() && z.DecExt(yyv33) { - } else { - *((*int64)(yyv33)) = int64(r.DecodeInt(64)) - } - } - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l - } else { - yyb22 = r.CheckBreak() - } - if yyb22 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv35 := &x.AllowStale - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - *((*bool)(yyv35)) = r.DecodeBool() - } - } - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l - } else { - yyb22 = r.CheckBreak() - } - if yyb22 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv37 := &x.Prefix - yym38 := z.DecBinary() - _ = yym38 - if false { - } else { - *((*string)(yyv37)) = r.DecodeString() - } - } - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l - } else { - yyb22 = r.CheckBreak() - } - if yyb22 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv39 := &x.AuthToken - yym40 := z.DecBinary() - _ = yym40 - if false { - } else { - *((*string)(yyv39)) = r.DecodeString() - } - } - for { - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l - } else { - yyb22 = r.CheckBreak() - } - if yyb22 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj22-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *JobListRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [7]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(7) - } else { - yynn2 = 7 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *JobListRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *JobListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv4 := &x.Region - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv6 := &x.Namespace - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv8 := &x.MinQueryIndex - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv10 := &x.MaxQueryTime - yym11 := z.DecBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.DecExt(yyv10) { - } else { - *((*int64)(yyv10)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv12 := &x.AllowStale - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*bool)(yyv12)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv14 := &x.Prefix - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*string)(yyv14)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv16 := &x.AuthToken - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv19 := &x.Region - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv21 := &x.Namespace - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv23 := &x.MinQueryIndex - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*uint64)(yyv23)) = uint64(r.DecodeUint(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv25 := &x.MaxQueryTime - yym26 := z.DecBinary() - _ = yym26 - if false { - } else if z.HasExtensions() && z.DecExt(yyv25) { - } else { - *((*int64)(yyv25)) = int64(r.DecodeInt(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv27 := &x.AllowStale - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*bool)(yyv27)) = r.DecodeBool() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv29 := &x.Prefix - yym30 := z.DecBinary() - _ = yym30 - if false { - } else { - *((*string)(yyv29)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv31 := &x.AuthToken - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*string)(yyv31)) = r.DecodeString() - } - } - for { - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj18-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *JobPlanRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(6) - } else { - yynn2 = 6 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Job == nil { - r.EncodeNil() - } else { - x.Job.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Job")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Job == nil { - r.EncodeNil() - } else { - x.Job.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeBool(bool(x.Diff)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Diff")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeBool(bool(x.Diff)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeBool(bool(x.PolicyOverride)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("PolicyOverride")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeBool(bool(x.PolicyOverride)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *JobPlanRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *JobPlanRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Job": - if r.TryDecodeAsNil() { - if x.Job != nil { - x.Job = nil - } - } else { - if x.Job == nil { - x.Job = new(Job) - } - x.Job.CodecDecodeSelf(d) - } - case "Diff": - if r.TryDecodeAsNil() { - x.Diff = false - } else { - yyv5 := &x.Diff - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*bool)(yyv5)) = r.DecodeBool() - } - } - case "PolicyOverride": - if r.TryDecodeAsNil() { - x.PolicyOverride = false - } else { - yyv7 := &x.PolicyOverride - yym8 := z.DecBinary() - _ = yym8 - if false { - } else { - *((*bool)(yyv7)) = r.DecodeBool() - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv9 := &x.Region - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - *((*string)(yyv9)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv11 := &x.Namespace - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - *((*string)(yyv11)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv13 := &x.AuthToken - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*string)(yyv13)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *JobPlanRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Job != nil { - x.Job = nil - } - } else { - if x.Job == nil { - x.Job = new(Job) - } - x.Job.CodecDecodeSelf(d) - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Diff = false - } else { - yyv17 := &x.Diff - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*bool)(yyv17)) = r.DecodeBool() - } - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.PolicyOverride = false - } else { - yyv19 := &x.PolicyOverride - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*bool)(yyv19)) = r.DecodeBool() - } - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv21 := &x.Region - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv23 := &x.Namespace - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv25 := &x.AuthToken - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*string)(yyv25)) = r.DecodeString() - } - } - for { - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj15-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *JobSummaryRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(8) - } else { - yynn2 = 8 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.JobID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("JobID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.JobID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *JobSummaryRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *JobSummaryRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "JobID": - if r.TryDecodeAsNil() { - x.JobID = "" - } else { - yyv4 := &x.JobID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv10 := &x.MinQueryIndex - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv12 := &x.MaxQueryTime - yym13 := z.DecBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.DecExt(yyv12) { - } else { - *((*int64)(yyv12)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv14 := &x.AllowStale - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*bool)(yyv14)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv16 := &x.Prefix - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv18 := &x.AuthToken - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*string)(yyv18)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *JobSummaryRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.JobID = "" - } else { - yyv21 := &x.JobID - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv23 := &x.Region - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv25 := &x.Namespace - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*string)(yyv25)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv27 := &x.MinQueryIndex - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*uint64)(yyv27)) = uint64(r.DecodeUint(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv29 := &x.MaxQueryTime - yym30 := z.DecBinary() - _ = yym30 - if false { - } else if z.HasExtensions() && z.DecExt(yyv29) { - } else { - *((*int64)(yyv29)) = int64(r.DecodeInt(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv31 := &x.AllowStale - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*bool)(yyv31)) = r.DecodeBool() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv33 := &x.Prefix - yym34 := z.DecBinary() - _ = yym34 - if false { - } else { - *((*string)(yyv33)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv35 := &x.AuthToken - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - *((*string)(yyv35)) = r.DecodeString() - } - } - for { - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj20-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *JobDispatchRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(6) - } else { - yynn2 = 6 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.JobID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("JobID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.JobID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Payload == nil { - r.EncodeNil() - } else { - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW100, []byte(x.Payload)) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Payload")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Payload == nil { - r.EncodeNil() - } else { - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW100, []byte(x.Payload)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Meta == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - z.F.EncMapStringStringV(x.Meta, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Meta")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Meta == nil { - r.EncodeNil() - } else { - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - z.F.EncMapStringStringV(x.Meta, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *JobDispatchRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *JobDispatchRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "JobID": - if r.TryDecodeAsNil() { - x.JobID = "" - } else { - yyv4 := &x.JobID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Payload": - if r.TryDecodeAsNil() { - x.Payload = nil - } else { - yyv6 := &x.Payload - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *yyv6 = r.DecodeBytes(*(*[]byte)(yyv6), false, false) - } - } - case "Meta": - if r.TryDecodeAsNil() { - x.Meta = nil - } else { - yyv8 := &x.Meta - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - z.F.DecMapStringStringX(yyv8, false, d) - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv10 := &x.Region - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv12 := &x.Namespace - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*string)(yyv12)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv14 := &x.AuthToken - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*string)(yyv14)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.JobID = "" - } else { - yyv17 := &x.JobID - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Payload = nil - } else { - yyv19 := &x.Payload - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *yyv19 = r.DecodeBytes(*(*[]byte)(yyv19), false, false) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Meta = nil - } else { - yyv21 := &x.Meta - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - z.F.DecMapStringStringX(yyv21, false, d) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv23 := &x.Region - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv25 := &x.Namespace - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*string)(yyv25)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv27 := &x.AuthToken - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*string)(yyv27)) = r.DecodeString() - } - } - for { - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj16-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *JobValidateRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Job == nil { - r.EncodeNil() - } else { - x.Job.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Job")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Job == nil { - r.EncodeNil() - } else { - x.Job.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *JobValidateRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *JobValidateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Job": - if r.TryDecodeAsNil() { - if x.Job != nil { - x.Job = nil - } - } else { - if x.Job == nil { - x.Job = new(Job) - } - x.Job.CodecDecodeSelf(d) - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv5 := &x.Region - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*string)(yyv5)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv7 := &x.Namespace - yym8 := z.DecBinary() - _ = yym8 - if false { - } else { - *((*string)(yyv7)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv9 := &x.AuthToken - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - *((*string)(yyv9)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *JobValidateRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Job != nil { - x.Job = nil - } - } else { - if x.Job == nil { - x.Job = new(Job) - } - x.Job.CodecDecodeSelf(d) - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv13 := &x.Region - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*string)(yyv13)) = r.DecodeString() - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv15 := &x.Namespace - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv17 := &x.AuthToken - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj11-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *JobRevertRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(6) - } else { - yynn2 = 6 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.JobID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("JobID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.JobID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.JobVersion)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("JobVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.JobVersion)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.EnforcePriorVersion == nil { - r.EncodeNil() - } else { - yy10 := *x.EnforcePriorVersion - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(yy10)) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("EnforcePriorVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.EnforcePriorVersion == nil { - r.EncodeNil() - } else { - yy12 := *x.EnforcePriorVersion - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeUint(uint64(yy12)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym15 := z.EncBinary() - _ = yym15 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym18 := z.EncBinary() - _ = yym18 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym21 := z.EncBinary() - _ = yym21 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *JobRevertRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *JobRevertRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "JobID": - if r.TryDecodeAsNil() { - x.JobID = "" - } else { - yyv4 := &x.JobID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "JobVersion": - if r.TryDecodeAsNil() { - x.JobVersion = 0 - } else { - yyv6 := &x.JobVersion - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) - } - } - case "EnforcePriorVersion": - if r.TryDecodeAsNil() { - if x.EnforcePriorVersion != nil { - x.EnforcePriorVersion = nil - } - } else { - if x.EnforcePriorVersion == nil { - x.EnforcePriorVersion = new(uint64) - } - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*uint64)(x.EnforcePriorVersion)) = uint64(r.DecodeUint(64)) - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv10 := &x.Region - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv12 := &x.Namespace - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*string)(yyv12)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv14 := &x.AuthToken - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*string)(yyv14)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *JobRevertRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.JobID = "" - } else { - yyv17 := &x.JobID - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.JobVersion = 0 - } else { - yyv19 := &x.JobVersion - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*uint64)(yyv19)) = uint64(r.DecodeUint(64)) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.EnforcePriorVersion != nil { - x.EnforcePriorVersion = nil - } - } else { - if x.EnforcePriorVersion == nil { - x.EnforcePriorVersion = new(uint64) - } - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*uint64)(x.EnforcePriorVersion)) = uint64(r.DecodeUint(64)) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv23 := &x.Region - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv25 := &x.Namespace - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*string)(yyv25)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv27 := &x.AuthToken - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*string)(yyv27)) = r.DecodeString() - } - } - for { - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj16-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *JobStabilityRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(6) - } else { - yynn2 = 6 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.JobID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("JobID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.JobID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.JobVersion)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("JobVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.JobVersion)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeBool(bool(x.Stable)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Stable")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeBool(bool(x.Stable)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *JobStabilityRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *JobStabilityRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "JobID": - if r.TryDecodeAsNil() { - x.JobID = "" - } else { - yyv4 := &x.JobID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "JobVersion": - if r.TryDecodeAsNil() { - x.JobVersion = 0 - } else { - yyv6 := &x.JobVersion - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) - } - } - case "Stable": - if r.TryDecodeAsNil() { - x.Stable = false - } else { - yyv8 := &x.Stable - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*bool)(yyv8)) = r.DecodeBool() - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv10 := &x.Region - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv12 := &x.Namespace - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*string)(yyv12)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv14 := &x.AuthToken - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*string)(yyv14)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *JobStabilityRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.JobID = "" - } else { - yyv17 := &x.JobID - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.JobVersion = 0 - } else { - yyv19 := &x.JobVersion - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*uint64)(yyv19)) = uint64(r.DecodeUint(64)) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Stable = false - } else { - yyv21 := &x.Stable - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*bool)(yyv21)) = r.DecodeBool() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv23 := &x.Region - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv25 := &x.Namespace - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*string)(yyv25)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv27 := &x.AuthToken - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*string)(yyv27)) = r.DecodeString() - } - } - for { - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj16-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *JobStabilityResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(1) - } else { - yynn2 = 1 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *JobStabilityResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *JobStabilityResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv4 := &x.Index - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*uint64)(yyv4)) = uint64(r.DecodeUint(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *JobStabilityResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv7 := &x.Index - yym8 := z.DecBinary() - _ = yym8 - if false { - } else { - *((*uint64)(yyv7)) = uint64(r.DecodeUint(64)) - } - } - for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj6-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *NodeListRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [7]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(7) - } else { - yynn2 = 7 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *NodeListRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *NodeListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv4 := &x.Region - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv6 := &x.Namespace - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv8 := &x.MinQueryIndex - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv10 := &x.MaxQueryTime - yym11 := z.DecBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.DecExt(yyv10) { - } else { - *((*int64)(yyv10)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv12 := &x.AllowStale - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*bool)(yyv12)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv14 := &x.Prefix - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*string)(yyv14)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv16 := &x.AuthToken - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv19 := &x.Region - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv21 := &x.Namespace - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv23 := &x.MinQueryIndex - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*uint64)(yyv23)) = uint64(r.DecodeUint(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv25 := &x.MaxQueryTime - yym26 := z.DecBinary() - _ = yym26 - if false { - } else if z.HasExtensions() && z.DecExt(yyv25) { - } else { - *((*int64)(yyv25)) = int64(r.DecodeInt(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv27 := &x.AllowStale - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*bool)(yyv27)) = r.DecodeBool() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv29 := &x.Prefix - yym30 := z.DecBinary() - _ = yym30 - if false { - } else { - *((*string)(yyv29)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv31 := &x.AuthToken - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*string)(yyv31)) = r.DecodeString() - } - } - for { - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj18-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *EvalUpdateRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [5]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(5) - } else { - yynn2 = 5 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Evals == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Evals")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Evals == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.EvalToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("EvalToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.EvalToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *EvalUpdateRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *EvalUpdateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Evals": - if r.TryDecodeAsNil() { - x.Evals = nil - } else { - yyv4 := &x.Evals - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decSlicePtrtoEvaluation((*[]*Evaluation)(yyv4), d) - } - } - case "EvalToken": - if r.TryDecodeAsNil() { - x.EvalToken = "" - } else { - yyv6 := &x.EvalToken - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv8 := &x.Region - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv10 := &x.Namespace - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv12 := &x.AuthToken - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*string)(yyv12)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *EvalUpdateRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Evals = nil - } else { - yyv15 := &x.Evals - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - h.decSlicePtrtoEvaluation((*[]*Evaluation)(yyv15), d) - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.EvalToken = "" - } else { - yyv17 := &x.EvalToken - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv19 := &x.Region - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv21 := &x.Namespace - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv23 := &x.AuthToken - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - for { - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj14-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *EvalDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [5]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(5) - } else { - yynn2 = 5 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Evals == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - z.F.EncSliceStringV(x.Evals, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Evals")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Evals == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - z.F.EncSliceStringV(x.Evals, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Allocs == nil { - r.EncodeNil() - } else { - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - z.F.EncSliceStringV(x.Allocs, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Allocs")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Allocs == nil { - r.EncodeNil() - } else { - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - z.F.EncSliceStringV(x.Allocs, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *EvalDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *EvalDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Evals": - if r.TryDecodeAsNil() { - x.Evals = nil - } else { - yyv4 := &x.Evals - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - z.F.DecSliceStringX(yyv4, false, d) - } - } - case "Allocs": - if r.TryDecodeAsNil() { - x.Allocs = nil - } else { - yyv6 := &x.Allocs - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - z.F.DecSliceStringX(yyv6, false, d) - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv8 := &x.Region - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv10 := &x.Namespace - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv12 := &x.AuthToken - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*string)(yyv12)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *EvalDeleteRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Evals = nil - } else { - yyv15 := &x.Evals - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - z.F.DecSliceStringX(yyv15, false, d) - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Allocs = nil - } else { - yyv17 := &x.Allocs - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - z.F.DecSliceStringX(yyv17, false, d) - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv19 := &x.Region - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv21 := &x.Namespace - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv23 := &x.AuthToken - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - for { - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj14-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *EvalSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(8) - } else { - yynn2 = 8 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.EvalID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("EvalID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.EvalID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *EvalSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *EvalSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "EvalID": - if r.TryDecodeAsNil() { - x.EvalID = "" - } else { - yyv4 := &x.EvalID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv10 := &x.MinQueryIndex - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv12 := &x.MaxQueryTime - yym13 := z.DecBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.DecExt(yyv12) { - } else { - *((*int64)(yyv12)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv14 := &x.AllowStale - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*bool)(yyv14)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv16 := &x.Prefix - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv18 := &x.AuthToken - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*string)(yyv18)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *EvalSpecificRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.EvalID = "" - } else { - yyv21 := &x.EvalID - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv23 := &x.Region - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv25 := &x.Namespace - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*string)(yyv25)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv27 := &x.MinQueryIndex - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*uint64)(yyv27)) = uint64(r.DecodeUint(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv29 := &x.MaxQueryTime - yym30 := z.DecBinary() - _ = yym30 - if false { - } else if z.HasExtensions() && z.DecExt(yyv29) { - } else { - *((*int64)(yyv29)) = int64(r.DecodeInt(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv31 := &x.AllowStale - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*bool)(yyv31)) = r.DecodeBool() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv33 := &x.Prefix - yym34 := z.DecBinary() - _ = yym34 - if false { - } else { - *((*string)(yyv33)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv35 := &x.AuthToken - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - *((*string)(yyv35)) = r.DecodeString() - } - } - for { - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj20-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *EvalAckRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [5]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(5) - } else { - yynn2 = 5 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.EvalID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("EvalID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.EvalID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Token)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Token")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Token)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *EvalAckRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *EvalAckRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "EvalID": - if r.TryDecodeAsNil() { - x.EvalID = "" - } else { - yyv4 := &x.EvalID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Token": - if r.TryDecodeAsNil() { - x.Token = "" - } else { - yyv6 := &x.Token - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv8 := &x.Region - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv10 := &x.Namespace - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv12 := &x.AuthToken - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*string)(yyv12)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *EvalAckRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.EvalID = "" - } else { - yyv15 := &x.EvalID - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Token = "" - } else { - yyv17 := &x.Token - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv19 := &x.Region - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv21 := &x.Namespace - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv23 := &x.AuthToken - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - for { - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj14-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *EvalDequeueRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(6) - } else { - yynn2 = 6 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Schedulers == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - z.F.EncSliceStringV(x.Schedulers, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Schedulers")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Schedulers == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - z.F.EncSliceStringV(x.Schedulers, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else if z.HasExtensions() && z.EncExt(x.Timeout) { - } else { - r.EncodeInt(int64(x.Timeout)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Timeout")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else if z.HasExtensions() && z.EncExt(x.Timeout) { - } else { - r.EncodeInt(int64(x.Timeout)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.SchedulerVersion)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("SchedulerVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(x.SchedulerVersion)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *EvalDequeueRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *EvalDequeueRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Schedulers": - if r.TryDecodeAsNil() { - x.Schedulers = nil - } else { - yyv4 := &x.Schedulers - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - z.F.DecSliceStringX(yyv4, false, d) - } - } - case "Timeout": - if r.TryDecodeAsNil() { - x.Timeout = 0 - } else { - yyv6 := &x.Timeout - yym7 := z.DecBinary() - _ = yym7 - if false { - } else if z.HasExtensions() && z.DecExt(yyv6) { - } else { - *((*int64)(yyv6)) = int64(r.DecodeInt(64)) - } - } - case "SchedulerVersion": - if r.TryDecodeAsNil() { - x.SchedulerVersion = 0 - } else { - yyv8 := &x.SchedulerVersion - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*uint16)(yyv8)) = uint16(r.DecodeUint(16)) - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv10 := &x.Region - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv12 := &x.Namespace - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*string)(yyv12)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv14 := &x.AuthToken - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*string)(yyv14)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *EvalDequeueRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Schedulers = nil - } else { - yyv17 := &x.Schedulers - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - z.F.DecSliceStringX(yyv17, false, d) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Timeout = 0 - } else { - yyv19 := &x.Timeout - yym20 := z.DecBinary() - _ = yym20 - if false { - } else if z.HasExtensions() && z.DecExt(yyv19) { - } else { - *((*int64)(yyv19)) = int64(r.DecodeInt(64)) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.SchedulerVersion = 0 - } else { - yyv21 := &x.SchedulerVersion - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*uint16)(yyv21)) = uint16(r.DecodeUint(16)) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv23 := &x.Region - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv25 := &x.Namespace - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*string)(yyv25)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv27 := &x.AuthToken - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*string)(yyv27)) = r.DecodeString() - } - } - for { - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj16-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *EvalListRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [7]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(7) - } else { - yynn2 = 7 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *EvalListRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *EvalListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv4 := &x.Region - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv6 := &x.Namespace - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv8 := &x.MinQueryIndex - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv10 := &x.MaxQueryTime - yym11 := z.DecBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.DecExt(yyv10) { - } else { - *((*int64)(yyv10)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv12 := &x.AllowStale - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*bool)(yyv12)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv14 := &x.Prefix - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*string)(yyv14)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv16 := &x.AuthToken - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *EvalListRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv19 := &x.Region - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv21 := &x.Namespace - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv23 := &x.MinQueryIndex - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*uint64)(yyv23)) = uint64(r.DecodeUint(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv25 := &x.MaxQueryTime - yym26 := z.DecBinary() - _ = yym26 - if false { - } else if z.HasExtensions() && z.DecExt(yyv25) { - } else { - *((*int64)(yyv25)) = int64(r.DecodeInt(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv27 := &x.AllowStale - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*bool)(yyv27)) = r.DecodeBool() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv29 := &x.Prefix - yym30 := z.DecBinary() - _ = yym30 - if false { - } else { - *((*string)(yyv29)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv31 := &x.AuthToken - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*string)(yyv31)) = r.DecodeString() - } - } - for { - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj18-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *PlanRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Plan == nil { - r.EncodeNil() - } else { - x.Plan.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Plan")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Plan == nil { - r.EncodeNil() - } else { - x.Plan.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *PlanRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *PlanRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Plan": - if r.TryDecodeAsNil() { - if x.Plan != nil { - x.Plan = nil - } - } else { - if x.Plan == nil { - x.Plan = new(Plan) - } - x.Plan.CodecDecodeSelf(d) - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv5 := &x.Region - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*string)(yyv5)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv7 := &x.Namespace - yym8 := z.DecBinary() - _ = yym8 - if false { - } else { - *((*string)(yyv7)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv9 := &x.AuthToken - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - *((*string)(yyv9)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *PlanRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Plan != nil { - x.Plan = nil - } - } else { - if x.Plan == nil { - x.Plan = new(Plan) - } - x.Plan.CodecDecodeSelf(d) - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv13 := &x.Region - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*string)(yyv13)) = r.DecodeString() - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv15 := &x.Namespace - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv17 := &x.AuthToken - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj11-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *ApplyPlanResultsRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(8) - } else { - yynn2 = 8 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Alloc == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encSlicePtrtoAllocation(([]*Allocation)(x.Alloc), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Alloc")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Alloc == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encSlicePtrtoAllocation(([]*Allocation)(x.Alloc), e) - } - } - } - var yyn6 bool - if x.AllocUpdateRequest.Job == nil { - yyn6 = true - goto LABEL6 - } - LABEL6: - if yyr2 || yy2arr2 { - if yyn6 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Job == nil { - r.EncodeNil() - } else { - x.Job.CodecEncodeSelf(e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Job")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if yyn6 { - r.EncodeNil() - } else { - if x.Job == nil { - r.EncodeNil() - } else { - x.Job.CodecEncodeSelf(e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Deployment == nil { - r.EncodeNil() - } else { - x.Deployment.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Deployment")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Deployment == nil { - r.EncodeNil() - } else { - x.Deployment.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.DeploymentUpdates == nil { - r.EncodeNil() - } else { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DeploymentUpdates")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.DeploymentUpdates == nil { - r.EncodeNil() - } else { - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.EvalID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("EvalID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.EvalID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *ApplyPlanResultsRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *ApplyPlanResultsRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Alloc": - if r.TryDecodeAsNil() { - x.Alloc = nil - } else { - yyv4 := &x.Alloc - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decSlicePtrtoAllocation((*[]*Allocation)(yyv4), d) - } - } - case "Job": - if x.AllocUpdateRequest.Job == nil { - x.AllocUpdateRequest.Job = new(Job) - } - if r.TryDecodeAsNil() { - if x.Job != nil { - x.Job = nil - } - } else { - if x.Job == nil { - x.Job = new(Job) - } - x.Job.CodecDecodeSelf(d) - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv7 := &x.Region - yym8 := z.DecBinary() - _ = yym8 - if false { - } else { - *((*string)(yyv7)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv9 := &x.Namespace - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - *((*string)(yyv9)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv11 := &x.AuthToken - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - *((*string)(yyv11)) = r.DecodeString() - } - } - case "Deployment": - if r.TryDecodeAsNil() { - if x.Deployment != nil { - x.Deployment = nil - } - } else { - if x.Deployment == nil { - x.Deployment = new(Deployment) - } - x.Deployment.CodecDecodeSelf(d) - } - case "DeploymentUpdates": - if r.TryDecodeAsNil() { - x.DeploymentUpdates = nil - } else { - yyv14 := &x.DeploymentUpdates - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(yyv14), d) - } - } - case "EvalID": - if r.TryDecodeAsNil() { - x.EvalID = "" - } else { - yyv16 := &x.EvalID - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *ApplyPlanResultsRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Alloc = nil - } else { - yyv19 := &x.Alloc - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - h.decSlicePtrtoAllocation((*[]*Allocation)(yyv19), d) - } - } - if x.AllocUpdateRequest.Job == nil { - x.AllocUpdateRequest.Job = new(Job) - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv22 := &x.Region - yym23 := z.DecBinary() - _ = yym23 - if false { - } else { - *((*string)(yyv22)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv24 := &x.Namespace - yym25 := z.DecBinary() - _ = yym25 - if false { - } else { - *((*string)(yyv24)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv26 := &x.AuthToken - yym27 := z.DecBinary() - _ = yym27 - if false { - } else { - *((*string)(yyv26)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DeploymentUpdates = nil - } else { - yyv29 := &x.DeploymentUpdates - yym30 := z.DecBinary() - _ = yym30 - if false { - } else { - h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(yyv29), d) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.EvalID = "" - } else { - yyv31 := &x.EvalID - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*string)(yyv31)) = r.DecodeString() - } - } - for { - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj18-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *AllocUpdateRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [5]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(5) - } else { - yynn2 = 5 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Alloc == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encSlicePtrtoAllocation(([]*Allocation)(x.Alloc), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Alloc")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Alloc == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encSlicePtrtoAllocation(([]*Allocation)(x.Alloc), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Job == nil { - r.EncodeNil() - } else { - x.Job.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Job")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Job == nil { - r.EncodeNil() - } else { - x.Job.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *AllocUpdateRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *AllocUpdateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Alloc": - if r.TryDecodeAsNil() { - x.Alloc = nil - } else { - yyv4 := &x.Alloc - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decSlicePtrtoAllocation((*[]*Allocation)(yyv4), d) - } - } - case "Job": - if r.TryDecodeAsNil() { - if x.Job != nil { - x.Job = nil - } - } else { - if x.Job == nil { - x.Job = new(Job) - } - x.Job.CodecDecodeSelf(d) - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv7 := &x.Region - yym8 := z.DecBinary() - _ = yym8 - if false { - } else { - *((*string)(yyv7)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv9 := &x.Namespace - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - *((*string)(yyv9)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv11 := &x.AuthToken - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - *((*string)(yyv11)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *AllocUpdateRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Alloc = nil - } else { - yyv14 := &x.Alloc - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - h.decSlicePtrtoAllocation((*[]*Allocation)(yyv14), d) - } - } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l - } else { - yyb13 = r.CheckBreak() - } - if yyb13 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Job != nil { - x.Job = nil - } - } else { - if x.Job == nil { - x.Job = new(Job) - } - x.Job.CodecDecodeSelf(d) - } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l - } else { - yyb13 = r.CheckBreak() - } - if yyb13 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv17 := &x.Region - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l - } else { - yyb13 = r.CheckBreak() - } - if yyb13 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv19 := &x.Namespace - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l - } else { - yyb13 = r.CheckBreak() - } - if yyb13 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv21 := &x.AuthToken - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - for { - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l - } else { - yyb13 = r.CheckBreak() - } - if yyb13 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj13-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *AllocListRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [7]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(7) - } else { - yynn2 = 7 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *AllocListRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *AllocListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv4 := &x.Region - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv6 := &x.Namespace - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv8 := &x.MinQueryIndex - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv10 := &x.MaxQueryTime - yym11 := z.DecBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.DecExt(yyv10) { - } else { - *((*int64)(yyv10)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv12 := &x.AllowStale - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*bool)(yyv12)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv14 := &x.Prefix - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*string)(yyv14)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv16 := &x.AuthToken - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv19 := &x.Region - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv21 := &x.Namespace - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv23 := &x.MinQueryIndex - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*uint64)(yyv23)) = uint64(r.DecodeUint(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv25 := &x.MaxQueryTime - yym26 := z.DecBinary() - _ = yym26 - if false { - } else if z.HasExtensions() && z.DecExt(yyv25) { - } else { - *((*int64)(yyv25)) = int64(r.DecodeInt(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv27 := &x.AllowStale - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*bool)(yyv27)) = r.DecodeBool() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv29 := &x.Prefix - yym30 := z.DecBinary() - _ = yym30 - if false { - } else { - *((*string)(yyv29)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv31 := &x.AuthToken - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*string)(yyv31)) = r.DecodeString() - } - } - for { - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj18-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *AllocSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(8) - } else { - yynn2 = 8 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AllocID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllocID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AllocID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *AllocSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *AllocSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "AllocID": - if r.TryDecodeAsNil() { - x.AllocID = "" - } else { - yyv4 := &x.AllocID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv10 := &x.MinQueryIndex - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv12 := &x.MaxQueryTime - yym13 := z.DecBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.DecExt(yyv12) { - } else { - *((*int64)(yyv12)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv14 := &x.AllowStale - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*bool)(yyv14)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv16 := &x.Prefix - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv18 := &x.AuthToken - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*string)(yyv18)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *AllocSpecificRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllocID = "" - } else { - yyv21 := &x.AllocID - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv23 := &x.Region - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv25 := &x.Namespace - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*string)(yyv25)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv27 := &x.MinQueryIndex - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*uint64)(yyv27)) = uint64(r.DecodeUint(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv29 := &x.MaxQueryTime - yym30 := z.DecBinary() - _ = yym30 - if false { - } else if z.HasExtensions() && z.DecExt(yyv29) { - } else { - *((*int64)(yyv29)) = int64(r.DecodeInt(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv31 := &x.AllowStale - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*bool)(yyv31)) = r.DecodeBool() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv33 := &x.Prefix - yym34 := z.DecBinary() - _ = yym34 - if false { - } else { - *((*string)(yyv33)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv35 := &x.AuthToken - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - *((*string)(yyv35)) = r.DecodeString() - } - } - for { - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj20-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *AllocsGetRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(8) - } else { - yynn2 = 8 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.AllocIDs == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - z.F.EncSliceStringV(x.AllocIDs, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllocIDs")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.AllocIDs == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - z.F.EncSliceStringV(x.AllocIDs, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *AllocsGetRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *AllocsGetRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "AllocIDs": - if r.TryDecodeAsNil() { - x.AllocIDs = nil - } else { - yyv4 := &x.AllocIDs - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - z.F.DecSliceStringX(yyv4, false, d) - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv10 := &x.MinQueryIndex - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv12 := &x.MaxQueryTime - yym13 := z.DecBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.DecExt(yyv12) { - } else { - *((*int64)(yyv12)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv14 := &x.AllowStale - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*bool)(yyv14)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv16 := &x.Prefix - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv18 := &x.AuthToken - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*string)(yyv18)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *AllocsGetRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllocIDs = nil - } else { - yyv21 := &x.AllocIDs - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - z.F.DecSliceStringX(yyv21, false, d) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv23 := &x.Region - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv25 := &x.Namespace - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*string)(yyv25)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv27 := &x.MinQueryIndex - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*uint64)(yyv27)) = uint64(r.DecodeUint(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv29 := &x.MaxQueryTime - yym30 := z.DecBinary() - _ = yym30 - if false { - } else if z.HasExtensions() && z.DecExt(yyv29) { - } else { - *((*int64)(yyv29)) = int64(r.DecodeInt(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv31 := &x.AllowStale - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*bool)(yyv31)) = r.DecodeBool() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv33 := &x.Prefix - yym34 := z.DecBinary() - _ = yym34 - if false { - } else { - *((*string)(yyv33)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv35 := &x.AuthToken - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - *((*string)(yyv35)) = r.DecodeString() - } - } - for { - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj20-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *PeriodicForceRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.JobID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("JobID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.JobID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *PeriodicForceRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *PeriodicForceRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "JobID": - if r.TryDecodeAsNil() { - x.JobID = "" - } else { - yyv4 := &x.JobID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv10 := &x.AuthToken - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *PeriodicForceRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.JobID = "" - } else { - yyv13 := &x.JobID - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*string)(yyv13)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv15 := &x.Region - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv17 := &x.Namespace - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv19 := &x.AuthToken - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *ServerMembersResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ServerName)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ServerName")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ServerName)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ServerRegion)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ServerRegion")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ServerRegion)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ServerDC)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ServerDC")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ServerDC)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Members == nil { - r.EncodeNil() - } else { - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - h.encSlicePtrtoServerMember(([]*ServerMember)(x.Members), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Members")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Members == nil { - r.EncodeNil() - } else { - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - h.encSlicePtrtoServerMember(([]*ServerMember)(x.Members), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *ServerMembersResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *ServerMembersResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "ServerName": - if r.TryDecodeAsNil() { - x.ServerName = "" - } else { - yyv4 := &x.ServerName - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "ServerRegion": - if r.TryDecodeAsNil() { - x.ServerRegion = "" - } else { - yyv6 := &x.ServerRegion - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "ServerDC": - if r.TryDecodeAsNil() { - x.ServerDC = "" - } else { - yyv8 := &x.ServerDC - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "Members": - if r.TryDecodeAsNil() { - x.Members = nil - } else { - yyv10 := &x.Members - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - h.decSlicePtrtoServerMember((*[]*ServerMember)(yyv10), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *ServerMembersResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ServerName = "" - } else { - yyv13 := &x.ServerName - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*string)(yyv13)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ServerRegion = "" - } else { - yyv15 := &x.ServerRegion - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ServerDC = "" - } else { - yyv17 := &x.ServerDC - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Members = nil - } else { - yyv19 := &x.Members - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - h.decSlicePtrtoServerMember((*[]*ServerMember)(yyv19), d) - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *ServerMember) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [11]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(11) - } else { - yynn2 = 11 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Name)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Name")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Name)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Addr == nil { - r.EncodeNil() - } else { - yym7 := z.EncBinary() - _ = yym7 - if false { - } else if z.HasExtensions() && z.EncExt(x.Addr) { - } else if !yym7 { - z.EncTextMarshal(x.Addr) - } else { - h.encnet_IP((net.IP)(x.Addr), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Addr")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Addr == nil { - r.EncodeNil() - } else { - yym8 := z.EncBinary() - _ = yym8 - if false { - } else if z.HasExtensions() && z.EncExt(x.Addr) { - } else if !yym8 { - z.EncTextMarshal(x.Addr) - } else { - h.encnet_IP((net.IP)(x.Addr), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.Port)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Port")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(x.Port)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Tags == nil { - r.EncodeNil() - } else { - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - z.F.EncMapStringStringV(x.Tags, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Tags")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Tags == nil { - r.EncodeNil() - } else { - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - z.F.EncMapStringStringV(x.Tags, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Status)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Status")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Status)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeUint(uint64(x.ProtocolMin)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ProtocolMin")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeUint(uint64(x.ProtocolMin)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeUint(uint64(x.ProtocolMax)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ProtocolMax")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeUint(uint64(x.ProtocolMax)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeUint(uint64(x.ProtocolCur)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ProtocolCur")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeUint(uint64(x.ProtocolCur)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym28 := z.EncBinary() - _ = yym28 - if false { - } else { - r.EncodeUint(uint64(x.DelegateMin)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DelegateMin")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym29 := z.EncBinary() - _ = yym29 - if false { - } else { - r.EncodeUint(uint64(x.DelegateMin)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym31 := z.EncBinary() - _ = yym31 - if false { - } else { - r.EncodeUint(uint64(x.DelegateMax)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DelegateMax")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym32 := z.EncBinary() - _ = yym32 - if false { - } else { - r.EncodeUint(uint64(x.DelegateMax)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym34 := z.EncBinary() - _ = yym34 - if false { - } else { - r.EncodeUint(uint64(x.DelegateCur)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DelegateCur")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym35 := z.EncBinary() - _ = yym35 - if false { - } else { - r.EncodeUint(uint64(x.DelegateCur)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *ServerMember) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *ServerMember) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv4 := &x.Name - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Addr": - if r.TryDecodeAsNil() { - x.Addr = nil - } else { - yyv6 := &x.Addr - yym7 := z.DecBinary() - _ = yym7 - if false { - } else if z.HasExtensions() && z.DecExt(yyv6) { - } else if !yym7 { - z.DecTextUnmarshal(yyv6) - } else { - h.decnet_IP((*net.IP)(yyv6), d) - } - } - case "Port": - if r.TryDecodeAsNil() { - x.Port = 0 - } else { - yyv8 := &x.Port - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*uint16)(yyv8)) = uint16(r.DecodeUint(16)) - } - } - case "Tags": - if r.TryDecodeAsNil() { - x.Tags = nil - } else { - yyv10 := &x.Tags - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - z.F.DecMapStringStringX(yyv10, false, d) - } - } - case "Status": - if r.TryDecodeAsNil() { - x.Status = "" - } else { - yyv12 := &x.Status - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*string)(yyv12)) = r.DecodeString() - } - } - case "ProtocolMin": - if r.TryDecodeAsNil() { - x.ProtocolMin = 0 - } else { - yyv14 := &x.ProtocolMin - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*uint8)(yyv14)) = uint8(r.DecodeUint(8)) - } - } - case "ProtocolMax": - if r.TryDecodeAsNil() { - x.ProtocolMax = 0 - } else { - yyv16 := &x.ProtocolMax - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*uint8)(yyv16)) = uint8(r.DecodeUint(8)) - } - } - case "ProtocolCur": - if r.TryDecodeAsNil() { - x.ProtocolCur = 0 - } else { - yyv18 := &x.ProtocolCur - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*uint8)(yyv18)) = uint8(r.DecodeUint(8)) - } - } - case "DelegateMin": - if r.TryDecodeAsNil() { - x.DelegateMin = 0 - } else { - yyv20 := &x.DelegateMin - yym21 := z.DecBinary() - _ = yym21 - if false { - } else { - *((*uint8)(yyv20)) = uint8(r.DecodeUint(8)) - } - } - case "DelegateMax": - if r.TryDecodeAsNil() { - x.DelegateMax = 0 - } else { - yyv22 := &x.DelegateMax - yym23 := z.DecBinary() - _ = yym23 - if false { - } else { - *((*uint8)(yyv22)) = uint8(r.DecodeUint(8)) - } - } - case "DelegateCur": - if r.TryDecodeAsNil() { - x.DelegateCur = 0 - } else { - yyv24 := &x.DelegateCur - yym25 := z.DecBinary() - _ = yym25 - if false { - } else { - *((*uint8)(yyv24)) = uint8(r.DecodeUint(8)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *ServerMember) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv27 := &x.Name - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*string)(yyv27)) = r.DecodeString() - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Addr = nil - } else { - yyv29 := &x.Addr - yym30 := z.DecBinary() - _ = yym30 - if false { - } else if z.HasExtensions() && z.DecExt(yyv29) { - } else if !yym30 { - z.DecTextUnmarshal(yyv29) - } else { - h.decnet_IP((*net.IP)(yyv29), d) - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Port = 0 - } else { - yyv31 := &x.Port - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*uint16)(yyv31)) = uint16(r.DecodeUint(16)) - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Tags = nil - } else { - yyv33 := &x.Tags - yym34 := z.DecBinary() - _ = yym34 - if false { - } else { - z.F.DecMapStringStringX(yyv33, false, d) - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Status = "" - } else { - yyv35 := &x.Status - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - *((*string)(yyv35)) = r.DecodeString() - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ProtocolMin = 0 - } else { - yyv37 := &x.ProtocolMin - yym38 := z.DecBinary() - _ = yym38 - if false { - } else { - *((*uint8)(yyv37)) = uint8(r.DecodeUint(8)) - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ProtocolMax = 0 - } else { - yyv39 := &x.ProtocolMax - yym40 := z.DecBinary() - _ = yym40 - if false { - } else { - *((*uint8)(yyv39)) = uint8(r.DecodeUint(8)) - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ProtocolCur = 0 - } else { - yyv41 := &x.ProtocolCur - yym42 := z.DecBinary() - _ = yym42 - if false { - } else { - *((*uint8)(yyv41)) = uint8(r.DecodeUint(8)) - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DelegateMin = 0 - } else { - yyv43 := &x.DelegateMin - yym44 := z.DecBinary() - _ = yym44 - if false { - } else { - *((*uint8)(yyv43)) = uint8(r.DecodeUint(8)) - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DelegateMax = 0 - } else { - yyv45 := &x.DelegateMax - yym46 := z.DecBinary() - _ = yym46 - if false { - } else { - *((*uint8)(yyv45)) = uint8(r.DecodeUint(8)) - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DelegateCur = 0 - } else { - yyv47 := &x.DelegateCur - yym48 := z.DecBinary() - _ = yym48 - if false { - } else { - *((*uint8)(yyv47)) = uint8(r.DecodeUint(8)) - } - } - for { - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj26-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *DeriveVaultTokenRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [11]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(11) - } else { - yynn2 = 11 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.NodeID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("NodeID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.NodeID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.SecretID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("SecretID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.SecretID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AllocID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllocID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AllocID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Tasks == nil { - r.EncodeNil() - } else { - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - z.F.EncSliceStringV(x.Tasks, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Tasks")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Tasks == nil { - r.EncodeNil() - } else { - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - z.F.EncSliceStringV(x.Tasks, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym28 := z.EncBinary() - _ = yym28 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym29 := z.EncBinary() - _ = yym29 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym31 := z.EncBinary() - _ = yym31 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym32 := z.EncBinary() - _ = yym32 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym34 := z.EncBinary() - _ = yym34 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym35 := z.EncBinary() - _ = yym35 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *DeriveVaultTokenRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *DeriveVaultTokenRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "NodeID": - if r.TryDecodeAsNil() { - x.NodeID = "" - } else { - yyv4 := &x.NodeID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "SecretID": - if r.TryDecodeAsNil() { - x.SecretID = "" - } else { - yyv6 := &x.SecretID - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "AllocID": - if r.TryDecodeAsNil() { - x.AllocID = "" - } else { - yyv8 := &x.AllocID - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "Tasks": - if r.TryDecodeAsNil() { - x.Tasks = nil - } else { - yyv10 := &x.Tasks - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - z.F.DecSliceStringX(yyv10, false, d) - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv12 := &x.Region - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*string)(yyv12)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv14 := &x.Namespace - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*string)(yyv14)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv16 := &x.MinQueryIndex - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*uint64)(yyv16)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv18 := &x.MaxQueryTime - yym19 := z.DecBinary() - _ = yym19 - if false { - } else if z.HasExtensions() && z.DecExt(yyv18) { - } else { - *((*int64)(yyv18)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv20 := &x.AllowStale - yym21 := z.DecBinary() - _ = yym21 - if false { - } else { - *((*bool)(yyv20)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv22 := &x.Prefix - yym23 := z.DecBinary() - _ = yym23 - if false { - } else { - *((*string)(yyv22)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv24 := &x.AuthToken - yym25 := z.DecBinary() - _ = yym25 - if false { - } else { - *((*string)(yyv24)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *DeriveVaultTokenRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.NodeID = "" - } else { - yyv27 := &x.NodeID - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*string)(yyv27)) = r.DecodeString() - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.SecretID = "" - } else { - yyv29 := &x.SecretID - yym30 := z.DecBinary() - _ = yym30 - if false { - } else { - *((*string)(yyv29)) = r.DecodeString() - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllocID = "" - } else { - yyv31 := &x.AllocID - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*string)(yyv31)) = r.DecodeString() - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Tasks = nil - } else { - yyv33 := &x.Tasks - yym34 := z.DecBinary() - _ = yym34 - if false { - } else { - z.F.DecSliceStringX(yyv33, false, d) - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv35 := &x.Region - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - *((*string)(yyv35)) = r.DecodeString() - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv37 := &x.Namespace - yym38 := z.DecBinary() - _ = yym38 - if false { - } else { - *((*string)(yyv37)) = r.DecodeString() - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv39 := &x.MinQueryIndex - yym40 := z.DecBinary() - _ = yym40 - if false { - } else { - *((*uint64)(yyv39)) = uint64(r.DecodeUint(64)) - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv41 := &x.MaxQueryTime - yym42 := z.DecBinary() - _ = yym42 - if false { - } else if z.HasExtensions() && z.DecExt(yyv41) { - } else { - *((*int64)(yyv41)) = int64(r.DecodeInt(64)) - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv43 := &x.AllowStale - yym44 := z.DecBinary() - _ = yym44 - if false { - } else { - *((*bool)(yyv43)) = r.DecodeBool() - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv45 := &x.Prefix - yym46 := z.DecBinary() - _ = yym46 - if false { - } else { - *((*string)(yyv45)) = r.DecodeString() - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv47 := &x.AuthToken - yym48 := z.DecBinary() - _ = yym48 - if false { - } else { - *((*string)(yyv47)) = r.DecodeString() - } - } - for { - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj26-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *VaultAccessorsRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(1) - } else { - yynn2 = 1 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Accessors == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encSlicePtrtoVaultAccessor(([]*VaultAccessor)(x.Accessors), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Accessors")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Accessors == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encSlicePtrtoVaultAccessor(([]*VaultAccessor)(x.Accessors), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *VaultAccessorsRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *VaultAccessorsRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Accessors": - if r.TryDecodeAsNil() { - x.Accessors = nil - } else { - yyv4 := &x.Accessors - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decSlicePtrtoVaultAccessor((*[]*VaultAccessor)(yyv4), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *VaultAccessorsRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Accessors = nil - } else { - yyv7 := &x.Accessors - yym8 := z.DecBinary() - _ = yym8 - if false { - } else { - h.decSlicePtrtoVaultAccessor((*[]*VaultAccessor)(yyv7), d) - } - } - for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj6-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *VaultAccessor) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(6) - } else { - yynn2 = 6 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AllocID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllocID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AllocID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Task)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Task")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Task)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.NodeID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("NodeID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.NodeID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Accessor)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Accessor")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Accessor)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeInt(int64(x.CreationTTL)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("CreationTTL")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeInt(int64(x.CreationTTL)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("CreateIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *VaultAccessor) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *VaultAccessor) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "AllocID": - if r.TryDecodeAsNil() { - x.AllocID = "" - } else { - yyv4 := &x.AllocID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Task": - if r.TryDecodeAsNil() { - x.Task = "" - } else { - yyv6 := &x.Task - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "NodeID": - if r.TryDecodeAsNil() { - x.NodeID = "" - } else { - yyv8 := &x.NodeID - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "Accessor": - if r.TryDecodeAsNil() { - x.Accessor = "" - } else { - yyv10 := &x.Accessor - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - case "CreationTTL": - if r.TryDecodeAsNil() { - x.CreationTTL = 0 - } else { - yyv12 := &x.CreationTTL - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*int)(yyv12)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - case "CreateIndex": - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv14 := &x.CreateIndex - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*uint64)(yyv14)) = uint64(r.DecodeUint(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *VaultAccessor) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllocID = "" - } else { - yyv17 := &x.AllocID - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Task = "" - } else { - yyv19 := &x.Task - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.NodeID = "" - } else { - yyv21 := &x.NodeID - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Accessor = "" - } else { - yyv23 := &x.Accessor - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.CreationTTL = 0 - } else { - yyv25 := &x.CreationTTL - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*int)(yyv25)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv27 := &x.CreateIndex - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*uint64)(yyv27)) = uint64(r.DecodeUint(64)) - } - } - for { - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj16-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *DeriveVaultTokenResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [5]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(5) - } else { - yynn2 = 5 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Tasks == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - z.F.EncMapStringStringV(x.Tasks, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Tasks")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Tasks == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - z.F.EncMapStringStringV(x.Tasks, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Error == nil { - r.EncodeNil() - } else { - x.Error.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Error")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Error == nil { - r.EncodeNil() - } else { - x.Error.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *DeriveVaultTokenResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *DeriveVaultTokenResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Tasks": - if r.TryDecodeAsNil() { - x.Tasks = nil - } else { - yyv4 := &x.Tasks - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - z.F.DecMapStringStringX(yyv4, false, d) - } - } - case "Error": - if r.TryDecodeAsNil() { - if x.Error != nil { - x.Error = nil - } - } else { - if x.Error == nil { - x.Error = new(RecoverableError) - } - x.Error.CodecDecodeSelf(d) - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv7 := &x.Index - yym8 := z.DecBinary() - _ = yym8 - if false { - } else { - *((*uint64)(yyv7)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv9 := &x.LastContact - yym10 := z.DecBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.DecExt(yyv9) { - } else { - *((*int64)(yyv9)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv11 := &x.KnownLeader - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - *((*bool)(yyv11)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *DeriveVaultTokenResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Tasks = nil - } else { - yyv14 := &x.Tasks - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - z.F.DecMapStringStringX(yyv14, false, d) - } - } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l - } else { - yyb13 = r.CheckBreak() - } - if yyb13 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Error != nil { - x.Error = nil - } - } else { - if x.Error == nil { - x.Error = new(RecoverableError) - } - x.Error.CodecDecodeSelf(d) - } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l - } else { - yyb13 = r.CheckBreak() - } - if yyb13 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv17 := &x.Index - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*uint64)(yyv17)) = uint64(r.DecodeUint(64)) - } - } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l - } else { - yyb13 = r.CheckBreak() - } - if yyb13 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv19 := &x.LastContact - yym20 := z.DecBinary() - _ = yym20 - if false { - } else if z.HasExtensions() && z.DecExt(yyv19) { - } else { - *((*int64)(yyv19)) = int64(r.DecodeInt(64)) - } - } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l - } else { - yyb13 = r.CheckBreak() - } - if yyb13 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv21 := &x.KnownLeader - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*bool)(yyv21)) = r.DecodeBool() - } - } - for { - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l - } else { - yyb13 = r.CheckBreak() - } - if yyb13 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj13-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *GenericRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [7]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(7) - } else { - yynn2 = 7 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *GenericRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *GenericRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv4 := &x.Region - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv6 := &x.Namespace - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv8 := &x.MinQueryIndex - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv10 := &x.MaxQueryTime - yym11 := z.DecBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.DecExt(yyv10) { - } else { - *((*int64)(yyv10)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv12 := &x.AllowStale - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*bool)(yyv12)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv14 := &x.Prefix - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*string)(yyv14)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv16 := &x.AuthToken - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *GenericRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv19 := &x.Region - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv21 := &x.Namespace - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv23 := &x.MinQueryIndex - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*uint64)(yyv23)) = uint64(r.DecodeUint(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv25 := &x.MaxQueryTime - yym26 := z.DecBinary() - _ = yym26 - if false { - } else if z.HasExtensions() && z.DecExt(yyv25) { - } else { - *((*int64)(yyv25)) = int64(r.DecodeInt(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv27 := &x.AllowStale - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*bool)(yyv27)) = r.DecodeBool() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv29 := &x.Prefix - yym30 := z.DecBinary() - _ = yym30 - if false { - } else { - *((*string)(yyv29)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv31 := &x.AuthToken - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*string)(yyv31)) = r.DecodeString() - } - } - for { - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj18-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *DeploymentListRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [7]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(7) - } else { - yynn2 = 7 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *DeploymentListRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *DeploymentListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv4 := &x.Region - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv6 := &x.Namespace - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv8 := &x.MinQueryIndex - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv10 := &x.MaxQueryTime - yym11 := z.DecBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.DecExt(yyv10) { - } else { - *((*int64)(yyv10)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv12 := &x.AllowStale - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*bool)(yyv12)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv14 := &x.Prefix - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*string)(yyv14)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv16 := &x.AuthToken - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *DeploymentListRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv19 := &x.Region - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv21 := &x.Namespace - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv23 := &x.MinQueryIndex - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*uint64)(yyv23)) = uint64(r.DecodeUint(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv25 := &x.MaxQueryTime - yym26 := z.DecBinary() - _ = yym26 - if false { - } else if z.HasExtensions() && z.DecExt(yyv25) { - } else { - *((*int64)(yyv25)) = int64(r.DecodeInt(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv27 := &x.AllowStale - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*bool)(yyv27)) = r.DecodeBool() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv29 := &x.Prefix - yym30 := z.DecBinary() - _ = yym30 - if false { - } else { - *((*string)(yyv29)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv31 := &x.AuthToken - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*string)(yyv31)) = r.DecodeString() - } - } - for { - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj18-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *DeploymentDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Deployments == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - z.F.EncSliceStringV(x.Deployments, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Deployments")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Deployments == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - z.F.EncSliceStringV(x.Deployments, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *DeploymentDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *DeploymentDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Deployments": - if r.TryDecodeAsNil() { - x.Deployments = nil - } else { - yyv4 := &x.Deployments - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - z.F.DecSliceStringX(yyv4, false, d) - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv10 := &x.AuthToken - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *DeploymentDeleteRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Deployments = nil - } else { - yyv13 := &x.Deployments - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - z.F.DecSliceStringX(yyv13, false, d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv15 := &x.Region - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv17 := &x.Namespace - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv19 := &x.AuthToken - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *DeploymentStatusUpdateRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(3) - } else { - yynn2 = 3 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Eval == nil { - r.EncodeNil() - } else { - x.Eval.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Eval")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Eval == nil { - r.EncodeNil() - } else { - x.Eval.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.DeploymentUpdate == nil { - r.EncodeNil() - } else { - x.DeploymentUpdate.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DeploymentUpdate")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.DeploymentUpdate == nil { - r.EncodeNil() - } else { - x.DeploymentUpdate.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Job == nil { - r.EncodeNil() - } else { - x.Job.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Job")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Job == nil { - r.EncodeNil() - } else { - x.Job.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *DeploymentStatusUpdateRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *DeploymentStatusUpdateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Eval": - if r.TryDecodeAsNil() { - if x.Eval != nil { - x.Eval = nil - } - } else { - if x.Eval == nil { - x.Eval = new(Evaluation) - } - x.Eval.CodecDecodeSelf(d) - } - case "DeploymentUpdate": - if r.TryDecodeAsNil() { - if x.DeploymentUpdate != nil { - x.DeploymentUpdate = nil - } - } else { - if x.DeploymentUpdate == nil { - x.DeploymentUpdate = new(DeploymentStatusUpdate) - } - x.DeploymentUpdate.CodecDecodeSelf(d) - } - case "Job": - if r.TryDecodeAsNil() { - if x.Job != nil { - x.Job = nil - } - } else { - if x.Job == nil { - x.Job = new(Job) - } - x.Job.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Eval != nil { - x.Eval = nil - } - } else { - if x.Eval == nil { - x.Eval = new(Evaluation) - } - x.Eval.CodecDecodeSelf(d) - } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l - } else { - yyb7 = r.CheckBreak() - } - if yyb7 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.DeploymentUpdate != nil { - x.DeploymentUpdate = nil - } - } else { - if x.DeploymentUpdate == nil { - x.DeploymentUpdate = new(DeploymentStatusUpdate) - } - x.DeploymentUpdate.CodecDecodeSelf(d) - } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l - } else { - yyb7 = r.CheckBreak() - } - if yyb7 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Job != nil { - x.Job = nil - } - } else { - if x.Job == nil { - x.Job = new(Job) - } - x.Job.CodecDecodeSelf(d) - } - for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l - } else { - yyb7 = r.CheckBreak() - } - if yyb7 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj7-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *DeploymentAllocHealthRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(6) - } else { - yynn2 = 6 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DeploymentID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DeploymentID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DeploymentID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.HealthyAllocationIDs == nil { - r.EncodeNil() - } else { - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - z.F.EncSliceStringV(x.HealthyAllocationIDs, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("HealthyAllocationIDs")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.HealthyAllocationIDs == nil { - r.EncodeNil() - } else { - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - z.F.EncSliceStringV(x.HealthyAllocationIDs, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.UnhealthyAllocationIDs == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - z.F.EncSliceStringV(x.UnhealthyAllocationIDs, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("UnhealthyAllocationIDs")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.UnhealthyAllocationIDs == nil { - r.EncodeNil() - } else { - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - z.F.EncSliceStringV(x.UnhealthyAllocationIDs, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *DeploymentAllocHealthRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *DeploymentAllocHealthRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "DeploymentID": - if r.TryDecodeAsNil() { - x.DeploymentID = "" - } else { - yyv4 := &x.DeploymentID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "HealthyAllocationIDs": - if r.TryDecodeAsNil() { - x.HealthyAllocationIDs = nil - } else { - yyv6 := &x.HealthyAllocationIDs - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - z.F.DecSliceStringX(yyv6, false, d) - } - } - case "UnhealthyAllocationIDs": - if r.TryDecodeAsNil() { - x.UnhealthyAllocationIDs = nil - } else { - yyv8 := &x.UnhealthyAllocationIDs - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - z.F.DecSliceStringX(yyv8, false, d) - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv10 := &x.Region - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv12 := &x.Namespace - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*string)(yyv12)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv14 := &x.AuthToken - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*string)(yyv14)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *DeploymentAllocHealthRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DeploymentID = "" - } else { - yyv17 := &x.DeploymentID - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.HealthyAllocationIDs = nil - } else { - yyv19 := &x.HealthyAllocationIDs - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - z.F.DecSliceStringX(yyv19, false, d) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.UnhealthyAllocationIDs = nil - } else { - yyv21 := &x.UnhealthyAllocationIDs - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - z.F.DecSliceStringX(yyv21, false, d) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv23 := &x.Region - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv25 := &x.Namespace - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*string)(yyv25)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv27 := &x.AuthToken - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*string)(yyv27)) = r.DecodeString() - } - } - for { - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj16-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *ApplyDeploymentAllocHealthRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [9]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(9) - } else { - yynn2 = 9 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DeploymentID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DeploymentID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DeploymentID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.HealthyAllocationIDs == nil { - r.EncodeNil() - } else { - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - z.F.EncSliceStringV(x.HealthyAllocationIDs, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("HealthyAllocationIDs")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.HealthyAllocationIDs == nil { - r.EncodeNil() - } else { - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - z.F.EncSliceStringV(x.HealthyAllocationIDs, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.UnhealthyAllocationIDs == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - z.F.EncSliceStringV(x.UnhealthyAllocationIDs, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("UnhealthyAllocationIDs")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.UnhealthyAllocationIDs == nil { - r.EncodeNil() - } else { - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - z.F.EncSliceStringV(x.UnhealthyAllocationIDs, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.DeploymentUpdate == nil { - r.EncodeNil() - } else { - x.DeploymentUpdate.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DeploymentUpdate")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.DeploymentUpdate == nil { - r.EncodeNil() - } else { - x.DeploymentUpdate.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Job == nil { - r.EncodeNil() - } else { - x.Job.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Job")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Job == nil { - r.EncodeNil() - } else { - x.Job.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Eval == nil { - r.EncodeNil() - } else { - x.Eval.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Eval")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Eval == nil { - r.EncodeNil() - } else { - x.Eval.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *ApplyDeploymentAllocHealthRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *ApplyDeploymentAllocHealthRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "DeploymentID": - if r.TryDecodeAsNil() { - x.DeploymentID = "" - } else { - yyv4 := &x.DeploymentID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "HealthyAllocationIDs": - if r.TryDecodeAsNil() { - x.HealthyAllocationIDs = nil - } else { - yyv6 := &x.HealthyAllocationIDs - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - z.F.DecSliceStringX(yyv6, false, d) - } - } - case "UnhealthyAllocationIDs": - if r.TryDecodeAsNil() { - x.UnhealthyAllocationIDs = nil - } else { - yyv8 := &x.UnhealthyAllocationIDs - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - z.F.DecSliceStringX(yyv8, false, d) - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv10 := &x.Region - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv12 := &x.Namespace - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*string)(yyv12)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv14 := &x.AuthToken - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*string)(yyv14)) = r.DecodeString() - } - } - case "DeploymentUpdate": - if r.TryDecodeAsNil() { - if x.DeploymentUpdate != nil { - x.DeploymentUpdate = nil - } - } else { - if x.DeploymentUpdate == nil { - x.DeploymentUpdate = new(DeploymentStatusUpdate) - } - x.DeploymentUpdate.CodecDecodeSelf(d) - } - case "Job": - if r.TryDecodeAsNil() { - if x.Job != nil { - x.Job = nil - } - } else { - if x.Job == nil { - x.Job = new(Job) - } - x.Job.CodecDecodeSelf(d) - } - case "Eval": - if r.TryDecodeAsNil() { - if x.Eval != nil { - x.Eval = nil - } - } else { - if x.Eval == nil { - x.Eval = new(Evaluation) - } - x.Eval.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DeploymentID = "" - } else { - yyv20 := &x.DeploymentID - yym21 := z.DecBinary() - _ = yym21 - if false { - } else { - *((*string)(yyv20)) = r.DecodeString() - } - } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l - } else { - yyb19 = r.CheckBreak() - } - if yyb19 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.HealthyAllocationIDs = nil - } else { - yyv22 := &x.HealthyAllocationIDs - yym23 := z.DecBinary() - _ = yym23 - if false { - } else { - z.F.DecSliceStringX(yyv22, false, d) - } - } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l - } else { - yyb19 = r.CheckBreak() - } - if yyb19 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.UnhealthyAllocationIDs = nil - } else { - yyv24 := &x.UnhealthyAllocationIDs - yym25 := z.DecBinary() - _ = yym25 - if false { - } else { - z.F.DecSliceStringX(yyv24, false, d) - } - } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l - } else { - yyb19 = r.CheckBreak() - } - if yyb19 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv26 := &x.Region - yym27 := z.DecBinary() - _ = yym27 - if false { - } else { - *((*string)(yyv26)) = r.DecodeString() - } - } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l - } else { - yyb19 = r.CheckBreak() - } - if yyb19 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv28 := &x.Namespace - yym29 := z.DecBinary() - _ = yym29 - if false { - } else { - *((*string)(yyv28)) = r.DecodeString() - } - } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l - } else { - yyb19 = r.CheckBreak() - } - if yyb19 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv30 := &x.AuthToken - yym31 := z.DecBinary() - _ = yym31 - if false { - } else { - *((*string)(yyv30)) = r.DecodeString() - } - } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l - } else { - yyb19 = r.CheckBreak() - } - if yyb19 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if 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 - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj19-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *DeploymentPromoteRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(6) - } else { - yynn2 = 6 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DeploymentID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DeploymentID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DeploymentID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeBool(bool(x.All)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("All")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeBool(bool(x.All)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Groups == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - z.F.EncSliceStringV(x.Groups, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Groups")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Groups == nil { - r.EncodeNil() - } else { - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - z.F.EncSliceStringV(x.Groups, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *DeploymentPromoteRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *DeploymentPromoteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "DeploymentID": - if r.TryDecodeAsNil() { - x.DeploymentID = "" - } else { - yyv4 := &x.DeploymentID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "All": - if r.TryDecodeAsNil() { - x.All = false - } else { - yyv6 := &x.All - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*bool)(yyv6)) = r.DecodeBool() - } - } - case "Groups": - if r.TryDecodeAsNil() { - x.Groups = nil - } else { - yyv8 := &x.Groups - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - z.F.DecSliceStringX(yyv8, false, d) - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv10 := &x.Region - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv12 := &x.Namespace - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*string)(yyv12)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv14 := &x.AuthToken - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*string)(yyv14)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *DeploymentPromoteRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DeploymentID = "" - } else { - yyv17 := &x.DeploymentID - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.All = false - } else { - yyv19 := &x.All - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*bool)(yyv19)) = r.DecodeBool() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Groups = nil - } else { - yyv21 := &x.Groups - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - z.F.DecSliceStringX(yyv21, false, d) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv23 := &x.Region - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv25 := &x.Namespace - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*string)(yyv25)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv27 := &x.AuthToken - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*string)(yyv27)) = r.DecodeString() - } - } - for { - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj16-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *ApplyDeploymentPromoteRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [7]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(7) - } else { - yynn2 = 7 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DeploymentID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DeploymentID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DeploymentID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeBool(bool(x.All)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("All")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeBool(bool(x.All)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Groups == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - z.F.EncSliceStringV(x.Groups, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Groups")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Groups == nil { - r.EncodeNil() - } else { - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - z.F.EncSliceStringV(x.Groups, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Eval == nil { - r.EncodeNil() - } else { - x.Eval.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Eval")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Eval == nil { - r.EncodeNil() - } else { - x.Eval.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *ApplyDeploymentPromoteRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *ApplyDeploymentPromoteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "DeploymentID": - if r.TryDecodeAsNil() { - x.DeploymentID = "" - } else { - yyv4 := &x.DeploymentID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "All": - if r.TryDecodeAsNil() { - x.All = false - } else { - yyv6 := &x.All - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*bool)(yyv6)) = r.DecodeBool() - } - } - case "Groups": - if r.TryDecodeAsNil() { - x.Groups = nil - } else { - yyv8 := &x.Groups - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - z.F.DecSliceStringX(yyv8, false, d) - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv10 := &x.Region - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv12 := &x.Namespace - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*string)(yyv12)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv14 := &x.AuthToken - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*string)(yyv14)) = r.DecodeString() - } - } - case "Eval": - if r.TryDecodeAsNil() { - if x.Eval != nil { - x.Eval = nil - } - } else { - if x.Eval == nil { - x.Eval = new(Evaluation) - } - x.Eval.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *ApplyDeploymentPromoteRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DeploymentID = "" - } else { - yyv18 := &x.DeploymentID - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*string)(yyv18)) = r.DecodeString() - } - } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = r.CheckBreak() - } - if yyb17 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.All = false - } else { - yyv20 := &x.All - yym21 := z.DecBinary() - _ = yym21 - if false { - } else { - *((*bool)(yyv20)) = r.DecodeBool() - } - } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = r.CheckBreak() - } - if yyb17 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Groups = nil - } else { - yyv22 := &x.Groups - yym23 := z.DecBinary() - _ = yym23 - if false { - } else { - z.F.DecSliceStringX(yyv22, false, d) - } - } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = r.CheckBreak() - } - if yyb17 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv24 := &x.Region - yym25 := z.DecBinary() - _ = yym25 - if false { - } else { - *((*string)(yyv24)) = r.DecodeString() - } - } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = r.CheckBreak() - } - if yyb17 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv26 := &x.Namespace - yym27 := z.DecBinary() - _ = yym27 - if false { - } else { - *((*string)(yyv26)) = r.DecodeString() - } - } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = r.CheckBreak() - } - if yyb17 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv28 := &x.AuthToken - yym29 := z.DecBinary() - _ = yym29 - if false { - } else { - *((*string)(yyv28)) = r.DecodeString() - } - } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = r.CheckBreak() - } - if yyb17 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Eval != nil { - x.Eval = nil - } - } else { - if x.Eval == nil { - x.Eval = new(Evaluation) - } - x.Eval.CodecDecodeSelf(d) - } - for { - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = r.CheckBreak() - } - if yyb17 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj17-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *DeploymentPauseRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [5]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(5) - } else { - yynn2 = 5 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DeploymentID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DeploymentID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DeploymentID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeBool(bool(x.Pause)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Pause")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeBool(bool(x.Pause)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *DeploymentPauseRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *DeploymentPauseRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "DeploymentID": - if r.TryDecodeAsNil() { - x.DeploymentID = "" - } else { - yyv4 := &x.DeploymentID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Pause": - if r.TryDecodeAsNil() { - x.Pause = false - } else { - yyv6 := &x.Pause - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*bool)(yyv6)) = r.DecodeBool() - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv8 := &x.Region - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv10 := &x.Namespace - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv12 := &x.AuthToken - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*string)(yyv12)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *DeploymentPauseRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DeploymentID = "" - } else { - yyv15 := &x.DeploymentID - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Pause = false - } else { - yyv17 := &x.Pause - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*bool)(yyv17)) = r.DecodeBool() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv19 := &x.Region - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv21 := &x.Namespace - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv23 := &x.AuthToken - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - for { - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj14-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *DeploymentSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(8) - } else { - yynn2 = 8 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DeploymentID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DeploymentID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DeploymentID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *DeploymentSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *DeploymentSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "DeploymentID": - if r.TryDecodeAsNil() { - x.DeploymentID = "" - } else { - yyv4 := &x.DeploymentID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv10 := &x.MinQueryIndex - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv12 := &x.MaxQueryTime - yym13 := z.DecBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.DecExt(yyv12) { - } else { - *((*int64)(yyv12)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv14 := &x.AllowStale - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*bool)(yyv14)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv16 := &x.Prefix - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv18 := &x.AuthToken - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*string)(yyv18)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *DeploymentSpecificRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DeploymentID = "" - } else { - yyv21 := &x.DeploymentID - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv23 := &x.Region - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv25 := &x.Namespace - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*string)(yyv25)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv27 := &x.MinQueryIndex - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*uint64)(yyv27)) = uint64(r.DecodeUint(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv29 := &x.MaxQueryTime - yym30 := z.DecBinary() - _ = yym30 - if false { - } else if z.HasExtensions() && z.DecExt(yyv29) { - } else { - *((*int64)(yyv29)) = int64(r.DecodeInt(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv31 := &x.AllowStale - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*bool)(yyv31)) = r.DecodeBool() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv33 := &x.Prefix - yym34 := z.DecBinary() - _ = yym34 - if false { - } else { - *((*string)(yyv33)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv35 := &x.AuthToken - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - *((*string)(yyv35)) = r.DecodeString() - } - } - for { - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj20-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *DeploymentFailRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DeploymentID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DeploymentID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DeploymentID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *DeploymentFailRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *DeploymentFailRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "DeploymentID": - if r.TryDecodeAsNil() { - x.DeploymentID = "" - } else { - yyv4 := &x.DeploymentID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv10 := &x.AuthToken - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *DeploymentFailRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DeploymentID = "" - } else { - yyv13 := &x.DeploymentID - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*string)(yyv13)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv15 := &x.Region - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv17 := &x.Namespace - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv19 := &x.AuthToken - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *SingleDeploymentResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Deployment == nil { - r.EncodeNil() - } else { - x.Deployment.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Deployment")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Deployment == nil { - r.EncodeNil() - } else { - x.Deployment.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *SingleDeploymentResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *SingleDeploymentResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Deployment": - if r.TryDecodeAsNil() { - if x.Deployment != nil { - x.Deployment = nil - } - } else { - if x.Deployment == nil { - x.Deployment = new(Deployment) - } - x.Deployment.CodecDecodeSelf(d) - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv5 := &x.Index - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*uint64)(yyv5)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv7 := &x.LastContact - yym8 := z.DecBinary() - _ = yym8 - if false { - } else if z.HasExtensions() && z.DecExt(yyv7) { - } else { - *((*int64)(yyv7)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv9 := &x.KnownLeader - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - *((*bool)(yyv9)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *SingleDeploymentResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Deployment != nil { - x.Deployment = nil - } - } else { - if x.Deployment == nil { - x.Deployment = new(Deployment) - } - x.Deployment.CodecDecodeSelf(d) - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv13 := &x.Index - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*uint64)(yyv13)) = uint64(r.DecodeUint(64)) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv15 := &x.LastContact - yym16 := z.DecBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.DecExt(yyv15) { - } else { - *((*int64)(yyv15)) = int64(r.DecodeInt(64)) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv17 := &x.KnownLeader - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*bool)(yyv17)) = r.DecodeBool() - } - } - for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj11-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *GenericResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(1) - } else { - yynn2 = 1 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *GenericResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *GenericResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv4 := &x.Index - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*uint64)(yyv4)) = uint64(r.DecodeUint(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *GenericResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv7 := &x.Index - yym8 := z.DecBinary() - _ = yym8 - if false { - } else { - *((*uint64)(yyv7)) = uint64(r.DecodeUint(64)) - } - } - for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj6-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *VersionResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [5]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(5) - } else { - yynn2 = 5 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Build)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Build")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Build)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Versions == nil { - r.EncodeNil() - } else { - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - z.F.EncMapStringIntV(x.Versions, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Versions")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Versions == nil { - r.EncodeNil() - } else { - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - z.F.EncMapStringIntV(x.Versions, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *VersionResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *VersionResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Build": - if r.TryDecodeAsNil() { - x.Build = "" - } else { - yyv4 := &x.Build - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Versions": - if r.TryDecodeAsNil() { - x.Versions = nil - } else { - yyv6 := &x.Versions - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - z.F.DecMapStringIntX(yyv6, false, d) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv8 := &x.Index - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv10 := &x.LastContact - yym11 := z.DecBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.DecExt(yyv10) { - } else { - *((*int64)(yyv10)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv12 := &x.KnownLeader - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*bool)(yyv12)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *VersionResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Build = "" - } else { - yyv15 := &x.Build - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Versions = nil - } else { - yyv17 := &x.Versions - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - z.F.DecMapStringIntX(yyv17, false, d) - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv19 := &x.Index - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*uint64)(yyv19)) = uint64(r.DecodeUint(64)) - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv21 := &x.LastContact - yym22 := z.DecBinary() - _ = yym22 - if false { - } else if z.HasExtensions() && z.DecExt(yyv21) { - } else { - *((*int64)(yyv21)) = int64(r.DecodeInt(64)) - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv23 := &x.KnownLeader - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*bool)(yyv23)) = r.DecodeBool() - } - } - for { - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj14-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *JobRegisterResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [7]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(7) - } else { - yynn2 = 7 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.EvalID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("EvalID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.EvalID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.EvalCreateIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("EvalCreateIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.EvalCreateIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.JobModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("JobModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(x.JobModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Warnings)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Warnings")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Warnings)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *JobRegisterResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *JobRegisterResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "EvalID": - if r.TryDecodeAsNil() { - x.EvalID = "" - } else { - yyv4 := &x.EvalID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "EvalCreateIndex": - if r.TryDecodeAsNil() { - x.EvalCreateIndex = 0 - } else { - yyv6 := &x.EvalCreateIndex - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) - } - } - case "JobModifyIndex": - if r.TryDecodeAsNil() { - x.JobModifyIndex = 0 - } else { - yyv8 := &x.JobModifyIndex - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) - } - } - case "Warnings": - if r.TryDecodeAsNil() { - x.Warnings = "" - } else { - yyv10 := &x.Warnings - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv12 := &x.Index - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*uint64)(yyv12)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv14 := &x.LastContact - yym15 := z.DecBinary() - _ = yym15 - if false { - } else if z.HasExtensions() && z.DecExt(yyv14) { - } else { - *((*int64)(yyv14)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv16 := &x.KnownLeader - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*bool)(yyv16)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *JobRegisterResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.EvalID = "" - } else { - yyv19 := &x.EvalID - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.EvalCreateIndex = 0 - } else { - yyv21 := &x.EvalCreateIndex - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*uint64)(yyv21)) = uint64(r.DecodeUint(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.JobModifyIndex = 0 - } else { - yyv23 := &x.JobModifyIndex - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*uint64)(yyv23)) = uint64(r.DecodeUint(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Warnings = "" - } else { - yyv25 := &x.Warnings - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*string)(yyv25)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv27 := &x.Index - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*uint64)(yyv27)) = uint64(r.DecodeUint(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv29 := &x.LastContact - yym30 := z.DecBinary() - _ = yym30 - if false { - } else if z.HasExtensions() && z.DecExt(yyv29) { - } else { - *((*int64)(yyv29)) = int64(r.DecodeInt(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv31 := &x.KnownLeader - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*bool)(yyv31)) = r.DecodeBool() - } - } - for { - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj18-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *JobDeregisterResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(6) - } else { - yynn2 = 6 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.EvalID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("EvalID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.EvalID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.EvalCreateIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("EvalCreateIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.EvalCreateIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.JobModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("JobModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(x.JobModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *JobDeregisterResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *JobDeregisterResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "EvalID": - if r.TryDecodeAsNil() { - x.EvalID = "" - } else { - yyv4 := &x.EvalID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "EvalCreateIndex": - if r.TryDecodeAsNil() { - x.EvalCreateIndex = 0 - } else { - yyv6 := &x.EvalCreateIndex - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) - } - } - case "JobModifyIndex": - if r.TryDecodeAsNil() { - x.JobModifyIndex = 0 - } else { - yyv8 := &x.JobModifyIndex - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv10 := &x.Index - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv12 := &x.LastContact - yym13 := z.DecBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.DecExt(yyv12) { - } else { - *((*int64)(yyv12)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv14 := &x.KnownLeader - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*bool)(yyv14)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *JobDeregisterResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.EvalID = "" - } else { - yyv17 := &x.EvalID - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.EvalCreateIndex = 0 - } else { - yyv19 := &x.EvalCreateIndex - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*uint64)(yyv19)) = uint64(r.DecodeUint(64)) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.JobModifyIndex = 0 - } else { - yyv21 := &x.JobModifyIndex - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*uint64)(yyv21)) = uint64(r.DecodeUint(64)) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv23 := &x.Index - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*uint64)(yyv23)) = uint64(r.DecodeUint(64)) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv25 := &x.LastContact - yym26 := z.DecBinary() - _ = yym26 - if false { - } else if z.HasExtensions() && z.DecExt(yyv25) { - } else { - *((*int64)(yyv25)) = int64(r.DecodeInt(64)) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv27 := &x.KnownLeader - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*bool)(yyv27)) = r.DecodeBool() - } - } - for { - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj16-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *JobValidateResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeBool(bool(x.DriverConfigValidated)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DriverConfigValidated")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeBool(bool(x.DriverConfigValidated)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.ValidationErrors == nil { - r.EncodeNil() - } else { - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - z.F.EncSliceStringV(x.ValidationErrors, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ValidationErrors")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.ValidationErrors == nil { - r.EncodeNil() - } else { - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - z.F.EncSliceStringV(x.ValidationErrors, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Error)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Error")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Error)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Warnings)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Warnings")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Warnings)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *JobValidateResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *JobValidateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "DriverConfigValidated": - if r.TryDecodeAsNil() { - x.DriverConfigValidated = false - } else { - yyv4 := &x.DriverConfigValidated - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*bool)(yyv4)) = r.DecodeBool() - } - } - case "ValidationErrors": - if r.TryDecodeAsNil() { - x.ValidationErrors = nil - } else { - yyv6 := &x.ValidationErrors - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - z.F.DecSliceStringX(yyv6, false, d) - } - } - case "Error": - if r.TryDecodeAsNil() { - x.Error = "" - } else { - yyv8 := &x.Error - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "Warnings": - if r.TryDecodeAsNil() { - x.Warnings = "" - } else { - yyv10 := &x.Warnings - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *JobValidateResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DriverConfigValidated = false - } else { - yyv13 := &x.DriverConfigValidated - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*bool)(yyv13)) = r.DecodeBool() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ValidationErrors = nil - } else { - yyv15 := &x.ValidationErrors - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - z.F.DecSliceStringX(yyv15, false, d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Error = "" - } else { - yyv17 := &x.Error - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Warnings = "" - } else { - yyv19 := &x.Warnings - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *NodeUpdateResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [10]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(10) - } else { - yynn2 = 10 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else if z.HasExtensions() && z.EncExt(x.HeartbeatTTL) { - } else { - r.EncodeInt(int64(x.HeartbeatTTL)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("HeartbeatTTL")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else if z.HasExtensions() && z.EncExt(x.HeartbeatTTL) { - } else { - r.EncodeInt(int64(x.HeartbeatTTL)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.EvalIDs == nil { - r.EncodeNil() - } else { - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - z.F.EncSliceStringV(x.EvalIDs, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("EvalIDs")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.EvalIDs == nil { - r.EncodeNil() - } else { - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - z.F.EncSliceStringV(x.EvalIDs, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.EvalCreateIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("EvalCreateIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(x.EvalCreateIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeUint(uint64(x.NodeModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("NodeModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeUint(uint64(x.NodeModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.LeaderRPCAddr)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LeaderRPCAddr")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.LeaderRPCAddr)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeInt(int64(x.NumNodes)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("NumNodes")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeInt(int64(x.NumNodes)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Servers == nil { - r.EncodeNil() - } else { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - h.encSlicePtrtoNodeServerInfo(([]*NodeServerInfo)(x.Servers), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Servers")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Servers == nil { - r.EncodeNil() - } else { - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - h.encSlicePtrtoNodeServerInfo(([]*NodeServerInfo)(x.Servers), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym28 := z.EncBinary() - _ = yym28 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym29 := z.EncBinary() - _ = yym29 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym31 := z.EncBinary() - _ = yym31 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym32 := z.EncBinary() - _ = yym32 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *NodeUpdateResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *NodeUpdateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "HeartbeatTTL": - if r.TryDecodeAsNil() { - x.HeartbeatTTL = 0 - } else { - yyv4 := &x.HeartbeatTTL - yym5 := z.DecBinary() - _ = yym5 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { - } else { - *((*int64)(yyv4)) = int64(r.DecodeInt(64)) - } - } - case "EvalIDs": - if r.TryDecodeAsNil() { - x.EvalIDs = nil - } else { - yyv6 := &x.EvalIDs - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - z.F.DecSliceStringX(yyv6, false, d) - } - } - case "EvalCreateIndex": - if r.TryDecodeAsNil() { - x.EvalCreateIndex = 0 - } else { - yyv8 := &x.EvalCreateIndex - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) - } - } - case "NodeModifyIndex": - if r.TryDecodeAsNil() { - x.NodeModifyIndex = 0 - } else { - yyv10 := &x.NodeModifyIndex - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) - } - } - case "LeaderRPCAddr": - if r.TryDecodeAsNil() { - x.LeaderRPCAddr = "" - } else { - yyv12 := &x.LeaderRPCAddr - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*string)(yyv12)) = r.DecodeString() - } - } - case "NumNodes": - if r.TryDecodeAsNil() { - x.NumNodes = 0 - } else { - yyv14 := &x.NumNodes - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*int32)(yyv14)) = int32(r.DecodeInt(32)) - } - } - case "Servers": - if r.TryDecodeAsNil() { - x.Servers = nil - } else { - yyv16 := &x.Servers - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - h.decSlicePtrtoNodeServerInfo((*[]*NodeServerInfo)(yyv16), d) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv18 := &x.Index - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*uint64)(yyv18)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv20 := &x.LastContact - yym21 := z.DecBinary() - _ = yym21 - if false { - } else if z.HasExtensions() && z.DecExt(yyv20) { - } else { - *((*int64)(yyv20)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv22 := &x.KnownLeader - yym23 := z.DecBinary() - _ = yym23 - if false { - } else { - *((*bool)(yyv22)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *NodeUpdateResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.HeartbeatTTL = 0 - } else { - yyv25 := &x.HeartbeatTTL - yym26 := z.DecBinary() - _ = yym26 - if false { - } else if z.HasExtensions() && z.DecExt(yyv25) { - } else { - *((*int64)(yyv25)) = int64(r.DecodeInt(64)) - } - } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l - } else { - yyb24 = r.CheckBreak() - } - if yyb24 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.EvalIDs = nil - } else { - yyv27 := &x.EvalIDs - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - z.F.DecSliceStringX(yyv27, false, d) - } - } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l - } else { - yyb24 = r.CheckBreak() - } - if yyb24 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.EvalCreateIndex = 0 - } else { - yyv29 := &x.EvalCreateIndex - yym30 := z.DecBinary() - _ = yym30 - if false { - } else { - *((*uint64)(yyv29)) = uint64(r.DecodeUint(64)) - } - } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l - } else { - yyb24 = r.CheckBreak() - } - if yyb24 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.NodeModifyIndex = 0 - } else { - yyv31 := &x.NodeModifyIndex - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*uint64)(yyv31)) = uint64(r.DecodeUint(64)) - } - } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l - } else { - yyb24 = r.CheckBreak() - } - if yyb24 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LeaderRPCAddr = "" - } else { - yyv33 := &x.LeaderRPCAddr - yym34 := z.DecBinary() - _ = yym34 - if false { - } else { - *((*string)(yyv33)) = r.DecodeString() - } - } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l - } else { - yyb24 = r.CheckBreak() - } - if yyb24 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.NumNodes = 0 - } else { - yyv35 := &x.NumNodes - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - *((*int32)(yyv35)) = int32(r.DecodeInt(32)) - } - } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l - } else { - yyb24 = r.CheckBreak() - } - if yyb24 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Servers = nil - } else { - yyv37 := &x.Servers - yym38 := z.DecBinary() - _ = yym38 - if false { - } else { - h.decSlicePtrtoNodeServerInfo((*[]*NodeServerInfo)(yyv37), d) - } - } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l - } else { - yyb24 = r.CheckBreak() - } - if yyb24 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv39 := &x.Index - yym40 := z.DecBinary() - _ = yym40 - if false { - } else { - *((*uint64)(yyv39)) = uint64(r.DecodeUint(64)) - } - } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l - } else { - yyb24 = r.CheckBreak() - } - if yyb24 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv41 := &x.LastContact - yym42 := z.DecBinary() - _ = yym42 - if false { - } else if z.HasExtensions() && z.DecExt(yyv41) { - } else { - *((*int64)(yyv41)) = int64(r.DecodeInt(64)) - } - } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l - } else { - yyb24 = r.CheckBreak() - } - if yyb24 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv43 := &x.KnownLeader - yym44 := z.DecBinary() - _ = yym44 - if false { - } else { - *((*bool)(yyv43)) = r.DecodeBool() - } - } - for { - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l - } else { - yyb24 = r.CheckBreak() - } - if yyb24 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj24-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *NodeDrainUpdateResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(6) - } else { - yynn2 = 6 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.EvalIDs == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - z.F.EncSliceStringV(x.EvalIDs, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("EvalIDs")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.EvalIDs == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - z.F.EncSliceStringV(x.EvalIDs, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.EvalCreateIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("EvalCreateIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.EvalCreateIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.NodeModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("NodeModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(x.NodeModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *NodeDrainUpdateResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *NodeDrainUpdateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "EvalIDs": - if r.TryDecodeAsNil() { - x.EvalIDs = nil - } else { - yyv4 := &x.EvalIDs - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - z.F.DecSliceStringX(yyv4, false, d) - } - } - case "EvalCreateIndex": - if r.TryDecodeAsNil() { - x.EvalCreateIndex = 0 - } else { - yyv6 := &x.EvalCreateIndex - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) - } - } - case "NodeModifyIndex": - if r.TryDecodeAsNil() { - x.NodeModifyIndex = 0 - } else { - yyv8 := &x.NodeModifyIndex - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv10 := &x.Index - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv12 := &x.LastContact - yym13 := z.DecBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.DecExt(yyv12) { - } else { - *((*int64)(yyv12)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv14 := &x.KnownLeader - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*bool)(yyv14)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *NodeDrainUpdateResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.EvalIDs = nil - } else { - yyv17 := &x.EvalIDs - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - z.F.DecSliceStringX(yyv17, false, d) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.EvalCreateIndex = 0 - } else { - yyv19 := &x.EvalCreateIndex - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*uint64)(yyv19)) = uint64(r.DecodeUint(64)) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.NodeModifyIndex = 0 - } else { - yyv21 := &x.NodeModifyIndex - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*uint64)(yyv21)) = uint64(r.DecodeUint(64)) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv23 := &x.Index - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*uint64)(yyv23)) = uint64(r.DecodeUint(64)) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv25 := &x.LastContact - yym26 := z.DecBinary() - _ = yym26 - if false { - } else if z.HasExtensions() && z.DecExt(yyv25) { - } else { - *((*int64)(yyv25)) = int64(r.DecodeInt(64)) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv27 := &x.KnownLeader - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*bool)(yyv27)) = r.DecodeBool() - } - } - for { - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj16-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *NodeAllocsResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Allocs == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encSlicePtrtoAllocation(([]*Allocation)(x.Allocs), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Allocs")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Allocs == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encSlicePtrtoAllocation(([]*Allocation)(x.Allocs), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *NodeAllocsResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *NodeAllocsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Allocs": - if r.TryDecodeAsNil() { - x.Allocs = nil - } else { - yyv4 := &x.Allocs - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decSlicePtrtoAllocation((*[]*Allocation)(yyv4), d) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv6 := &x.Index - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv8 := &x.LastContact - yym9 := z.DecBinary() - _ = yym9 - if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else { - *((*int64)(yyv8)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv10 := &x.KnownLeader - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*bool)(yyv10)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *NodeAllocsResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Allocs = nil - } else { - yyv13 := &x.Allocs - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePtrtoAllocation((*[]*Allocation)(yyv13), d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv15 := &x.Index - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv17 := &x.LastContact - yym18 := z.DecBinary() - _ = yym18 - if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else { - *((*int64)(yyv17)) = int64(r.DecodeInt(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv19 := &x.KnownLeader - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*bool)(yyv19)) = r.DecodeBool() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *NodeClientAllocsResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [5]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(5) - } else { - yynn2 = 5 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Allocs == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - z.F.EncMapStringUint64V(x.Allocs, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Allocs")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Allocs == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - z.F.EncMapStringUint64V(x.Allocs, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.MigrateTokens == nil { - r.EncodeNil() - } else { - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - z.F.EncMapStringStringV(x.MigrateTokens, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MigrateTokens")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.MigrateTokens == nil { - r.EncodeNil() - } else { - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - z.F.EncMapStringStringV(x.MigrateTokens, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *NodeClientAllocsResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *NodeClientAllocsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Allocs": - if r.TryDecodeAsNil() { - x.Allocs = nil - } else { - yyv4 := &x.Allocs - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - z.F.DecMapStringUint64X(yyv4, false, d) - } - } - case "MigrateTokens": - if r.TryDecodeAsNil() { - x.MigrateTokens = nil - } else { - yyv6 := &x.MigrateTokens - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - z.F.DecMapStringStringX(yyv6, false, d) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv8 := &x.Index - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv10 := &x.LastContact - yym11 := z.DecBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.DecExt(yyv10) { - } else { - *((*int64)(yyv10)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv12 := &x.KnownLeader - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*bool)(yyv12)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *NodeClientAllocsResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Allocs = nil - } else { - yyv15 := &x.Allocs - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - z.F.DecMapStringUint64X(yyv15, false, d) - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MigrateTokens = nil - } else { - yyv17 := &x.MigrateTokens - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - z.F.DecMapStringStringX(yyv17, false, d) - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv19 := &x.Index - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*uint64)(yyv19)) = uint64(r.DecodeUint(64)) - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv21 := &x.LastContact - yym22 := z.DecBinary() - _ = yym22 - if false { - } else if z.HasExtensions() && z.DecExt(yyv21) { - } else { - *((*int64)(yyv21)) = int64(r.DecodeInt(64)) - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv23 := &x.KnownLeader - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*bool)(yyv23)) = r.DecodeBool() - } - } - for { - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj14-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *SingleNodeResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Node == nil { - r.EncodeNil() - } else { - x.Node.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Node")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Node == nil { - r.EncodeNil() - } else { - x.Node.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *SingleNodeResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *SingleNodeResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Node": - if r.TryDecodeAsNil() { - if x.Node != nil { - x.Node = nil - } - } else { - if x.Node == nil { - x.Node = new(Node) - } - x.Node.CodecDecodeSelf(d) - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv5 := &x.Index - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*uint64)(yyv5)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv7 := &x.LastContact - yym8 := z.DecBinary() - _ = yym8 - if false { - } else if z.HasExtensions() && z.DecExt(yyv7) { - } else { - *((*int64)(yyv7)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv9 := &x.KnownLeader - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - *((*bool)(yyv9)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *SingleNodeResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Node != nil { - x.Node = nil - } - } else { - if x.Node == nil { - x.Node = new(Node) - } - x.Node.CodecDecodeSelf(d) - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv13 := &x.Index - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*uint64)(yyv13)) = uint64(r.DecodeUint(64)) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv15 := &x.LastContact - yym16 := z.DecBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.DecExt(yyv15) { - } else { - *((*int64)(yyv15)) = int64(r.DecodeInt(64)) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv17 := &x.KnownLeader - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*bool)(yyv17)) = r.DecodeBool() - } - } - for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj11-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *NodeListResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Nodes == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encSlicePtrtoNodeListStub(([]*NodeListStub)(x.Nodes), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Nodes")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Nodes == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encSlicePtrtoNodeListStub(([]*NodeListStub)(x.Nodes), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *NodeListResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *NodeListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Nodes": - if r.TryDecodeAsNil() { - x.Nodes = nil - } else { - yyv4 := &x.Nodes - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decSlicePtrtoNodeListStub((*[]*NodeListStub)(yyv4), d) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv6 := &x.Index - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv8 := &x.LastContact - yym9 := z.DecBinary() - _ = yym9 - if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else { - *((*int64)(yyv8)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv10 := &x.KnownLeader - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*bool)(yyv10)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *NodeListResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Nodes = nil - } else { - yyv13 := &x.Nodes - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePtrtoNodeListStub((*[]*NodeListStub)(yyv13), d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv15 := &x.Index - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv17 := &x.LastContact - yym18 := z.DecBinary() - _ = yym18 - if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else { - *((*int64)(yyv17)) = int64(r.DecodeInt(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv19 := &x.KnownLeader - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*bool)(yyv19)) = r.DecodeBool() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *SingleJobResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Job == nil { - r.EncodeNil() - } else { - x.Job.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Job")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Job == nil { - r.EncodeNil() - } else { - x.Job.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *SingleJobResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *SingleJobResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Job": - if r.TryDecodeAsNil() { - if x.Job != nil { - x.Job = nil - } - } else { - if x.Job == nil { - x.Job = new(Job) - } - x.Job.CodecDecodeSelf(d) - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv5 := &x.Index - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*uint64)(yyv5)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv7 := &x.LastContact - yym8 := z.DecBinary() - _ = yym8 - if false { - } else if z.HasExtensions() && z.DecExt(yyv7) { - } else { - *((*int64)(yyv7)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv9 := &x.KnownLeader - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - *((*bool)(yyv9)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *SingleJobResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Job != nil { - x.Job = nil - } - } else { - if x.Job == nil { - x.Job = new(Job) - } - x.Job.CodecDecodeSelf(d) - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv13 := &x.Index - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*uint64)(yyv13)) = uint64(r.DecodeUint(64)) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv15 := &x.LastContact - yym16 := z.DecBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.DecExt(yyv15) { - } else { - *((*int64)(yyv15)) = int64(r.DecodeInt(64)) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv17 := &x.KnownLeader - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*bool)(yyv17)) = r.DecodeBool() - } - } - for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj11-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *JobSummaryResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.JobSummary == nil { - r.EncodeNil() - } else { - x.JobSummary.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("JobSummary")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.JobSummary == nil { - r.EncodeNil() - } else { - x.JobSummary.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *JobSummaryResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *JobSummaryResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "JobSummary": - if r.TryDecodeAsNil() { - if x.JobSummary != nil { - x.JobSummary = nil - } - } else { - if x.JobSummary == nil { - x.JobSummary = new(JobSummary) - } - x.JobSummary.CodecDecodeSelf(d) - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv5 := &x.Index - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*uint64)(yyv5)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv7 := &x.LastContact - yym8 := z.DecBinary() - _ = yym8 - if false { - } else if z.HasExtensions() && z.DecExt(yyv7) { - } else { - *((*int64)(yyv7)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv9 := &x.KnownLeader - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - *((*bool)(yyv9)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *JobSummaryResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.JobSummary != nil { - x.JobSummary = nil - } - } else { - if x.JobSummary == nil { - x.JobSummary = new(JobSummary) - } - x.JobSummary.CodecDecodeSelf(d) - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv13 := &x.Index - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*uint64)(yyv13)) = uint64(r.DecodeUint(64)) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv15 := &x.LastContact - yym16 := z.DecBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.DecExt(yyv15) { - } else { - *((*int64)(yyv15)) = int64(r.DecodeInt(64)) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv17 := &x.KnownLeader - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*bool)(yyv17)) = r.DecodeBool() - } - } - for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj11-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *JobDispatchResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [5]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(5) - } else { - yynn2 = 5 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DispatchedJobID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DispatchedJobID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DispatchedJobID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.EvalID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("EvalID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.EvalID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.EvalCreateIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("EvalCreateIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(x.EvalCreateIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeUint(uint64(x.JobCreateIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("JobCreateIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeUint(uint64(x.JobCreateIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *JobDispatchResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *JobDispatchResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "DispatchedJobID": - if r.TryDecodeAsNil() { - x.DispatchedJobID = "" - } else { - yyv4 := &x.DispatchedJobID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "EvalID": - if r.TryDecodeAsNil() { - x.EvalID = "" - } else { - yyv6 := &x.EvalID - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "EvalCreateIndex": - if r.TryDecodeAsNil() { - x.EvalCreateIndex = 0 - } else { - yyv8 := &x.EvalCreateIndex - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) - } - } - case "JobCreateIndex": - if r.TryDecodeAsNil() { - x.JobCreateIndex = 0 - } else { - yyv10 := &x.JobCreateIndex - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv12 := &x.Index - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*uint64)(yyv12)) = uint64(r.DecodeUint(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *JobDispatchResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DispatchedJobID = "" - } else { - yyv15 := &x.DispatchedJobID - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.EvalID = "" - } else { - yyv17 := &x.EvalID - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.EvalCreateIndex = 0 - } else { - yyv19 := &x.EvalCreateIndex - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*uint64)(yyv19)) = uint64(r.DecodeUint(64)) - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.JobCreateIndex = 0 - } else { - yyv21 := &x.JobCreateIndex - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*uint64)(yyv21)) = uint64(r.DecodeUint(64)) - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv23 := &x.Index - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*uint64)(yyv23)) = uint64(r.DecodeUint(64)) - } - } - for { - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj14-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *JobListResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Jobs == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encSlicePtrtoJobListStub(([]*JobListStub)(x.Jobs), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Jobs")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Jobs == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encSlicePtrtoJobListStub(([]*JobListStub)(x.Jobs), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *JobListResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *JobListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Jobs": - if r.TryDecodeAsNil() { - x.Jobs = nil - } else { - yyv4 := &x.Jobs - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decSlicePtrtoJobListStub((*[]*JobListStub)(yyv4), d) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv6 := &x.Index - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv8 := &x.LastContact - yym9 := z.DecBinary() - _ = yym9 - if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else { - *((*int64)(yyv8)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv10 := &x.KnownLeader - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*bool)(yyv10)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *JobListResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Jobs = nil - } else { - yyv13 := &x.Jobs - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePtrtoJobListStub((*[]*JobListStub)(yyv13), d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv15 := &x.Index - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv17 := &x.LastContact - yym18 := z.DecBinary() - _ = yym18 - if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else { - *((*int64)(yyv17)) = int64(r.DecodeInt(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv19 := &x.KnownLeader - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*bool)(yyv19)) = r.DecodeBool() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *JobVersionsRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [9]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(9) - } else { - yynn2 = 9 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.JobID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("JobID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.JobID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeBool(bool(x.Diffs)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Diffs")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeBool(bool(x.Diffs)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym28 := z.EncBinary() - _ = yym28 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym29 := z.EncBinary() - _ = yym29 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *JobVersionsRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *JobVersionsRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "JobID": - if r.TryDecodeAsNil() { - x.JobID = "" - } else { - yyv4 := &x.JobID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Diffs": - if r.TryDecodeAsNil() { - x.Diffs = false - } else { - yyv6 := &x.Diffs - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*bool)(yyv6)) = r.DecodeBool() - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv8 := &x.Region - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv10 := &x.Namespace - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv12 := &x.MinQueryIndex - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*uint64)(yyv12)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv14 := &x.MaxQueryTime - yym15 := z.DecBinary() - _ = yym15 - if false { - } else if z.HasExtensions() && z.DecExt(yyv14) { - } else { - *((*int64)(yyv14)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv16 := &x.AllowStale - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*bool)(yyv16)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv18 := &x.Prefix - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*string)(yyv18)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv20 := &x.AuthToken - yym21 := z.DecBinary() - _ = yym21 - if false { - } else { - *((*string)(yyv20)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.JobID = "" - } else { - yyv23 := &x.JobID - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l - } else { - yyb22 = r.CheckBreak() - } - if yyb22 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Diffs = false - } else { - yyv25 := &x.Diffs - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*bool)(yyv25)) = r.DecodeBool() - } - } - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l - } else { - yyb22 = r.CheckBreak() - } - if yyb22 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv27 := &x.Region - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*string)(yyv27)) = r.DecodeString() - } - } - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l - } else { - yyb22 = r.CheckBreak() - } - if yyb22 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv29 := &x.Namespace - yym30 := z.DecBinary() - _ = yym30 - if false { - } else { - *((*string)(yyv29)) = r.DecodeString() - } - } - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l - } else { - yyb22 = r.CheckBreak() - } - if yyb22 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv31 := &x.MinQueryIndex - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*uint64)(yyv31)) = uint64(r.DecodeUint(64)) - } - } - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l - } else { - yyb22 = r.CheckBreak() - } - if yyb22 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv33 := &x.MaxQueryTime - yym34 := z.DecBinary() - _ = yym34 - if false { - } else if z.HasExtensions() && z.DecExt(yyv33) { - } else { - *((*int64)(yyv33)) = int64(r.DecodeInt(64)) - } - } - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l - } else { - yyb22 = r.CheckBreak() - } - if yyb22 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv35 := &x.AllowStale - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - *((*bool)(yyv35)) = r.DecodeBool() - } - } - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l - } else { - yyb22 = r.CheckBreak() - } - if yyb22 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv37 := &x.Prefix - yym38 := z.DecBinary() - _ = yym38 - if false { - } else { - *((*string)(yyv37)) = r.DecodeString() - } - } - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l - } else { - yyb22 = r.CheckBreak() - } - if yyb22 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv39 := &x.AuthToken - yym40 := z.DecBinary() - _ = yym40 - if false { - } else { - *((*string)(yyv39)) = r.DecodeString() - } - } - for { - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l - } else { - yyb22 = r.CheckBreak() - } - if yyb22 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj22-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *JobVersionsResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [5]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(5) - } else { - yynn2 = 5 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Versions == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encSlicePtrtoJob(([]*Job)(x.Versions), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Versions")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Versions == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encSlicePtrtoJob(([]*Job)(x.Versions), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Diffs == nil { - r.EncodeNil() - } else { - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - h.encSlicePtrtoJobDiff(([]*JobDiff)(x.Diffs), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Diffs")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Diffs == nil { - r.EncodeNil() - } else { - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - h.encSlicePtrtoJobDiff(([]*JobDiff)(x.Diffs), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *JobVersionsResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *JobVersionsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Versions": - if r.TryDecodeAsNil() { - x.Versions = nil - } else { - yyv4 := &x.Versions - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decSlicePtrtoJob((*[]*Job)(yyv4), d) - } - } - case "Diffs": - if r.TryDecodeAsNil() { - x.Diffs = nil - } else { - yyv6 := &x.Diffs - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - h.decSlicePtrtoJobDiff((*[]*JobDiff)(yyv6), d) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv8 := &x.Index - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv10 := &x.LastContact - yym11 := z.DecBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.DecExt(yyv10) { - } else { - *((*int64)(yyv10)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv12 := &x.KnownLeader - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*bool)(yyv12)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *JobVersionsResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Versions = nil - } else { - yyv15 := &x.Versions - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - h.decSlicePtrtoJob((*[]*Job)(yyv15), d) - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Diffs = nil - } else { - yyv17 := &x.Diffs - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - h.decSlicePtrtoJobDiff((*[]*JobDiff)(yyv17), d) - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv19 := &x.Index - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*uint64)(yyv19)) = uint64(r.DecodeUint(64)) - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv21 := &x.LastContact - yym22 := z.DecBinary() - _ = yym22 - if false { - } else if z.HasExtensions() && z.DecExt(yyv21) { - } else { - *((*int64)(yyv21)) = int64(r.DecodeInt(64)) - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv23 := &x.KnownLeader - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*bool)(yyv23)) = r.DecodeBool() - } - } - for { - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj14-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *JobPlanResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(8) - } else { - yynn2 = 8 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Annotations == nil { - r.EncodeNil() - } else { - x.Annotations.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Annotations")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Annotations == nil { - r.EncodeNil() - } else { - x.Annotations.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.FailedTGAllocs == nil { - r.EncodeNil() - } else { - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - h.encMapstringPtrtoAllocMetric((map[string]*AllocMetric)(x.FailedTGAllocs), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("FailedTGAllocs")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.FailedTGAllocs == nil { - r.EncodeNil() - } else { - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - h.encMapstringPtrtoAllocMetric((map[string]*AllocMetric)(x.FailedTGAllocs), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.JobModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("JobModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(x.JobModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.CreatedEvals == nil { - r.EncodeNil() - } else { - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - h.encSlicePtrtoEvaluation(([]*Evaluation)(x.CreatedEvals), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("CreatedEvals")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.CreatedEvals == nil { - r.EncodeNil() - } else { - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - h.encSlicePtrtoEvaluation(([]*Evaluation)(x.CreatedEvals), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Diff == nil { - r.EncodeNil() - } else { - yym16 := z.EncBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.EncExt(x.Diff) { - } else { - z.EncFallback(x.Diff) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Diff")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Diff == nil { - r.EncodeNil() - } else { - yym17 := z.EncBinary() - _ = yym17 - if false { - } else if z.HasExtensions() && z.EncExt(x.Diff) { - } else { - z.EncFallback(x.Diff) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yy19 := &x.NextPeriodicLaunch - yym20 := z.EncBinary() - _ = yym20 - if false { - } else if yym21 := z.TimeRtidIfBinc(); yym21 != 0 { - r.EncodeBuiltin(yym21, yy19) - } else if z.HasExtensions() && z.EncExt(yy19) { - } else if yym20 { - z.EncBinaryMarshal(yy19) - } else if !yym20 && z.IsJSONHandle() { - z.EncJSONMarshal(yy19) - } else { - z.EncFallback(yy19) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("NextPeriodicLaunch")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yy22 := &x.NextPeriodicLaunch - yym23 := z.EncBinary() - _ = yym23 - if false { - } else if yym24 := z.TimeRtidIfBinc(); yym24 != 0 { - r.EncodeBuiltin(yym24, yy22) - } else if z.HasExtensions() && z.EncExt(yy22) { - } else if yym23 { - z.EncBinaryMarshal(yy22) - } else if !yym23 && z.IsJSONHandle() { - z.EncJSONMarshal(yy22) - } else { - z.EncFallback(yy22) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Warnings)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Warnings")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym27 := z.EncBinary() - _ = yym27 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Warnings)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym29 := z.EncBinary() - _ = yym29 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym30 := z.EncBinary() - _ = yym30 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *JobPlanResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *JobPlanResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Annotations": - if r.TryDecodeAsNil() { - if x.Annotations != nil { - x.Annotations = nil - } - } else { - if x.Annotations == nil { - x.Annotations = new(PlanAnnotations) - } - x.Annotations.CodecDecodeSelf(d) - } - case "FailedTGAllocs": - if r.TryDecodeAsNil() { - x.FailedTGAllocs = nil - } else { - yyv5 := &x.FailedTGAllocs - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - h.decMapstringPtrtoAllocMetric((*map[string]*AllocMetric)(yyv5), d) - } - } - case "JobModifyIndex": - if r.TryDecodeAsNil() { - x.JobModifyIndex = 0 - } else { - yyv7 := &x.JobModifyIndex - yym8 := z.DecBinary() - _ = yym8 - if false { - } else { - *((*uint64)(yyv7)) = uint64(r.DecodeUint(64)) - } - } - case "CreatedEvals": - if r.TryDecodeAsNil() { - x.CreatedEvals = nil - } else { - yyv9 := &x.CreatedEvals - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - h.decSlicePtrtoEvaluation((*[]*Evaluation)(yyv9), d) - } - } - case "Diff": - if r.TryDecodeAsNil() { - if x.Diff != nil { - x.Diff = nil - } - } else { - if x.Diff == nil { - x.Diff = new(JobDiff) - } - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(x.Diff) { - } else { - z.DecFallback(x.Diff, false) - } - } - case "NextPeriodicLaunch": - if r.TryDecodeAsNil() { - x.NextPeriodicLaunch = time.Time{} - } else { - yyv13 := &x.NextPeriodicLaunch - yym14 := z.DecBinary() - _ = yym14 - if false { - } else if yym15 := z.TimeRtidIfBinc(); yym15 != 0 { - r.DecodeBuiltin(yym15, yyv13) - } else if z.HasExtensions() && z.DecExt(yyv13) { - } else if yym14 { - z.DecBinaryUnmarshal(yyv13) - } else if !yym14 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv13) - } else { - z.DecFallback(yyv13, false) - } - } - case "Warnings": - if r.TryDecodeAsNil() { - x.Warnings = "" - } else { - yyv16 := &x.Warnings - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv18 := &x.Index - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*uint64)(yyv18)) = uint64(r.DecodeUint(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *JobPlanResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Annotations != nil { - x.Annotations = nil - } - } else { - if x.Annotations == nil { - x.Annotations = new(PlanAnnotations) - } - x.Annotations.CodecDecodeSelf(d) - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.FailedTGAllocs = nil - } else { - yyv22 := &x.FailedTGAllocs - yym23 := z.DecBinary() - _ = yym23 - if false { - } else { - h.decMapstringPtrtoAllocMetric((*map[string]*AllocMetric)(yyv22), d) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.JobModifyIndex = 0 - } else { - yyv24 := &x.JobModifyIndex - yym25 := z.DecBinary() - _ = yym25 - if false { - } else { - *((*uint64)(yyv24)) = uint64(r.DecodeUint(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.CreatedEvals = nil - } else { - yyv26 := &x.CreatedEvals - yym27 := z.DecBinary() - _ = yym27 - if false { - } else { - h.decSlicePtrtoEvaluation((*[]*Evaluation)(yyv26), d) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Diff != nil { - x.Diff = nil - } - } else { - if x.Diff == nil { - x.Diff = new(JobDiff) - } - yym29 := z.DecBinary() - _ = yym29 - if false { - } else if z.HasExtensions() && z.DecExt(x.Diff) { - } else { - z.DecFallback(x.Diff, false) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.NextPeriodicLaunch = time.Time{} - } else { - yyv30 := &x.NextPeriodicLaunch - yym31 := z.DecBinary() - _ = yym31 - if false { - } else if yym32 := z.TimeRtidIfBinc(); yym32 != 0 { - r.DecodeBuiltin(yym32, yyv30) - } else if z.HasExtensions() && z.DecExt(yyv30) { - } else if yym31 { - z.DecBinaryUnmarshal(yyv30) - } else if !yym31 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv30) - } else { - z.DecFallback(yyv30, false) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Warnings = "" - } else { - yyv33 := &x.Warnings - yym34 := z.DecBinary() - _ = yym34 - if false { - } else { - *((*string)(yyv33)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv35 := &x.Index - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - *((*uint64)(yyv35)) = uint64(r.DecodeUint(64)) - } - } - for { - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj20-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *SingleAllocResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Alloc == nil { - r.EncodeNil() - } else { - x.Alloc.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Alloc")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Alloc == nil { - r.EncodeNil() - } else { - x.Alloc.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *SingleAllocResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *SingleAllocResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Alloc": - if r.TryDecodeAsNil() { - if x.Alloc != nil { - x.Alloc = nil - } - } else { - if x.Alloc == nil { - x.Alloc = new(Allocation) - } - x.Alloc.CodecDecodeSelf(d) - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv5 := &x.Index - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*uint64)(yyv5)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv7 := &x.LastContact - yym8 := z.DecBinary() - _ = yym8 - if false { - } else if z.HasExtensions() && z.DecExt(yyv7) { - } else { - *((*int64)(yyv7)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv9 := &x.KnownLeader - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - *((*bool)(yyv9)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *SingleAllocResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Alloc != nil { - x.Alloc = nil - } - } else { - if x.Alloc == nil { - x.Alloc = new(Allocation) - } - x.Alloc.CodecDecodeSelf(d) - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv13 := &x.Index - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*uint64)(yyv13)) = uint64(r.DecodeUint(64)) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv15 := &x.LastContact - yym16 := z.DecBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.DecExt(yyv15) { - } else { - *((*int64)(yyv15)) = int64(r.DecodeInt(64)) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv17 := &x.KnownLeader - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*bool)(yyv17)) = r.DecodeBool() - } - } - for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj11-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *AllocsGetResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Allocs == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encSlicePtrtoAllocation(([]*Allocation)(x.Allocs), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Allocs")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Allocs == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encSlicePtrtoAllocation(([]*Allocation)(x.Allocs), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *AllocsGetResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *AllocsGetResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Allocs": - if r.TryDecodeAsNil() { - x.Allocs = nil - } else { - yyv4 := &x.Allocs - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decSlicePtrtoAllocation((*[]*Allocation)(yyv4), d) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv6 := &x.Index - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv8 := &x.LastContact - yym9 := z.DecBinary() - _ = yym9 - if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else { - *((*int64)(yyv8)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv10 := &x.KnownLeader - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*bool)(yyv10)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *AllocsGetResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Allocs = nil - } else { - yyv13 := &x.Allocs - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePtrtoAllocation((*[]*Allocation)(yyv13), d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv15 := &x.Index - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv17 := &x.LastContact - yym18 := z.DecBinary() - _ = yym18 - if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else { - *((*int64)(yyv17)) = int64(r.DecodeInt(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv19 := &x.KnownLeader - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*bool)(yyv19)) = r.DecodeBool() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *JobAllocationsResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Allocations == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Allocations")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Allocations == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *JobAllocationsResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *JobAllocationsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Allocations": - if r.TryDecodeAsNil() { - x.Allocations = nil - } else { - yyv4 := &x.Allocations - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(yyv4), d) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv6 := &x.Index - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv8 := &x.LastContact - yym9 := z.DecBinary() - _ = yym9 - if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else { - *((*int64)(yyv8)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv10 := &x.KnownLeader - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*bool)(yyv10)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *JobAllocationsResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Allocations = nil - } else { - yyv13 := &x.Allocations - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(yyv13), d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv15 := &x.Index - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv17 := &x.LastContact - yym18 := z.DecBinary() - _ = yym18 - if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else { - *((*int64)(yyv17)) = int64(r.DecodeInt(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv19 := &x.KnownLeader - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*bool)(yyv19)) = r.DecodeBool() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *JobEvaluationsResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Evaluations == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evaluations), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Evaluations")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Evaluations == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evaluations), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *JobEvaluationsResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *JobEvaluationsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Evaluations": - if r.TryDecodeAsNil() { - x.Evaluations = nil - } else { - yyv4 := &x.Evaluations - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decSlicePtrtoEvaluation((*[]*Evaluation)(yyv4), d) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv6 := &x.Index - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv8 := &x.LastContact - yym9 := z.DecBinary() - _ = yym9 - if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else { - *((*int64)(yyv8)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv10 := &x.KnownLeader - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*bool)(yyv10)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *JobEvaluationsResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Evaluations = nil - } else { - yyv13 := &x.Evaluations - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePtrtoEvaluation((*[]*Evaluation)(yyv13), d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv15 := &x.Index - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv17 := &x.LastContact - yym18 := z.DecBinary() - _ = yym18 - if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else { - *((*int64)(yyv17)) = int64(r.DecodeInt(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv19 := &x.KnownLeader - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*bool)(yyv19)) = r.DecodeBool() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *SingleEvalResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Eval == nil { - r.EncodeNil() - } else { - x.Eval.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Eval")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Eval == nil { - r.EncodeNil() - } else { - x.Eval.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *SingleEvalResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *SingleEvalResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Eval": - if r.TryDecodeAsNil() { - if x.Eval != nil { - x.Eval = nil - } - } else { - if x.Eval == nil { - x.Eval = new(Evaluation) - } - x.Eval.CodecDecodeSelf(d) - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv5 := &x.Index - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*uint64)(yyv5)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv7 := &x.LastContact - yym8 := z.DecBinary() - _ = yym8 - if false { - } else if z.HasExtensions() && z.DecExt(yyv7) { - } else { - *((*int64)(yyv7)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv9 := &x.KnownLeader - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - *((*bool)(yyv9)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *SingleEvalResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Eval != nil { - x.Eval = nil - } - } else { - if x.Eval == nil { - x.Eval = new(Evaluation) - } - x.Eval.CodecDecodeSelf(d) - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv13 := &x.Index - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*uint64)(yyv13)) = uint64(r.DecodeUint(64)) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv15 := &x.LastContact - yym16 := z.DecBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.DecExt(yyv15) { - } else { - *((*int64)(yyv15)) = int64(r.DecodeInt(64)) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv17 := &x.KnownLeader - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*bool)(yyv17)) = r.DecodeBool() - } - } - for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj11-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *EvalDequeueResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(6) - } else { - yynn2 = 6 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Eval == nil { - r.EncodeNil() - } else { - x.Eval.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Eval")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Eval == nil { - r.EncodeNil() - } else { - x.Eval.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Token)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Token")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Token)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.WaitIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("WaitIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(x.WaitIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *EvalDequeueResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *EvalDequeueResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Eval": - if r.TryDecodeAsNil() { - if x.Eval != nil { - x.Eval = nil - } - } else { - if x.Eval == nil { - x.Eval = new(Evaluation) - } - x.Eval.CodecDecodeSelf(d) - } - case "Token": - if r.TryDecodeAsNil() { - x.Token = "" - } else { - yyv5 := &x.Token - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*string)(yyv5)) = r.DecodeString() - } - } - case "WaitIndex": - if r.TryDecodeAsNil() { - x.WaitIndex = 0 - } else { - yyv7 := &x.WaitIndex - yym8 := z.DecBinary() - _ = yym8 - if false { - } else { - *((*uint64)(yyv7)) = uint64(r.DecodeUint(64)) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv9 := &x.Index - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - *((*uint64)(yyv9)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv11 := &x.LastContact - yym12 := z.DecBinary() - _ = yym12 - if false { - } else if z.HasExtensions() && z.DecExt(yyv11) { - } else { - *((*int64)(yyv11)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv13 := &x.KnownLeader - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*bool)(yyv13)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *EvalDequeueResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Eval != nil { - x.Eval = nil - } - } else { - if x.Eval == nil { - x.Eval = new(Evaluation) - } - x.Eval.CodecDecodeSelf(d) - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Token = "" - } else { - yyv17 := &x.Token - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.WaitIndex = 0 - } else { - yyv19 := &x.WaitIndex - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*uint64)(yyv19)) = uint64(r.DecodeUint(64)) - } - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv21 := &x.Index - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*uint64)(yyv21)) = uint64(r.DecodeUint(64)) - } - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv23 := &x.LastContact - yym24 := z.DecBinary() - _ = yym24 - if false { - } else if z.HasExtensions() && z.DecExt(yyv23) { - } else { - *((*int64)(yyv23)) = int64(r.DecodeInt(64)) - } - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv25 := &x.KnownLeader - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*bool)(yyv25)) = r.DecodeBool() - } - } - for { - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj15-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *PlanResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(2) - } else { - yynn2 = 2 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Result == nil { - r.EncodeNil() - } else { - x.Result.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Result")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Result == nil { - r.EncodeNil() - } else { - x.Result.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *PlanResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *PlanResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Result": - if r.TryDecodeAsNil() { - if x.Result != nil { - x.Result = nil - } - } else { - if x.Result == nil { - x.Result = new(PlanResult) - } - x.Result.CodecDecodeSelf(d) - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv5 := &x.Index - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*uint64)(yyv5)) = uint64(r.DecodeUint(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *PlanResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Result != nil { - x.Result = nil - } - } else { - if x.Result == nil { - x.Result = new(PlanResult) - } - x.Result.CodecDecodeSelf(d) - } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l - } else { - yyb7 = r.CheckBreak() - } - if yyb7 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv9 := &x.Index - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - *((*uint64)(yyv9)) = uint64(r.DecodeUint(64)) - } - } - for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l - } else { - yyb7 = r.CheckBreak() - } - if yyb7 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj7-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *AllocListResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Allocations == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Allocations")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Allocations == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *AllocListResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *AllocListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Allocations": - if r.TryDecodeAsNil() { - x.Allocations = nil - } else { - yyv4 := &x.Allocations - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(yyv4), d) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv6 := &x.Index - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv8 := &x.LastContact - yym9 := z.DecBinary() - _ = yym9 - if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else { - *((*int64)(yyv8)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv10 := &x.KnownLeader - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*bool)(yyv10)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *AllocListResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Allocations = nil - } else { - yyv13 := &x.Allocations - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(yyv13), d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv15 := &x.Index - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv17 := &x.LastContact - yym18 := z.DecBinary() - _ = yym18 - if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else { - *((*int64)(yyv17)) = int64(r.DecodeInt(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv19 := &x.KnownLeader - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*bool)(yyv19)) = r.DecodeBool() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *DeploymentListResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Deployments == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encSlicePtrtoDeployment(([]*Deployment)(x.Deployments), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Deployments")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Deployments == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encSlicePtrtoDeployment(([]*Deployment)(x.Deployments), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *DeploymentListResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *DeploymentListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Deployments": - if r.TryDecodeAsNil() { - x.Deployments = nil - } else { - yyv4 := &x.Deployments - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decSlicePtrtoDeployment((*[]*Deployment)(yyv4), d) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv6 := &x.Index - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv8 := &x.LastContact - yym9 := z.DecBinary() - _ = yym9 - if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else { - *((*int64)(yyv8)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv10 := &x.KnownLeader - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*bool)(yyv10)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *DeploymentListResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Deployments = nil - } else { - yyv13 := &x.Deployments - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePtrtoDeployment((*[]*Deployment)(yyv13), d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv15 := &x.Index - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv17 := &x.LastContact - yym18 := z.DecBinary() - _ = yym18 - if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else { - *((*int64)(yyv17)) = int64(r.DecodeInt(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv19 := &x.KnownLeader - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*bool)(yyv19)) = r.DecodeBool() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *EvalListResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Evaluations == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evaluations), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Evaluations")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Evaluations == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evaluations), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *EvalListResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *EvalListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Evaluations": - if r.TryDecodeAsNil() { - x.Evaluations = nil - } else { - yyv4 := &x.Evaluations - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decSlicePtrtoEvaluation((*[]*Evaluation)(yyv4), d) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv6 := &x.Index - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv8 := &x.LastContact - yym9 := z.DecBinary() - _ = yym9 - if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else { - *((*int64)(yyv8)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv10 := &x.KnownLeader - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*bool)(yyv10)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *EvalListResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Evaluations = nil - } else { - yyv13 := &x.Evaluations - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePtrtoEvaluation((*[]*Evaluation)(yyv13), d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv15 := &x.Index - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv17 := &x.LastContact - yym18 := z.DecBinary() - _ = yym18 - if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else { - *((*int64)(yyv17)) = int64(r.DecodeInt(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv19 := &x.KnownLeader - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*bool)(yyv19)) = r.DecodeBool() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *EvalAllocationsResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Allocations == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Allocations")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Allocations == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *EvalAllocationsResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *EvalAllocationsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Allocations": - if r.TryDecodeAsNil() { - x.Allocations = nil - } else { - yyv4 := &x.Allocations - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(yyv4), d) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv6 := &x.Index - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv8 := &x.LastContact - yym9 := z.DecBinary() - _ = yym9 - if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else { - *((*int64)(yyv8)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv10 := &x.KnownLeader - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*bool)(yyv10)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *EvalAllocationsResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Allocations = nil - } else { - yyv13 := &x.Allocations - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(yyv13), d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv15 := &x.Index - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv17 := &x.LastContact - yym18 := z.DecBinary() - _ = yym18 - if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else { - *((*int64)(yyv17)) = int64(r.DecodeInt(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv19 := &x.KnownLeader - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*bool)(yyv19)) = r.DecodeBool() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *PeriodicForceResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(3) - } else { - yynn2 = 3 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.EvalID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("EvalID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.EvalID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.EvalCreateIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("EvalCreateIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.EvalCreateIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *PeriodicForceResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *PeriodicForceResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "EvalID": - if r.TryDecodeAsNil() { - x.EvalID = "" - } else { - yyv4 := &x.EvalID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "EvalCreateIndex": - if r.TryDecodeAsNil() { - x.EvalCreateIndex = 0 - } else { - yyv6 := &x.EvalCreateIndex - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv8 := &x.Index - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *PeriodicForceResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.EvalID = "" - } else { - yyv11 := &x.EvalID - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - *((*string)(yyv11)) = r.DecodeString() - } - } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.EvalCreateIndex = 0 - } else { - yyv13 := &x.EvalCreateIndex - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*uint64)(yyv13)) = uint64(r.DecodeUint(64)) - } - } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv15 := &x.Index - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) - } - } - for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj10-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *DeploymentUpdateResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [5]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(5) - } else { - yynn2 = 5 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.EvalID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("EvalID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.EvalID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.EvalCreateIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("EvalCreateIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.EvalCreateIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.DeploymentModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DeploymentModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(x.DeploymentModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.RevertedJobVersion == nil { - r.EncodeNil() - } else { - yy13 := *x.RevertedJobVersion - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeUint(uint64(yy13)) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("RevertedJobVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.RevertedJobVersion == nil { - r.EncodeNil() - } else { - yy15 := *x.RevertedJobVersion - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeUint(uint64(yy15)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym18 := z.EncBinary() - _ = yym18 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *DeploymentUpdateResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *DeploymentUpdateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "EvalID": - if r.TryDecodeAsNil() { - x.EvalID = "" - } else { - yyv4 := &x.EvalID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "EvalCreateIndex": - if r.TryDecodeAsNil() { - x.EvalCreateIndex = 0 - } else { - yyv6 := &x.EvalCreateIndex - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) - } - } - case "DeploymentModifyIndex": - if r.TryDecodeAsNil() { - x.DeploymentModifyIndex = 0 - } else { - yyv8 := &x.DeploymentModifyIndex - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) - } - } - case "RevertedJobVersion": - if r.TryDecodeAsNil() { - if x.RevertedJobVersion != nil { - x.RevertedJobVersion = nil - } - } else { - if x.RevertedJobVersion == nil { - x.RevertedJobVersion = new(uint64) - } - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*uint64)(x.RevertedJobVersion)) = uint64(r.DecodeUint(64)) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv12 := &x.Index - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*uint64)(yyv12)) = uint64(r.DecodeUint(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *DeploymentUpdateResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.EvalID = "" - } else { - yyv15 := &x.EvalID - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.EvalCreateIndex = 0 - } else { - yyv17 := &x.EvalCreateIndex - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*uint64)(yyv17)) = uint64(r.DecodeUint(64)) - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DeploymentModifyIndex = 0 - } else { - yyv19 := &x.DeploymentModifyIndex - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*uint64)(yyv19)) = uint64(r.DecodeUint(64)) - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.RevertedJobVersion != nil { - x.RevertedJobVersion = nil - } - } else { - if x.RevertedJobVersion == nil { - x.RevertedJobVersion = new(uint64) - } - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*uint64)(x.RevertedJobVersion)) = uint64(r.DecodeUint(64)) - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv23 := &x.Index - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*uint64)(yyv23)) = uint64(r.DecodeUint(64)) - } - } - for { - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj14-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *Node) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [19]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(19) - } else { - yynn2 = 19 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.SecretID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("SecretID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.SecretID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Datacenter)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Datacenter")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Datacenter)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Name)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Name")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Name)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.HTTPAddr)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("HTTPAddr")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.HTTPAddr)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeBool(bool(x.TLSEnabled)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("TLSEnabled")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeBool(bool(x.TLSEnabled)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Attributes == nil { - r.EncodeNil() - } else { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - z.F.EncMapStringStringV(x.Attributes, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Attributes")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Attributes == nil { - r.EncodeNil() - } else { - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - z.F.EncMapStringStringV(x.Attributes, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Resources == nil { - r.EncodeNil() - } else { - x.Resources.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Resources")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Resources == nil { - r.EncodeNil() - } else { - x.Resources.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Reserved == nil { - r.EncodeNil() - } else { - x.Reserved.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Reserved")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Reserved == nil { - r.EncodeNil() - } else { - x.Reserved.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Links == nil { - r.EncodeNil() - } else { - yym31 := z.EncBinary() - _ = yym31 - if false { - } else { - z.F.EncMapStringStringV(x.Links, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Links")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Links == nil { - r.EncodeNil() - } else { - yym32 := z.EncBinary() - _ = yym32 - if false { - } else { - z.F.EncMapStringStringV(x.Links, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Meta == nil { - r.EncodeNil() - } else { - yym34 := z.EncBinary() - _ = yym34 - if false { - } else { - z.F.EncMapStringStringV(x.Meta, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Meta")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Meta == nil { - r.EncodeNil() - } else { - yym35 := z.EncBinary() - _ = yym35 - if false { - } else { - z.F.EncMapStringStringV(x.Meta, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym37 := z.EncBinary() - _ = yym37 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.NodeClass)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("NodeClass")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym38 := z.EncBinary() - _ = yym38 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.NodeClass)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym40 := z.EncBinary() - _ = yym40 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ComputedClass)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ComputedClass")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym41 := z.EncBinary() - _ = yym41 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ComputedClass)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym43 := z.EncBinary() - _ = yym43 - if false { - } else { - r.EncodeBool(bool(x.Drain)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Drain")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym44 := z.EncBinary() - _ = yym44 - if false { - } else { - r.EncodeBool(bool(x.Drain)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym46 := z.EncBinary() - _ = yym46 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Status)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Status")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym47 := z.EncBinary() - _ = yym47 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Status)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym49 := z.EncBinary() - _ = yym49 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.StatusDescription)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("StatusDescription")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym50 := z.EncBinary() - _ = yym50 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.StatusDescription)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym52 := z.EncBinary() - _ = yym52 - if false { - } else { - r.EncodeInt(int64(x.StatusUpdatedAt)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("StatusUpdatedAt")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym53 := z.EncBinary() - _ = yym53 - if false { - } else { - r.EncodeInt(int64(x.StatusUpdatedAt)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym55 := z.EncBinary() - _ = yym55 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("CreateIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym56 := z.EncBinary() - _ = yym56 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym58 := z.EncBinary() - _ = yym58 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym59 := z.EncBinary() - _ = yym59 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *Node) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "ID": - if r.TryDecodeAsNil() { - x.ID = "" - } else { - yyv4 := &x.ID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "SecretID": - if r.TryDecodeAsNil() { - x.SecretID = "" - } else { - yyv6 := &x.SecretID - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Datacenter": - if r.TryDecodeAsNil() { - x.Datacenter = "" - } else { - yyv8 := &x.Datacenter - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv10 := &x.Name - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - case "HTTPAddr": - if r.TryDecodeAsNil() { - x.HTTPAddr = "" - } else { - yyv12 := &x.HTTPAddr - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*string)(yyv12)) = r.DecodeString() - } - } - case "TLSEnabled": - if r.TryDecodeAsNil() { - x.TLSEnabled = false - } else { - yyv14 := &x.TLSEnabled - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*bool)(yyv14)) = r.DecodeBool() - } - } - case "Attributes": - if r.TryDecodeAsNil() { - x.Attributes = nil - } else { - yyv16 := &x.Attributes - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - z.F.DecMapStringStringX(yyv16, false, d) - } - } - case "Resources": - if r.TryDecodeAsNil() { - if x.Resources != nil { - x.Resources = nil - } - } else { - if x.Resources == nil { - x.Resources = new(Resources) - } - x.Resources.CodecDecodeSelf(d) - } - case "Reserved": - if r.TryDecodeAsNil() { - if x.Reserved != nil { - x.Reserved = nil - } - } else { - if x.Reserved == nil { - x.Reserved = new(Resources) - } - x.Reserved.CodecDecodeSelf(d) - } - case "Links": - if r.TryDecodeAsNil() { - x.Links = nil - } else { - yyv20 := &x.Links - yym21 := z.DecBinary() - _ = yym21 - if false { - } else { - z.F.DecMapStringStringX(yyv20, false, d) - } - } - case "Meta": - if r.TryDecodeAsNil() { - x.Meta = nil - } else { - yyv22 := &x.Meta - yym23 := z.DecBinary() - _ = yym23 - if false { - } else { - z.F.DecMapStringStringX(yyv22, false, d) - } - } - case "NodeClass": - if r.TryDecodeAsNil() { - x.NodeClass = "" - } else { - yyv24 := &x.NodeClass - yym25 := z.DecBinary() - _ = yym25 - if false { - } else { - *((*string)(yyv24)) = r.DecodeString() - } - } - case "ComputedClass": - if r.TryDecodeAsNil() { - x.ComputedClass = "" - } else { - yyv26 := &x.ComputedClass - yym27 := z.DecBinary() - _ = yym27 - if false { - } else { - *((*string)(yyv26)) = r.DecodeString() - } - } - case "Drain": - if r.TryDecodeAsNil() { - x.Drain = false - } else { - yyv28 := &x.Drain - yym29 := z.DecBinary() - _ = yym29 - if false { - } else { - *((*bool)(yyv28)) = r.DecodeBool() - } - } - case "Status": - if r.TryDecodeAsNil() { - x.Status = "" - } else { - yyv30 := &x.Status - yym31 := z.DecBinary() - _ = yym31 - if false { - } else { - *((*string)(yyv30)) = r.DecodeString() - } - } - case "StatusDescription": - if r.TryDecodeAsNil() { - x.StatusDescription = "" - } else { - yyv32 := &x.StatusDescription - yym33 := z.DecBinary() - _ = yym33 - if false { - } else { - *((*string)(yyv32)) = r.DecodeString() - } - } - case "StatusUpdatedAt": - if r.TryDecodeAsNil() { - x.StatusUpdatedAt = 0 - } else { - yyv34 := &x.StatusUpdatedAt - yym35 := z.DecBinary() - _ = yym35 - if false { - } else { - *((*int64)(yyv34)) = int64(r.DecodeInt(64)) - } - } - case "CreateIndex": - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv36 := &x.CreateIndex - yym37 := z.DecBinary() - _ = yym37 - if false { - } else { - *((*uint64)(yyv36)) = uint64(r.DecodeUint(64)) - } - } - case "ModifyIndex": - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv38 := &x.ModifyIndex - yym39 := z.DecBinary() - _ = yym39 - if false { - } else { - *((*uint64)(yyv38)) = uint64(r.DecodeUint(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *Node) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ID = "" - } else { - yyv41 := &x.ID - yym42 := z.DecBinary() - _ = yym42 - if false { - } else { - *((*string)(yyv41)) = r.DecodeString() - } - } - yyj40++ - if yyhl40 { - yyb40 = yyj40 > l - } else { - yyb40 = r.CheckBreak() - } - if yyb40 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.SecretID = "" - } else { - yyv43 := &x.SecretID - yym44 := z.DecBinary() - _ = yym44 - if false { - } else { - *((*string)(yyv43)) = r.DecodeString() - } - } - yyj40++ - if yyhl40 { - yyb40 = yyj40 > l - } else { - yyb40 = r.CheckBreak() - } - if yyb40 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Datacenter = "" - } else { - yyv45 := &x.Datacenter - yym46 := z.DecBinary() - _ = yym46 - if false { - } else { - *((*string)(yyv45)) = r.DecodeString() - } - } - yyj40++ - if yyhl40 { - yyb40 = yyj40 > l - } else { - yyb40 = r.CheckBreak() - } - if yyb40 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv47 := &x.Name - yym48 := z.DecBinary() - _ = yym48 - if false { - } else { - *((*string)(yyv47)) = r.DecodeString() - } - } - yyj40++ - if yyhl40 { - yyb40 = yyj40 > l - } else { - yyb40 = r.CheckBreak() - } - if yyb40 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.HTTPAddr = "" - } else { - yyv49 := &x.HTTPAddr - yym50 := z.DecBinary() - _ = yym50 - if false { - } else { - *((*string)(yyv49)) = r.DecodeString() - } - } - yyj40++ - if yyhl40 { - yyb40 = yyj40 > l - } else { - yyb40 = r.CheckBreak() - } - if yyb40 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.TLSEnabled = false - } else { - yyv51 := &x.TLSEnabled - yym52 := z.DecBinary() - _ = yym52 - if false { - } else { - *((*bool)(yyv51)) = r.DecodeBool() - } - } - yyj40++ - if yyhl40 { - yyb40 = yyj40 > l - } else { - yyb40 = r.CheckBreak() - } - if yyb40 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Attributes = nil - } else { - yyv53 := &x.Attributes - yym54 := z.DecBinary() - _ = yym54 - if false { - } else { - z.F.DecMapStringStringX(yyv53, false, d) - } - } - yyj40++ - if yyhl40 { - yyb40 = yyj40 > l - } else { - yyb40 = r.CheckBreak() - } - if yyb40 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Resources != nil { - x.Resources = nil - } - } else { - if x.Resources == nil { - x.Resources = new(Resources) - } - x.Resources.CodecDecodeSelf(d) - } - yyj40++ - if yyhl40 { - yyb40 = yyj40 > l - } else { - yyb40 = r.CheckBreak() - } - if yyb40 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Reserved != nil { - x.Reserved = nil - } - } else { - if x.Reserved == nil { - x.Reserved = new(Resources) - } - x.Reserved.CodecDecodeSelf(d) - } - yyj40++ - if yyhl40 { - yyb40 = yyj40 > l - } else { - yyb40 = r.CheckBreak() - } - if yyb40 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Links = nil - } else { - yyv57 := &x.Links - yym58 := z.DecBinary() - _ = yym58 - if false { - } else { - z.F.DecMapStringStringX(yyv57, false, d) - } - } - yyj40++ - if yyhl40 { - yyb40 = yyj40 > l - } else { - yyb40 = r.CheckBreak() - } - if yyb40 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Meta = nil - } else { - yyv59 := &x.Meta - yym60 := z.DecBinary() - _ = yym60 - if false { - } else { - z.F.DecMapStringStringX(yyv59, false, d) - } - } - yyj40++ - if yyhl40 { - yyb40 = yyj40 > l - } else { - yyb40 = r.CheckBreak() - } - if yyb40 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.NodeClass = "" - } else { - yyv61 := &x.NodeClass - yym62 := z.DecBinary() - _ = yym62 - if false { - } else { - *((*string)(yyv61)) = r.DecodeString() - } - } - yyj40++ - if yyhl40 { - yyb40 = yyj40 > l - } else { - yyb40 = r.CheckBreak() - } - if yyb40 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ComputedClass = "" - } else { - yyv63 := &x.ComputedClass - yym64 := z.DecBinary() - _ = yym64 - if false { - } else { - *((*string)(yyv63)) = r.DecodeString() - } - } - yyj40++ - if yyhl40 { - yyb40 = yyj40 > l - } else { - yyb40 = r.CheckBreak() - } - if yyb40 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Drain = false - } else { - yyv65 := &x.Drain - yym66 := z.DecBinary() - _ = yym66 - if false { - } else { - *((*bool)(yyv65)) = r.DecodeBool() - } - } - yyj40++ - if yyhl40 { - yyb40 = yyj40 > l - } else { - yyb40 = r.CheckBreak() - } - if yyb40 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Status = "" - } else { - yyv67 := &x.Status - yym68 := z.DecBinary() - _ = yym68 - if false { - } else { - *((*string)(yyv67)) = r.DecodeString() - } - } - yyj40++ - if yyhl40 { - yyb40 = yyj40 > l - } else { - yyb40 = r.CheckBreak() - } - if yyb40 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.StatusDescription = "" - } else { - yyv69 := &x.StatusDescription - yym70 := z.DecBinary() - _ = yym70 - if false { - } else { - *((*string)(yyv69)) = r.DecodeString() - } - } - yyj40++ - if yyhl40 { - yyb40 = yyj40 > l - } else { - yyb40 = r.CheckBreak() - } - if yyb40 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.StatusUpdatedAt = 0 - } else { - yyv71 := &x.StatusUpdatedAt - yym72 := z.DecBinary() - _ = yym72 - if false { - } else { - *((*int64)(yyv71)) = int64(r.DecodeInt(64)) - } - } - yyj40++ - if yyhl40 { - yyb40 = yyj40 > l - } else { - yyb40 = r.CheckBreak() - } - if yyb40 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv73 := &x.CreateIndex - yym74 := z.DecBinary() - _ = yym74 - if false { - } else { - *((*uint64)(yyv73)) = uint64(r.DecodeUint(64)) - } - } - yyj40++ - if yyhl40 { - yyb40 = yyj40 > l - } else { - yyb40 = r.CheckBreak() - } - if yyb40 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv75 := &x.ModifyIndex - yym76 := z.DecBinary() - _ = yym76 - if false { - } else { - *((*uint64)(yyv75)) = uint64(r.DecodeUint(64)) - } - } - for { - yyj40++ - if yyhl40 { - yyb40 = yyj40 > l - } else { - yyb40 = r.CheckBreak() - } - if yyb40 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj40-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *NodeListStub) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [10]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(10) - } else { - yynn2 = 10 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Datacenter)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Datacenter")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Datacenter)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Name)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Name")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Name)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.NodeClass)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("NodeClass")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.NodeClass)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Version)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Version")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Version)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeBool(bool(x.Drain)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Drain")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeBool(bool(x.Drain)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Status)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Status")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Status)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.StatusDescription)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("StatusDescription")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.StatusDescription)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym28 := z.EncBinary() - _ = yym28 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("CreateIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym29 := z.EncBinary() - _ = yym29 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym31 := z.EncBinary() - _ = yym31 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym32 := z.EncBinary() - _ = yym32 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *NodeListStub) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *NodeListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "ID": - if r.TryDecodeAsNil() { - x.ID = "" - } else { - yyv4 := &x.ID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Datacenter": - if r.TryDecodeAsNil() { - x.Datacenter = "" - } else { - yyv6 := &x.Datacenter - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv8 := &x.Name - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "NodeClass": - if r.TryDecodeAsNil() { - x.NodeClass = "" - } else { - yyv10 := &x.NodeClass - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - case "Version": - if r.TryDecodeAsNil() { - x.Version = "" - } else { - yyv12 := &x.Version - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*string)(yyv12)) = r.DecodeString() - } - } - case "Drain": - if r.TryDecodeAsNil() { - x.Drain = false - } else { - yyv14 := &x.Drain - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*bool)(yyv14)) = r.DecodeBool() - } - } - case "Status": - if r.TryDecodeAsNil() { - x.Status = "" - } else { - yyv16 := &x.Status - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - case "StatusDescription": - if r.TryDecodeAsNil() { - x.StatusDescription = "" - } else { - yyv18 := &x.StatusDescription - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*string)(yyv18)) = r.DecodeString() - } - } - case "CreateIndex": - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv20 := &x.CreateIndex - yym21 := z.DecBinary() - _ = yym21 - if false { - } else { - *((*uint64)(yyv20)) = uint64(r.DecodeUint(64)) - } - } - case "ModifyIndex": - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv22 := &x.ModifyIndex - yym23 := z.DecBinary() - _ = yym23 - if false { - } else { - *((*uint64)(yyv22)) = uint64(r.DecodeUint(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *NodeListStub) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ID = "" - } else { - yyv25 := &x.ID - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*string)(yyv25)) = r.DecodeString() - } - } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l - } else { - yyb24 = r.CheckBreak() - } - if yyb24 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Datacenter = "" - } else { - yyv27 := &x.Datacenter - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*string)(yyv27)) = r.DecodeString() - } - } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l - } else { - yyb24 = r.CheckBreak() - } - if yyb24 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv29 := &x.Name - yym30 := z.DecBinary() - _ = yym30 - if false { - } else { - *((*string)(yyv29)) = r.DecodeString() - } - } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l - } else { - yyb24 = r.CheckBreak() - } - if yyb24 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.NodeClass = "" - } else { - yyv31 := &x.NodeClass - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*string)(yyv31)) = r.DecodeString() - } - } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l - } else { - yyb24 = r.CheckBreak() - } - if yyb24 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Version = "" - } else { - yyv33 := &x.Version - yym34 := z.DecBinary() - _ = yym34 - if false { - } else { - *((*string)(yyv33)) = r.DecodeString() - } - } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l - } else { - yyb24 = r.CheckBreak() - } - if yyb24 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Drain = false - } else { - yyv35 := &x.Drain - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - *((*bool)(yyv35)) = r.DecodeBool() - } - } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l - } else { - yyb24 = r.CheckBreak() - } - if yyb24 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Status = "" - } else { - yyv37 := &x.Status - yym38 := z.DecBinary() - _ = yym38 - if false { - } else { - *((*string)(yyv37)) = r.DecodeString() - } - } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l - } else { - yyb24 = r.CheckBreak() - } - if yyb24 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.StatusDescription = "" - } else { - yyv39 := &x.StatusDescription - yym40 := z.DecBinary() - _ = yym40 - if false { - } else { - *((*string)(yyv39)) = r.DecodeString() - } - } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l - } else { - yyb24 = r.CheckBreak() - } - if yyb24 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv41 := &x.CreateIndex - yym42 := z.DecBinary() - _ = yym42 - if false { - } else { - *((*uint64)(yyv41)) = uint64(r.DecodeUint(64)) - } - } - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l - } else { - yyb24 = r.CheckBreak() - } - if yyb24 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv43 := &x.ModifyIndex - yym44 := z.DecBinary() - _ = yym44 - if false { - } else { - *((*uint64)(yyv43)) = uint64(r.DecodeUint(64)) - } - } - for { - yyj24++ - if yyhl24 { - yyb24 = yyj24 > l - } else { - yyb24 = r.CheckBreak() - } - if yyb24 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj24-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x Networks) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - h.encNetworks((Networks)(x), e) - } - } -} - -func (x *Networks) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - h.decNetworks((*Networks)(x), d) - } -} - -func (x *Resources) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [5]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(5) - } else { - yynn2 = 5 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeInt(int64(x.CPU)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("CPU")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeInt(int64(x.CPU)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeInt(int64(x.MemoryMB)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MemoryMB")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeInt(int64(x.MemoryMB)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeInt(int64(x.DiskMB)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DiskMB")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeInt(int64(x.DiskMB)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeInt(int64(x.IOPS)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("IOPS")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeInt(int64(x.IOPS)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Networks == nil { - r.EncodeNil() - } else { - x.Networks.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Networks")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Networks == nil { - r.EncodeNil() - } else { - x.Networks.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *Resources) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *Resources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "CPU": - if r.TryDecodeAsNil() { - x.CPU = 0 - } else { - yyv4 := &x.CPU - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*int)(yyv4)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - case "MemoryMB": - if r.TryDecodeAsNil() { - x.MemoryMB = 0 - } else { - yyv6 := &x.MemoryMB - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*int)(yyv6)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - case "DiskMB": - if r.TryDecodeAsNil() { - x.DiskMB = 0 - } else { - yyv8 := &x.DiskMB - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*int)(yyv8)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - case "IOPS": - if r.TryDecodeAsNil() { - x.IOPS = 0 - } else { - yyv10 := &x.IOPS - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*int)(yyv10)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - case "Networks": - if r.TryDecodeAsNil() { - x.Networks = nil - } else { - yyv12 := &x.Networks - yyv12.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *Resources) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.CPU = 0 - } else { - yyv14 := &x.CPU - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*int)(yyv14)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l - } else { - yyb13 = r.CheckBreak() - } - if yyb13 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MemoryMB = 0 - } else { - yyv16 := &x.MemoryMB - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*int)(yyv16)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l - } else { - yyb13 = r.CheckBreak() - } - if yyb13 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DiskMB = 0 - } else { - yyv18 := &x.DiskMB - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*int)(yyv18)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l - } else { - yyb13 = r.CheckBreak() - } - if yyb13 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.IOPS = 0 - } else { - yyv20 := &x.IOPS - yym21 := z.DecBinary() - _ = yym21 - if false { - } else { - *((*int)(yyv20)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l - } else { - yyb13 = r.CheckBreak() - } - if yyb13 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Networks = nil - } else { - yyv22 := &x.Networks - yyv22.CodecDecodeSelf(d) - } - for { - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l - } else { - yyb13 = r.CheckBreak() - } - if yyb13 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj13-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *Port) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(2) - } else { - yynn2 = 2 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Label)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Label")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Label)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeInt(int64(x.Value)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Value")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeInt(int64(x.Value)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *Port) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *Port) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Label": - if r.TryDecodeAsNil() { - x.Label = "" - } else { - yyv4 := &x.Label - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Value": - if r.TryDecodeAsNil() { - x.Value = 0 - } else { - yyv6 := &x.Value - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*int)(yyv6)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *Port) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Label = "" - } else { - yyv9 := &x.Label - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - *((*string)(yyv9)) = r.DecodeString() - } - } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Value = 0 - } else { - yyv11 := &x.Value - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - *((*int)(yyv11)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj8-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *NetworkResource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(6) - } else { - yynn2 = 6 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Device)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Device")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Device)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.CIDR)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("CIDR")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.CIDR)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.IP)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("IP")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.IP)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeInt(int64(x.MBits)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MBits")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeInt(int64(x.MBits)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.ReservedPorts == nil { - r.EncodeNil() - } else { - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - h.encSlicePort(([]Port)(x.ReservedPorts), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ReservedPorts")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.ReservedPorts == nil { - r.EncodeNil() - } else { - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - h.encSlicePort(([]Port)(x.ReservedPorts), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.DynamicPorts == nil { - r.EncodeNil() - } else { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - h.encSlicePort(([]Port)(x.DynamicPorts), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DynamicPorts")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.DynamicPorts == nil { - r.EncodeNil() - } else { - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - h.encSlicePort(([]Port)(x.DynamicPorts), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *NetworkResource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *NetworkResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Device": - if r.TryDecodeAsNil() { - x.Device = "" - } else { - yyv4 := &x.Device - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "CIDR": - if r.TryDecodeAsNil() { - x.CIDR = "" - } else { - yyv6 := &x.CIDR - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "IP": - if r.TryDecodeAsNil() { - x.IP = "" - } else { - yyv8 := &x.IP - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "MBits": - if r.TryDecodeAsNil() { - x.MBits = 0 - } else { - yyv10 := &x.MBits - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*int)(yyv10)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - case "ReservedPorts": - if r.TryDecodeAsNil() { - x.ReservedPorts = nil - } else { - yyv12 := &x.ReservedPorts - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - h.decSlicePort((*[]Port)(yyv12), d) - } - } - case "DynamicPorts": - if r.TryDecodeAsNil() { - x.DynamicPorts = nil - } else { - yyv14 := &x.DynamicPorts - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - h.decSlicePort((*[]Port)(yyv14), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Device = "" - } else { - yyv17 := &x.Device - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.CIDR = "" - } else { - yyv19 := &x.CIDR - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.IP = "" - } else { - yyv21 := &x.IP - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MBits = 0 - } else { - yyv23 := &x.MBits - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*int)(yyv23)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ReservedPorts = nil - } else { - yyv25 := &x.ReservedPorts - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - h.decSlicePort((*[]Port)(yyv25), d) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DynamicPorts = nil - } else { - yyv27 := &x.DynamicPorts - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - h.decSlicePort((*[]Port)(yyv27), d) - } - } - for { - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj16-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *Job) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [26]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(26) - } else { - yynn2 = 26 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeBool(bool(x.Stop)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Stop")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeBool(bool(x.Stop)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ParentID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ParentID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ParentID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Name)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Name")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Name)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Type)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Type")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Type)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeInt(int64(x.Priority)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Priority")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeInt(int64(x.Priority)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym28 := z.EncBinary() - _ = yym28 - if false { - } else { - r.EncodeBool(bool(x.AllAtOnce)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllAtOnce")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym29 := z.EncBinary() - _ = yym29 - if false { - } else { - r.EncodeBool(bool(x.AllAtOnce)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Datacenters == nil { - r.EncodeNil() - } else { - yym31 := z.EncBinary() - _ = yym31 - if false { - } else { - z.F.EncSliceStringV(x.Datacenters, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Datacenters")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Datacenters == nil { - r.EncodeNil() - } else { - yym32 := z.EncBinary() - _ = yym32 - if false { - } else { - z.F.EncSliceStringV(x.Datacenters, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Constraints == nil { - r.EncodeNil() - } else { - yym34 := z.EncBinary() - _ = yym34 - if false { - } else { - h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Constraints")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Constraints == nil { - r.EncodeNil() - } else { - yym35 := z.EncBinary() - _ = yym35 - if false { - } else { - h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.TaskGroups == nil { - r.EncodeNil() - } else { - yym37 := z.EncBinary() - _ = yym37 - if false { - } else { - h.encSlicePtrtoTaskGroup(([]*TaskGroup)(x.TaskGroups), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("TaskGroups")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.TaskGroups == nil { - r.EncodeNil() - } else { - yym38 := z.EncBinary() - _ = yym38 - if false { - } else { - h.encSlicePtrtoTaskGroup(([]*TaskGroup)(x.TaskGroups), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yy40 := &x.Update - yy40.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Update")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yy42 := &x.Update - yy42.CodecEncodeSelf(e) - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Periodic == nil { - r.EncodeNil() - } else { - x.Periodic.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Periodic")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Periodic == nil { - r.EncodeNil() - } else { - x.Periodic.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.ParameterizedJob == nil { - r.EncodeNil() - } else { - x.ParameterizedJob.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ParameterizedJob")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.ParameterizedJob == nil { - r.EncodeNil() - } else { - x.ParameterizedJob.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Payload == nil { - r.EncodeNil() - } else { - yym51 := z.EncBinary() - _ = yym51 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW100, []byte(x.Payload)) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Payload")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Payload == nil { - r.EncodeNil() - } else { - yym52 := z.EncBinary() - _ = yym52 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW100, []byte(x.Payload)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Meta == nil { - r.EncodeNil() - } else { - yym54 := z.EncBinary() - _ = yym54 - if false { - } else { - z.F.EncMapStringStringV(x.Meta, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Meta")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Meta == nil { - r.EncodeNil() - } else { - yym55 := z.EncBinary() - _ = yym55 - if false { - } else { - z.F.EncMapStringStringV(x.Meta, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym57 := z.EncBinary() - _ = yym57 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.VaultToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("VaultToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym58 := z.EncBinary() - _ = yym58 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.VaultToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym60 := z.EncBinary() - _ = yym60 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Status)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Status")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym61 := z.EncBinary() - _ = yym61 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Status)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym63 := z.EncBinary() - _ = yym63 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.StatusDescription)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("StatusDescription")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym64 := z.EncBinary() - _ = yym64 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.StatusDescription)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym66 := z.EncBinary() - _ = yym66 - if false { - } else { - r.EncodeBool(bool(x.Stable)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Stable")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym67 := z.EncBinary() - _ = yym67 - if false { - } else { - r.EncodeBool(bool(x.Stable)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym69 := z.EncBinary() - _ = yym69 - if false { - } else { - r.EncodeUint(uint64(x.Version)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Version")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym70 := z.EncBinary() - _ = yym70 - if false { - } else { - r.EncodeUint(uint64(x.Version)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym72 := z.EncBinary() - _ = yym72 - if false { - } else { - r.EncodeInt(int64(x.SubmitTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("SubmitTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym73 := z.EncBinary() - _ = yym73 - if false { - } else { - r.EncodeInt(int64(x.SubmitTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym75 := z.EncBinary() - _ = yym75 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("CreateIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym76 := z.EncBinary() - _ = yym76 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym78 := z.EncBinary() - _ = yym78 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym79 := z.EncBinary() - _ = yym79 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym81 := z.EncBinary() - _ = yym81 - if false { - } else { - r.EncodeUint(uint64(x.JobModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("JobModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym82 := z.EncBinary() - _ = yym82 - if false { - } else { - r.EncodeUint(uint64(x.JobModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *Job) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *Job) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Stop": - if r.TryDecodeAsNil() { - x.Stop = false - } else { - yyv4 := &x.Stop - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*bool)(yyv4)) = r.DecodeBool() - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "ID": - if r.TryDecodeAsNil() { - x.ID = "" - } else { - yyv10 := &x.ID - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - case "ParentID": - if r.TryDecodeAsNil() { - x.ParentID = "" - } else { - yyv12 := &x.ParentID - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*string)(yyv12)) = r.DecodeString() - } - } - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv14 := &x.Name - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*string)(yyv14)) = r.DecodeString() - } - } - case "Type": - if r.TryDecodeAsNil() { - x.Type = "" - } else { - yyv16 := &x.Type - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - case "Priority": - if r.TryDecodeAsNil() { - x.Priority = 0 - } else { - yyv18 := &x.Priority - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*int)(yyv18)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - case "AllAtOnce": - if r.TryDecodeAsNil() { - x.AllAtOnce = false - } else { - yyv20 := &x.AllAtOnce - yym21 := z.DecBinary() - _ = yym21 - if false { - } else { - *((*bool)(yyv20)) = r.DecodeBool() - } - } - case "Datacenters": - if r.TryDecodeAsNil() { - x.Datacenters = nil - } else { - yyv22 := &x.Datacenters - yym23 := z.DecBinary() - _ = yym23 - if false { - } else { - z.F.DecSliceStringX(yyv22, false, d) - } - } - case "Constraints": - if r.TryDecodeAsNil() { - x.Constraints = nil - } else { - yyv24 := &x.Constraints - yym25 := z.DecBinary() - _ = yym25 - if false { - } else { - h.decSlicePtrtoConstraint((*[]*Constraint)(yyv24), d) - } - } - case "TaskGroups": - if r.TryDecodeAsNil() { - x.TaskGroups = nil - } else { - yyv26 := &x.TaskGroups - yym27 := z.DecBinary() - _ = yym27 - if false { - } else { - h.decSlicePtrtoTaskGroup((*[]*TaskGroup)(yyv26), d) - } - } - case "Update": - if r.TryDecodeAsNil() { - x.Update = UpdateStrategy{} - } else { - yyv28 := &x.Update - yyv28.CodecDecodeSelf(d) - } - case "Periodic": - if r.TryDecodeAsNil() { - if x.Periodic != nil { - x.Periodic = nil - } - } else { - if x.Periodic == nil { - x.Periodic = new(PeriodicConfig) - } - x.Periodic.CodecDecodeSelf(d) - } - case "ParameterizedJob": - if r.TryDecodeAsNil() { - if x.ParameterizedJob != nil { - x.ParameterizedJob = nil - } - } else { - if x.ParameterizedJob == nil { - x.ParameterizedJob = new(ParameterizedJobConfig) - } - x.ParameterizedJob.CodecDecodeSelf(d) - } - case "Payload": - if r.TryDecodeAsNil() { - x.Payload = nil - } else { - yyv31 := &x.Payload - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *yyv31 = r.DecodeBytes(*(*[]byte)(yyv31), false, false) - } - } - case "Meta": - if r.TryDecodeAsNil() { - x.Meta = nil - } else { - yyv33 := &x.Meta - yym34 := z.DecBinary() - _ = yym34 - if false { - } else { - z.F.DecMapStringStringX(yyv33, false, d) - } - } - case "VaultToken": - if r.TryDecodeAsNil() { - x.VaultToken = "" - } else { - yyv35 := &x.VaultToken - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - *((*string)(yyv35)) = r.DecodeString() - } - } - case "Status": - if r.TryDecodeAsNil() { - x.Status = "" - } else { - yyv37 := &x.Status - yym38 := z.DecBinary() - _ = yym38 - if false { - } else { - *((*string)(yyv37)) = r.DecodeString() - } - } - case "StatusDescription": - if r.TryDecodeAsNil() { - x.StatusDescription = "" - } else { - yyv39 := &x.StatusDescription - yym40 := z.DecBinary() - _ = yym40 - if false { - } else { - *((*string)(yyv39)) = r.DecodeString() - } - } - case "Stable": - if r.TryDecodeAsNil() { - x.Stable = false - } else { - yyv41 := &x.Stable - yym42 := z.DecBinary() - _ = yym42 - if false { - } else { - *((*bool)(yyv41)) = r.DecodeBool() - } - } - case "Version": - if r.TryDecodeAsNil() { - x.Version = 0 - } else { - yyv43 := &x.Version - yym44 := z.DecBinary() - _ = yym44 - if false { - } else { - *((*uint64)(yyv43)) = uint64(r.DecodeUint(64)) - } - } - case "SubmitTime": - if r.TryDecodeAsNil() { - x.SubmitTime = 0 - } else { - yyv45 := &x.SubmitTime - yym46 := z.DecBinary() - _ = yym46 - if false { - } else { - *((*int64)(yyv45)) = int64(r.DecodeInt(64)) - } - } - case "CreateIndex": - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv47 := &x.CreateIndex - yym48 := z.DecBinary() - _ = yym48 - if false { - } else { - *((*uint64)(yyv47)) = uint64(r.DecodeUint(64)) - } - } - case "ModifyIndex": - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv49 := &x.ModifyIndex - yym50 := z.DecBinary() - _ = yym50 - if false { - } else { - *((*uint64)(yyv49)) = uint64(r.DecodeUint(64)) - } - } - case "JobModifyIndex": - if r.TryDecodeAsNil() { - x.JobModifyIndex = 0 - } else { - yyv51 := &x.JobModifyIndex - yym52 := z.DecBinary() - _ = yym52 - if false { - } else { - *((*uint64)(yyv51)) = uint64(r.DecodeUint(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *Job) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj53 int - var yyb53 bool - var yyhl53 bool = l >= 0 - yyj53++ - if yyhl53 { - yyb53 = yyj53 > l - } else { - yyb53 = r.CheckBreak() - } - if yyb53 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Stop = false - } else { - yyv54 := &x.Stop - yym55 := z.DecBinary() - _ = yym55 - if false { - } else { - *((*bool)(yyv54)) = r.DecodeBool() - } - } - yyj53++ - if yyhl53 { - yyb53 = yyj53 > l - } else { - yyb53 = r.CheckBreak() - } - if yyb53 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv56 := &x.Region - yym57 := z.DecBinary() - _ = yym57 - if false { - } else { - *((*string)(yyv56)) = r.DecodeString() - } - } - yyj53++ - if yyhl53 { - yyb53 = yyj53 > l - } else { - yyb53 = r.CheckBreak() - } - if yyb53 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv58 := &x.Namespace - yym59 := z.DecBinary() - _ = yym59 - if false { - } else { - *((*string)(yyv58)) = r.DecodeString() - } - } - yyj53++ - if yyhl53 { - yyb53 = yyj53 > l - } else { - yyb53 = r.CheckBreak() - } - if yyb53 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ID = "" - } else { - yyv60 := &x.ID - yym61 := z.DecBinary() - _ = yym61 - if false { - } else { - *((*string)(yyv60)) = r.DecodeString() - } - } - yyj53++ - if yyhl53 { - yyb53 = yyj53 > l - } else { - yyb53 = r.CheckBreak() - } - if yyb53 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ParentID = "" - } else { - yyv62 := &x.ParentID - yym63 := z.DecBinary() - _ = yym63 - if false { - } else { - *((*string)(yyv62)) = r.DecodeString() - } - } - yyj53++ - if yyhl53 { - yyb53 = yyj53 > l - } else { - yyb53 = r.CheckBreak() - } - if yyb53 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv64 := &x.Name - yym65 := z.DecBinary() - _ = yym65 - if false { - } else { - *((*string)(yyv64)) = r.DecodeString() - } - } - yyj53++ - if yyhl53 { - yyb53 = yyj53 > l - } else { - yyb53 = r.CheckBreak() - } - if yyb53 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Type = "" - } else { - yyv66 := &x.Type - yym67 := z.DecBinary() - _ = yym67 - if false { - } else { - *((*string)(yyv66)) = r.DecodeString() - } - } - yyj53++ - if yyhl53 { - yyb53 = yyj53 > l - } else { - yyb53 = r.CheckBreak() - } - if yyb53 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Priority = 0 - } else { - yyv68 := &x.Priority - yym69 := z.DecBinary() - _ = yym69 - if false { - } else { - *((*int)(yyv68)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - yyj53++ - if yyhl53 { - yyb53 = yyj53 > l - } else { - yyb53 = r.CheckBreak() - } - if yyb53 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllAtOnce = false - } else { - yyv70 := &x.AllAtOnce - yym71 := z.DecBinary() - _ = yym71 - if false { - } else { - *((*bool)(yyv70)) = r.DecodeBool() - } - } - yyj53++ - if yyhl53 { - yyb53 = yyj53 > l - } else { - yyb53 = r.CheckBreak() - } - if yyb53 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Datacenters = nil - } else { - yyv72 := &x.Datacenters - yym73 := z.DecBinary() - _ = yym73 - if false { - } else { - z.F.DecSliceStringX(yyv72, false, d) - } - } - yyj53++ - if yyhl53 { - yyb53 = yyj53 > l - } else { - yyb53 = r.CheckBreak() - } - if yyb53 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Constraints = nil - } else { - yyv74 := &x.Constraints - yym75 := z.DecBinary() - _ = yym75 - if false { - } else { - h.decSlicePtrtoConstraint((*[]*Constraint)(yyv74), d) - } - } - yyj53++ - if yyhl53 { - yyb53 = yyj53 > l - } else { - yyb53 = r.CheckBreak() - } - if yyb53 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.TaskGroups = nil - } else { - yyv76 := &x.TaskGroups - yym77 := z.DecBinary() - _ = yym77 - if false { - } else { - h.decSlicePtrtoTaskGroup((*[]*TaskGroup)(yyv76), d) - } - } - yyj53++ - if yyhl53 { - yyb53 = yyj53 > l - } else { - yyb53 = r.CheckBreak() - } - if yyb53 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Update = UpdateStrategy{} - } else { - yyv78 := &x.Update - yyv78.CodecDecodeSelf(d) - } - yyj53++ - if yyhl53 { - yyb53 = yyj53 > l - } else { - yyb53 = r.CheckBreak() - } - if yyb53 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Periodic != nil { - x.Periodic = nil - } - } else { - if x.Periodic == nil { - x.Periodic = new(PeriodicConfig) - } - x.Periodic.CodecDecodeSelf(d) - } - yyj53++ - if yyhl53 { - yyb53 = yyj53 > l - } else { - yyb53 = r.CheckBreak() - } - if yyb53 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.ParameterizedJob != nil { - x.ParameterizedJob = nil - } - } else { - if x.ParameterizedJob == nil { - x.ParameterizedJob = new(ParameterizedJobConfig) - } - x.ParameterizedJob.CodecDecodeSelf(d) - } - yyj53++ - if yyhl53 { - yyb53 = yyj53 > l - } else { - yyb53 = r.CheckBreak() - } - if yyb53 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Payload = nil - } else { - yyv81 := &x.Payload - yym82 := z.DecBinary() - _ = yym82 - if false { - } else { - *yyv81 = r.DecodeBytes(*(*[]byte)(yyv81), false, false) - } - } - yyj53++ - if yyhl53 { - yyb53 = yyj53 > l - } else { - yyb53 = r.CheckBreak() - } - if yyb53 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Meta = nil - } else { - yyv83 := &x.Meta - yym84 := z.DecBinary() - _ = yym84 - if false { - } else { - z.F.DecMapStringStringX(yyv83, false, d) - } - } - yyj53++ - if yyhl53 { - yyb53 = yyj53 > l - } else { - yyb53 = r.CheckBreak() - } - if yyb53 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.VaultToken = "" - } else { - yyv85 := &x.VaultToken - yym86 := z.DecBinary() - _ = yym86 - if false { - } else { - *((*string)(yyv85)) = r.DecodeString() - } - } - yyj53++ - if yyhl53 { - yyb53 = yyj53 > l - } else { - yyb53 = r.CheckBreak() - } - if yyb53 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Status = "" - } else { - yyv87 := &x.Status - yym88 := z.DecBinary() - _ = yym88 - if false { - } else { - *((*string)(yyv87)) = r.DecodeString() - } - } - yyj53++ - if yyhl53 { - yyb53 = yyj53 > l - } else { - yyb53 = r.CheckBreak() - } - if yyb53 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.StatusDescription = "" - } else { - yyv89 := &x.StatusDescription - yym90 := z.DecBinary() - _ = yym90 - if false { - } else { - *((*string)(yyv89)) = r.DecodeString() - } - } - yyj53++ - if yyhl53 { - yyb53 = yyj53 > l - } else { - yyb53 = r.CheckBreak() - } - if yyb53 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Stable = false - } else { - yyv91 := &x.Stable - yym92 := z.DecBinary() - _ = yym92 - if false { - } else { - *((*bool)(yyv91)) = r.DecodeBool() - } - } - yyj53++ - if yyhl53 { - yyb53 = yyj53 > l - } else { - yyb53 = r.CheckBreak() - } - if yyb53 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Version = 0 - } else { - yyv93 := &x.Version - yym94 := z.DecBinary() - _ = yym94 - if false { - } else { - *((*uint64)(yyv93)) = uint64(r.DecodeUint(64)) - } - } - yyj53++ - if yyhl53 { - yyb53 = yyj53 > l - } else { - yyb53 = r.CheckBreak() - } - if yyb53 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.SubmitTime = 0 - } else { - yyv95 := &x.SubmitTime - yym96 := z.DecBinary() - _ = yym96 - if false { - } else { - *((*int64)(yyv95)) = int64(r.DecodeInt(64)) - } - } - yyj53++ - if yyhl53 { - yyb53 = yyj53 > l - } else { - yyb53 = r.CheckBreak() - } - if yyb53 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv97 := &x.CreateIndex - yym98 := z.DecBinary() - _ = yym98 - if false { - } else { - *((*uint64)(yyv97)) = uint64(r.DecodeUint(64)) - } - } - yyj53++ - if yyhl53 { - yyb53 = yyj53 > l - } else { - yyb53 = r.CheckBreak() - } - if yyb53 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv99 := &x.ModifyIndex - yym100 := z.DecBinary() - _ = yym100 - if false { - } else { - *((*uint64)(yyv99)) = uint64(r.DecodeUint(64)) - } - } - yyj53++ - if yyhl53 { - yyb53 = yyj53 > l - } else { - yyb53 = r.CheckBreak() - } - if yyb53 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.JobModifyIndex = 0 - } else { - yyv101 := &x.JobModifyIndex - yym102 := z.DecBinary() - _ = yym102 - if false { - } else { - *((*uint64)(yyv101)) = uint64(r.DecodeUint(64)) - } - } - for { - yyj53++ - if yyhl53 { - yyb53 = yyj53 > l - } else { - yyb53 = r.CheckBreak() - } - if yyb53 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj53-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *JobListStub) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [15]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(15) - } else { - yynn2 = 15 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ParentID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ParentID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ParentID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Name)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Name")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Name)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Type)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Type")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Type)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeInt(int64(x.Priority)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Priority")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeInt(int64(x.Priority)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeBool(bool(x.Periodic)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Periodic")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeBool(bool(x.Periodic)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeBool(bool(x.ParameterizedJob)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ParameterizedJob")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeBool(bool(x.ParameterizedJob)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeBool(bool(x.Stop)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Stop")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeBool(bool(x.Stop)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym28 := z.EncBinary() - _ = yym28 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Status)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Status")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym29 := z.EncBinary() - _ = yym29 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Status)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym31 := z.EncBinary() - _ = yym31 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.StatusDescription)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("StatusDescription")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym32 := z.EncBinary() - _ = yym32 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.StatusDescription)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.JobSummary == nil { - r.EncodeNil() - } else { - x.JobSummary.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("JobSummary")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.JobSummary == nil { - r.EncodeNil() - } else { - x.JobSummary.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym37 := z.EncBinary() - _ = yym37 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("CreateIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym38 := z.EncBinary() - _ = yym38 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym40 := z.EncBinary() - _ = yym40 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym41 := z.EncBinary() - _ = yym41 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym43 := z.EncBinary() - _ = yym43 - if false { - } else { - r.EncodeUint(uint64(x.JobModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("JobModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym44 := z.EncBinary() - _ = yym44 - if false { - } else { - r.EncodeUint(uint64(x.JobModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym46 := z.EncBinary() - _ = yym46 - if false { - } else { - r.EncodeInt(int64(x.SubmitTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("SubmitTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym47 := z.EncBinary() - _ = yym47 - if false { - } else { - r.EncodeInt(int64(x.SubmitTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *JobListStub) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *JobListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "ID": - if r.TryDecodeAsNil() { - x.ID = "" - } else { - yyv4 := &x.ID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "ParentID": - if r.TryDecodeAsNil() { - x.ParentID = "" - } else { - yyv6 := &x.ParentID - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv8 := &x.Name - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "Type": - if r.TryDecodeAsNil() { - x.Type = "" - } else { - yyv10 := &x.Type - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - case "Priority": - if r.TryDecodeAsNil() { - x.Priority = 0 - } else { - yyv12 := &x.Priority - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*int)(yyv12)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - case "Periodic": - if r.TryDecodeAsNil() { - x.Periodic = false - } else { - yyv14 := &x.Periodic - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*bool)(yyv14)) = r.DecodeBool() - } - } - case "ParameterizedJob": - if r.TryDecodeAsNil() { - x.ParameterizedJob = false - } else { - yyv16 := &x.ParameterizedJob - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*bool)(yyv16)) = r.DecodeBool() - } - } - case "Stop": - if r.TryDecodeAsNil() { - x.Stop = false - } else { - yyv18 := &x.Stop - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*bool)(yyv18)) = r.DecodeBool() - } - } - case "Status": - if r.TryDecodeAsNil() { - x.Status = "" - } else { - yyv20 := &x.Status - yym21 := z.DecBinary() - _ = yym21 - if false { - } else { - *((*string)(yyv20)) = r.DecodeString() - } - } - case "StatusDescription": - if r.TryDecodeAsNil() { - x.StatusDescription = "" - } else { - yyv22 := &x.StatusDescription - yym23 := z.DecBinary() - _ = yym23 - if false { - } else { - *((*string)(yyv22)) = r.DecodeString() - } - } - case "JobSummary": - if r.TryDecodeAsNil() { - if x.JobSummary != nil { - x.JobSummary = nil - } - } else { - if x.JobSummary == nil { - x.JobSummary = new(JobSummary) - } - x.JobSummary.CodecDecodeSelf(d) - } - case "CreateIndex": - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv25 := &x.CreateIndex - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*uint64)(yyv25)) = uint64(r.DecodeUint(64)) - } - } - case "ModifyIndex": - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv27 := &x.ModifyIndex - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*uint64)(yyv27)) = uint64(r.DecodeUint(64)) - } - } - case "JobModifyIndex": - if r.TryDecodeAsNil() { - x.JobModifyIndex = 0 - } else { - yyv29 := &x.JobModifyIndex - yym30 := z.DecBinary() - _ = yym30 - if false { - } else { - *((*uint64)(yyv29)) = uint64(r.DecodeUint(64)) - } - } - case "SubmitTime": - if r.TryDecodeAsNil() { - x.SubmitTime = 0 - } else { - yyv31 := &x.SubmitTime - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*int64)(yyv31)) = int64(r.DecodeInt(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *JobListStub) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ID = "" - } else { - yyv34 := &x.ID - yym35 := z.DecBinary() - _ = yym35 - if false { - } else { - *((*string)(yyv34)) = r.DecodeString() - } - } - yyj33++ - if yyhl33 { - yyb33 = yyj33 > l - } else { - yyb33 = r.CheckBreak() - } - if yyb33 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ParentID = "" - } else { - yyv36 := &x.ParentID - yym37 := z.DecBinary() - _ = yym37 - if false { - } else { - *((*string)(yyv36)) = r.DecodeString() - } - } - yyj33++ - if yyhl33 { - yyb33 = yyj33 > l - } else { - yyb33 = r.CheckBreak() - } - if yyb33 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv38 := &x.Name - yym39 := z.DecBinary() - _ = yym39 - if false { - } else { - *((*string)(yyv38)) = r.DecodeString() - } - } - yyj33++ - if yyhl33 { - yyb33 = yyj33 > l - } else { - yyb33 = r.CheckBreak() - } - if yyb33 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Type = "" - } else { - yyv40 := &x.Type - yym41 := z.DecBinary() - _ = yym41 - if false { - } else { - *((*string)(yyv40)) = r.DecodeString() - } - } - yyj33++ - if yyhl33 { - yyb33 = yyj33 > l - } else { - yyb33 = r.CheckBreak() - } - if yyb33 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Priority = 0 - } else { - yyv42 := &x.Priority - yym43 := z.DecBinary() - _ = yym43 - if false { - } else { - *((*int)(yyv42)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - yyj33++ - if yyhl33 { - yyb33 = yyj33 > l - } else { - yyb33 = r.CheckBreak() - } - if yyb33 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Periodic = false - } else { - yyv44 := &x.Periodic - yym45 := z.DecBinary() - _ = yym45 - if false { - } else { - *((*bool)(yyv44)) = r.DecodeBool() - } - } - yyj33++ - if yyhl33 { - yyb33 = yyj33 > l - } else { - yyb33 = r.CheckBreak() - } - if yyb33 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ParameterizedJob = false - } else { - yyv46 := &x.ParameterizedJob - yym47 := z.DecBinary() - _ = yym47 - if false { - } else { - *((*bool)(yyv46)) = r.DecodeBool() - } - } - yyj33++ - if yyhl33 { - yyb33 = yyj33 > l - } else { - yyb33 = r.CheckBreak() - } - if yyb33 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Stop = false - } else { - yyv48 := &x.Stop - yym49 := z.DecBinary() - _ = yym49 - if false { - } else { - *((*bool)(yyv48)) = r.DecodeBool() - } - } - yyj33++ - if yyhl33 { - yyb33 = yyj33 > l - } else { - yyb33 = r.CheckBreak() - } - if yyb33 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Status = "" - } else { - yyv50 := &x.Status - yym51 := z.DecBinary() - _ = yym51 - if false { - } else { - *((*string)(yyv50)) = r.DecodeString() - } - } - yyj33++ - if yyhl33 { - yyb33 = yyj33 > l - } else { - yyb33 = r.CheckBreak() - } - if yyb33 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.StatusDescription = "" - } else { - yyv52 := &x.StatusDescription - yym53 := z.DecBinary() - _ = yym53 - if false { - } else { - *((*string)(yyv52)) = r.DecodeString() - } - } - yyj33++ - if yyhl33 { - yyb33 = yyj33 > l - } else { - yyb33 = r.CheckBreak() - } - if yyb33 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.JobSummary != nil { - x.JobSummary = nil - } - } else { - if x.JobSummary == nil { - x.JobSummary = new(JobSummary) - } - x.JobSummary.CodecDecodeSelf(d) - } - yyj33++ - if yyhl33 { - yyb33 = yyj33 > l - } else { - yyb33 = r.CheckBreak() - } - if yyb33 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv55 := &x.CreateIndex - yym56 := z.DecBinary() - _ = yym56 - if false { - } else { - *((*uint64)(yyv55)) = uint64(r.DecodeUint(64)) - } - } - yyj33++ - if yyhl33 { - yyb33 = yyj33 > l - } else { - yyb33 = r.CheckBreak() - } - if yyb33 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv57 := &x.ModifyIndex - yym58 := z.DecBinary() - _ = yym58 - if false { - } else { - *((*uint64)(yyv57)) = uint64(r.DecodeUint(64)) - } - } - yyj33++ - if yyhl33 { - yyb33 = yyj33 > l - } else { - yyb33 = r.CheckBreak() - } - if yyb33 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.JobModifyIndex = 0 - } else { - yyv59 := &x.JobModifyIndex - yym60 := z.DecBinary() - _ = yym60 - if false { - } else { - *((*uint64)(yyv59)) = uint64(r.DecodeUint(64)) - } - } - yyj33++ - if yyhl33 { - yyb33 = yyj33 > l - } else { - yyb33 = r.CheckBreak() - } - if yyb33 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.SubmitTime = 0 - } else { - yyv61 := &x.SubmitTime - yym62 := z.DecBinary() - _ = yym62 - if false { - } else { - *((*int64)(yyv61)) = int64(r.DecodeInt(64)) - } - } - for { - yyj33++ - if yyhl33 { - yyb33 = yyj33 > l - } else { - yyb33 = r.CheckBreak() - } - if yyb33 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj33-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *JobSummary) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(6) - } else { - yynn2 = 6 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.JobID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("JobID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.JobID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Summary == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - h.encMapstringTaskGroupSummary((map[string]TaskGroupSummary)(x.Summary), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Summary")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Summary == nil { - r.EncodeNil() - } else { - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - h.encMapstringTaskGroupSummary((map[string]TaskGroupSummary)(x.Summary), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Children == nil { - r.EncodeNil() - } else { - x.Children.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Children")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Children == nil { - r.EncodeNil() - } else { - x.Children.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("CreateIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *JobSummary) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *JobSummary) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "JobID": - if r.TryDecodeAsNil() { - x.JobID = "" - } else { - yyv4 := &x.JobID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv6 := &x.Namespace - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Summary": - if r.TryDecodeAsNil() { - x.Summary = nil - } else { - yyv8 := &x.Summary - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - h.decMapstringTaskGroupSummary((*map[string]TaskGroupSummary)(yyv8), d) - } - } - case "Children": - if r.TryDecodeAsNil() { - if x.Children != nil { - x.Children = nil - } - } else { - if x.Children == nil { - x.Children = new(JobChildrenSummary) - } - x.Children.CodecDecodeSelf(d) - } - case "CreateIndex": - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv11 := &x.CreateIndex - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - *((*uint64)(yyv11)) = uint64(r.DecodeUint(64)) - } - } - case "ModifyIndex": - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv13 := &x.ModifyIndex - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*uint64)(yyv13)) = uint64(r.DecodeUint(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *JobSummary) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.JobID = "" - } else { - yyv16 := &x.JobID - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv18 := &x.Namespace - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*string)(yyv18)) = r.DecodeString() - } - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Summary = nil - } else { - yyv20 := &x.Summary - yym21 := z.DecBinary() - _ = yym21 - if false { - } else { - h.decMapstringTaskGroupSummary((*map[string]TaskGroupSummary)(yyv20), d) - } - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Children != nil { - x.Children = nil - } - } else { - if x.Children == nil { - x.Children = new(JobChildrenSummary) - } - x.Children.CodecDecodeSelf(d) - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv23 := &x.CreateIndex - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*uint64)(yyv23)) = uint64(r.DecodeUint(64)) - } - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv25 := &x.ModifyIndex - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*uint64)(yyv25)) = uint64(r.DecodeUint(64)) - } - } - for { - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj15-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *JobChildrenSummary) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(3) - } else { - yynn2 = 3 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeInt(int64(x.Pending)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Pending")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeInt(int64(x.Pending)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeInt(int64(x.Running)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Running")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeInt(int64(x.Running)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeInt(int64(x.Dead)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Dead")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeInt(int64(x.Dead)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *JobChildrenSummary) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *JobChildrenSummary) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Pending": - if r.TryDecodeAsNil() { - x.Pending = 0 - } else { - yyv4 := &x.Pending - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*int64)(yyv4)) = int64(r.DecodeInt(64)) - } - } - case "Running": - if r.TryDecodeAsNil() { - x.Running = 0 - } else { - yyv6 := &x.Running - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*int64)(yyv6)) = int64(r.DecodeInt(64)) - } - } - case "Dead": - if r.TryDecodeAsNil() { - x.Dead = 0 - } else { - yyv8 := &x.Dead - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*int64)(yyv8)) = int64(r.DecodeInt(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *JobChildrenSummary) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Pending = 0 - } else { - yyv11 := &x.Pending - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - *((*int64)(yyv11)) = int64(r.DecodeInt(64)) - } - } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Running = 0 - } else { - yyv13 := &x.Running - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*int64)(yyv13)) = int64(r.DecodeInt(64)) - } - } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Dead = 0 - } else { - yyv15 := &x.Dead - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*int64)(yyv15)) = int64(r.DecodeInt(64)) - } - } - for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj10-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *TaskGroupSummary) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(6) - } else { - yynn2 = 6 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeInt(int64(x.Queued)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Queued")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeInt(int64(x.Queued)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeInt(int64(x.Complete)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Complete")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeInt(int64(x.Complete)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeInt(int64(x.Failed)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Failed")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeInt(int64(x.Failed)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeInt(int64(x.Running)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Running")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeInt(int64(x.Running)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeInt(int64(x.Starting)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Starting")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeInt(int64(x.Starting)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeInt(int64(x.Lost)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Lost")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeInt(int64(x.Lost)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *TaskGroupSummary) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *TaskGroupSummary) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Queued": - if r.TryDecodeAsNil() { - x.Queued = 0 - } else { - yyv4 := &x.Queued - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*int)(yyv4)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - case "Complete": - if r.TryDecodeAsNil() { - x.Complete = 0 - } else { - yyv6 := &x.Complete - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*int)(yyv6)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - case "Failed": - if r.TryDecodeAsNil() { - x.Failed = 0 - } else { - yyv8 := &x.Failed - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*int)(yyv8)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - case "Running": - if r.TryDecodeAsNil() { - x.Running = 0 - } else { - yyv10 := &x.Running - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*int)(yyv10)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - case "Starting": - if r.TryDecodeAsNil() { - x.Starting = 0 - } else { - yyv12 := &x.Starting - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*int)(yyv12)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - case "Lost": - if r.TryDecodeAsNil() { - x.Lost = 0 - } else { - yyv14 := &x.Lost - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*int)(yyv14)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *TaskGroupSummary) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Queued = 0 - } else { - yyv17 := &x.Queued - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*int)(yyv17)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Complete = 0 - } else { - yyv19 := &x.Complete - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*int)(yyv19)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Failed = 0 - } else { - yyv21 := &x.Failed - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*int)(yyv21)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Running = 0 - } else { - yyv23 := &x.Running - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*int)(yyv23)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Starting = 0 - } else { - yyv25 := &x.Starting - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*int)(yyv25)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Lost = 0 - } else { - yyv27 := &x.Lost - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*int)(yyv27)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - for { - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj16-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *UpdateStrategy) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [7]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(7) - } else { - yynn2 = 7 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else if z.HasExtensions() && z.EncExt(x.Stagger) { - } else { - r.EncodeInt(int64(x.Stagger)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Stagger")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else if z.HasExtensions() && z.EncExt(x.Stagger) { - } else { - r.EncodeInt(int64(x.Stagger)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeInt(int64(x.MaxParallel)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MaxParallel")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeInt(int64(x.MaxParallel)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.HealthCheck)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("HealthCheck")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.HealthCheck)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.EncExt(x.MinHealthyTime) { - } else { - r.EncodeInt(int64(x.MinHealthyTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MinHealthyTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else if z.HasExtensions() && z.EncExt(x.MinHealthyTime) { - } else { - r.EncodeInt(int64(x.MinHealthyTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.EncExt(x.HealthyDeadline) { - } else { - r.EncodeInt(int64(x.HealthyDeadline)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("HealthyDeadline")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else if z.HasExtensions() && z.EncExt(x.HealthyDeadline) { - } else { - r.EncodeInt(int64(x.HealthyDeadline)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeBool(bool(x.AutoRevert)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AutoRevert")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeBool(bool(x.AutoRevert)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeInt(int64(x.Canary)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Canary")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeInt(int64(x.Canary)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *UpdateStrategy) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *UpdateStrategy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Stagger": - if r.TryDecodeAsNil() { - x.Stagger = 0 - } else { - yyv4 := &x.Stagger - yym5 := z.DecBinary() - _ = yym5 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4) { - } else { - *((*int64)(yyv4)) = int64(r.DecodeInt(64)) - } - } - case "MaxParallel": - if r.TryDecodeAsNil() { - x.MaxParallel = 0 - } else { - yyv6 := &x.MaxParallel - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*int)(yyv6)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - case "HealthCheck": - if r.TryDecodeAsNil() { - x.HealthCheck = "" - } else { - yyv8 := &x.HealthCheck - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "MinHealthyTime": - if r.TryDecodeAsNil() { - x.MinHealthyTime = 0 - } else { - yyv10 := &x.MinHealthyTime - yym11 := z.DecBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.DecExt(yyv10) { - } else { - *((*int64)(yyv10)) = int64(r.DecodeInt(64)) - } - } - case "HealthyDeadline": - if r.TryDecodeAsNil() { - x.HealthyDeadline = 0 - } else { - yyv12 := &x.HealthyDeadline - yym13 := z.DecBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.DecExt(yyv12) { - } else { - *((*int64)(yyv12)) = int64(r.DecodeInt(64)) - } - } - case "AutoRevert": - if r.TryDecodeAsNil() { - x.AutoRevert = false - } else { - yyv14 := &x.AutoRevert - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*bool)(yyv14)) = r.DecodeBool() - } - } - case "Canary": - if r.TryDecodeAsNil() { - x.Canary = 0 - } else { - yyv16 := &x.Canary - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*int)(yyv16)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *UpdateStrategy) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Stagger = 0 - } else { - yyv19 := &x.Stagger - yym20 := z.DecBinary() - _ = yym20 - if false { - } else if z.HasExtensions() && z.DecExt(yyv19) { - } else { - *((*int64)(yyv19)) = int64(r.DecodeInt(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MaxParallel = 0 - } else { - yyv21 := &x.MaxParallel - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*int)(yyv21)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.HealthCheck = "" - } else { - yyv23 := &x.HealthCheck - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MinHealthyTime = 0 - } else { - yyv25 := &x.MinHealthyTime - yym26 := z.DecBinary() - _ = yym26 - if false { - } else if z.HasExtensions() && z.DecExt(yyv25) { - } else { - *((*int64)(yyv25)) = int64(r.DecodeInt(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.HealthyDeadline = 0 - } else { - yyv27 := &x.HealthyDeadline - yym28 := z.DecBinary() - _ = yym28 - if false { - } else if z.HasExtensions() && z.DecExt(yyv27) { - } else { - *((*int64)(yyv27)) = int64(r.DecodeInt(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AutoRevert = false - } else { - yyv29 := &x.AutoRevert - yym30 := z.DecBinary() - _ = yym30 - if false { - } else { - *((*bool)(yyv29)) = r.DecodeBool() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Canary = 0 - } else { - yyv31 := &x.Canary - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*int)(yyv31)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - for { - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj18-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *PeriodicConfig) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [5]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(5) - } else { - yynn2 = 5 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeBool(bool(x.Enabled)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Enabled")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeBool(bool(x.Enabled)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Spec)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Spec")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Spec)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.SpecType)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("SpecType")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.SpecType)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.ProhibitOverlap)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ProhibitOverlap")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.ProhibitOverlap)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.TimeZone)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("TimeZone")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.TimeZone)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *PeriodicConfig) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *PeriodicConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Enabled": - if r.TryDecodeAsNil() { - x.Enabled = false - } else { - yyv4 := &x.Enabled - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*bool)(yyv4)) = r.DecodeBool() - } - } - case "Spec": - if r.TryDecodeAsNil() { - x.Spec = "" - } else { - yyv6 := &x.Spec - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "SpecType": - if r.TryDecodeAsNil() { - x.SpecType = "" - } else { - yyv8 := &x.SpecType - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "ProhibitOverlap": - if r.TryDecodeAsNil() { - x.ProhibitOverlap = false - } else { - yyv10 := &x.ProhibitOverlap - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*bool)(yyv10)) = r.DecodeBool() - } - } - case "TimeZone": - if r.TryDecodeAsNil() { - x.TimeZone = "" - } else { - yyv12 := &x.TimeZone - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*string)(yyv12)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *PeriodicConfig) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Enabled = false - } else { - yyv15 := &x.Enabled - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*bool)(yyv15)) = r.DecodeBool() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Spec = "" - } else { - yyv17 := &x.Spec - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.SpecType = "" - } else { - yyv19 := &x.SpecType - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ProhibitOverlap = false - } else { - yyv21 := &x.ProhibitOverlap - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*bool)(yyv21)) = r.DecodeBool() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.TimeZone = "" - } else { - yyv23 := &x.TimeZone - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - for { - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj14-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *PeriodicLaunch) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [5]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(5) - } else { - yynn2 = 5 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yy10 := &x.Launch - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if yym12 := z.TimeRtidIfBinc(); yym12 != 0 { - r.EncodeBuiltin(yym12, yy10) - } else if z.HasExtensions() && z.EncExt(yy10) { - } else if yym11 { - z.EncBinaryMarshal(yy10) - } else if !yym11 && z.IsJSONHandle() { - z.EncJSONMarshal(yy10) - } else { - z.EncFallback(yy10) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Launch")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yy13 := &x.Launch - yym14 := z.EncBinary() - _ = yym14 - if false { - } else if yym15 := z.TimeRtidIfBinc(); yym15 != 0 { - r.EncodeBuiltin(yym15, yy13) - } else if z.HasExtensions() && z.EncExt(yy13) { - } else if yym14 { - z.EncBinaryMarshal(yy13) - } else if !yym14 && z.IsJSONHandle() { - z.EncJSONMarshal(yy13) - } else { - z.EncFallback(yy13) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("CreateIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym18 := z.EncBinary() - _ = yym18 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym21 := z.EncBinary() - _ = yym21 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *PeriodicLaunch) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *PeriodicLaunch) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "ID": - if r.TryDecodeAsNil() { - x.ID = "" - } else { - yyv4 := &x.ID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv6 := &x.Namespace - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Launch": - if r.TryDecodeAsNil() { - x.Launch = time.Time{} - } else { - yyv8 := &x.Launch - yym9 := z.DecBinary() - _ = yym9 - if false { - } else if yym10 := z.TimeRtidIfBinc(); yym10 != 0 { - r.DecodeBuiltin(yym10, yyv8) - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else if yym9 { - z.DecBinaryUnmarshal(yyv8) - } else if !yym9 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv8) - } else { - z.DecFallback(yyv8, false) - } - } - case "CreateIndex": - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv11 := &x.CreateIndex - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - *((*uint64)(yyv11)) = uint64(r.DecodeUint(64)) - } - } - case "ModifyIndex": - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv13 := &x.ModifyIndex - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*uint64)(yyv13)) = uint64(r.DecodeUint(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *PeriodicLaunch) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ID = "" - } else { - yyv16 := &x.ID - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv18 := &x.Namespace - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*string)(yyv18)) = r.DecodeString() - } - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Launch = time.Time{} - } else { - yyv20 := &x.Launch - yym21 := z.DecBinary() - _ = yym21 - if false { - } else if yym22 := z.TimeRtidIfBinc(); yym22 != 0 { - r.DecodeBuiltin(yym22, yyv20) - } else if z.HasExtensions() && z.DecExt(yyv20) { - } else if yym21 { - z.DecBinaryUnmarshal(yyv20) - } else if !yym21 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv20) - } else { - z.DecFallback(yyv20, false) - } - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv23 := &x.CreateIndex - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*uint64)(yyv23)) = uint64(r.DecodeUint(64)) - } - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv25 := &x.ModifyIndex - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*uint64)(yyv25)) = uint64(r.DecodeUint(64)) - } - } - for { - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj15-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *ParameterizedJobConfig) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(3) - } else { - yynn2 = 3 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Payload)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Payload")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Payload)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.MetaRequired == nil { - r.EncodeNil() - } else { - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - z.F.EncSliceStringV(x.MetaRequired, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MetaRequired")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.MetaRequired == nil { - r.EncodeNil() - } else { - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - z.F.EncSliceStringV(x.MetaRequired, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.MetaOptional == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - z.F.EncSliceStringV(x.MetaOptional, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MetaOptional")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.MetaOptional == nil { - r.EncodeNil() - } else { - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - z.F.EncSliceStringV(x.MetaOptional, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *ParameterizedJobConfig) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *ParameterizedJobConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Payload": - if r.TryDecodeAsNil() { - x.Payload = "" - } else { - yyv4 := &x.Payload - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "MetaRequired": - if r.TryDecodeAsNil() { - x.MetaRequired = nil - } else { - yyv6 := &x.MetaRequired - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - z.F.DecSliceStringX(yyv6, false, d) - } - } - case "MetaOptional": - if r.TryDecodeAsNil() { - x.MetaOptional = nil - } else { - yyv8 := &x.MetaOptional - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - z.F.DecSliceStringX(yyv8, false, d) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *ParameterizedJobConfig) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Payload = "" - } else { - yyv11 := &x.Payload - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - *((*string)(yyv11)) = r.DecodeString() - } - } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MetaRequired = nil - } else { - yyv13 := &x.MetaRequired - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - z.F.DecSliceStringX(yyv13, false, d) - } - } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MetaOptional = nil - } else { - yyv15 := &x.MetaOptional - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - z.F.DecSliceStringX(yyv15, false, d) - } - } - for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj10-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *DispatchPayloadConfig) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(1) - } else { - yynn2 = 1 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.File)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("File")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.File)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *DispatchPayloadConfig) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *DispatchPayloadConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "File": - if r.TryDecodeAsNil() { - x.File = "" - } else { - yyv4 := &x.File - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *DispatchPayloadConfig) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.File = "" - } else { - yyv7 := &x.File - yym8 := z.DecBinary() - _ = yym8 - if false { - } else { - *((*string)(yyv7)) = r.DecodeString() - } - } - for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj6-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *RestartPolicy) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeInt(int64(x.Attempts)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Attempts")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeInt(int64(x.Attempts)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else if z.HasExtensions() && z.EncExt(x.Interval) { - } else { - r.EncodeInt(int64(x.Interval)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Interval")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else if z.HasExtensions() && z.EncExt(x.Interval) { - } else { - r.EncodeInt(int64(x.Interval)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.Delay) { - } else { - r.EncodeInt(int64(x.Delay)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Delay")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.Delay) { - } else { - r.EncodeInt(int64(x.Delay)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Mode)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Mode")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Mode)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *RestartPolicy) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *RestartPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Attempts": - if r.TryDecodeAsNil() { - x.Attempts = 0 - } else { - yyv4 := &x.Attempts - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*int)(yyv4)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - case "Interval": - if r.TryDecodeAsNil() { - x.Interval = 0 - } else { - yyv6 := &x.Interval - yym7 := z.DecBinary() - _ = yym7 - if false { - } else if z.HasExtensions() && z.DecExt(yyv6) { - } else { - *((*int64)(yyv6)) = int64(r.DecodeInt(64)) - } - } - case "Delay": - if r.TryDecodeAsNil() { - x.Delay = 0 - } else { - yyv8 := &x.Delay - yym9 := z.DecBinary() - _ = yym9 - if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else { - *((*int64)(yyv8)) = int64(r.DecodeInt(64)) - } - } - case "Mode": - if r.TryDecodeAsNil() { - x.Mode = "" - } else { - yyv10 := &x.Mode - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *RestartPolicy) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Attempts = 0 - } else { - yyv13 := &x.Attempts - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*int)(yyv13)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Interval = 0 - } else { - yyv15 := &x.Interval - yym16 := z.DecBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.DecExt(yyv15) { - } else { - *((*int64)(yyv15)) = int64(r.DecodeInt(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Delay = 0 - } else { - yyv17 := &x.Delay - yym18 := z.DecBinary() - _ = yym18 - if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else { - *((*int64)(yyv17)) = int64(r.DecodeInt(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Mode = "" - } else { - yyv19 := &x.Mode - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *TaskGroup) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(8) - } else { - yynn2 = 8 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Name)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Name")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Name)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeInt(int64(x.Count)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Count")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeInt(int64(x.Count)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Update == nil { - r.EncodeNil() - } else { - x.Update.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Update")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Update == nil { - r.EncodeNil() - } else { - x.Update.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Constraints == nil { - r.EncodeNil() - } else { - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Constraints")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Constraints == nil { - r.EncodeNil() - } else { - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.RestartPolicy == nil { - r.EncodeNil() - } else { - x.RestartPolicy.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("RestartPolicy")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.RestartPolicy == nil { - r.EncodeNil() - } else { - x.RestartPolicy.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Tasks == nil { - r.EncodeNil() - } else { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - h.encSlicePtrtoTask(([]*Task)(x.Tasks), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Tasks")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Tasks == nil { - r.EncodeNil() - } else { - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - h.encSlicePtrtoTask(([]*Task)(x.Tasks), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.EphemeralDisk == nil { - r.EncodeNil() - } else { - x.EphemeralDisk.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("EphemeralDisk")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.EphemeralDisk == nil { - r.EncodeNil() - } else { - x.EphemeralDisk.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Meta == nil { - r.EncodeNil() - } else { - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - z.F.EncMapStringStringV(x.Meta, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Meta")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Meta == nil { - r.EncodeNil() - } else { - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - z.F.EncMapStringStringV(x.Meta, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *TaskGroup) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *TaskGroup) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv4 := &x.Name - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Count": - if r.TryDecodeAsNil() { - x.Count = 0 - } else { - yyv6 := &x.Count - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*int)(yyv6)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - case "Update": - if r.TryDecodeAsNil() { - if x.Update != nil { - x.Update = nil - } - } else { - if x.Update == nil { - x.Update = new(UpdateStrategy) - } - x.Update.CodecDecodeSelf(d) - } - case "Constraints": - if r.TryDecodeAsNil() { - x.Constraints = nil - } else { - yyv9 := &x.Constraints - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - h.decSlicePtrtoConstraint((*[]*Constraint)(yyv9), d) - } - } - case "RestartPolicy": - if r.TryDecodeAsNil() { - if x.RestartPolicy != nil { - x.RestartPolicy = nil - } - } else { - if x.RestartPolicy == nil { - x.RestartPolicy = new(RestartPolicy) - } - x.RestartPolicy.CodecDecodeSelf(d) - } - case "Tasks": - if r.TryDecodeAsNil() { - x.Tasks = nil - } else { - yyv12 := &x.Tasks - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - h.decSlicePtrtoTask((*[]*Task)(yyv12), d) - } - } - case "EphemeralDisk": - if r.TryDecodeAsNil() { - if x.EphemeralDisk != nil { - x.EphemeralDisk = nil - } - } else { - if x.EphemeralDisk == nil { - x.EphemeralDisk = new(EphemeralDisk) - } - x.EphemeralDisk.CodecDecodeSelf(d) - } - case "Meta": - if r.TryDecodeAsNil() { - x.Meta = nil - } else { - yyv15 := &x.Meta - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - z.F.DecMapStringStringX(yyv15, false, d) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *TaskGroup) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv18 := &x.Name - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*string)(yyv18)) = r.DecodeString() - } - } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = r.CheckBreak() - } - if yyb17 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Count = 0 - } else { - yyv20 := &x.Count - yym21 := z.DecBinary() - _ = yym21 - if false { - } else { - *((*int)(yyv20)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = r.CheckBreak() - } - if yyb17 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Update != nil { - x.Update = nil - } - } else { - if x.Update == nil { - x.Update = new(UpdateStrategy) - } - x.Update.CodecDecodeSelf(d) - } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = r.CheckBreak() - } - if yyb17 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Constraints = nil - } else { - yyv23 := &x.Constraints - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - h.decSlicePtrtoConstraint((*[]*Constraint)(yyv23), d) - } - } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = r.CheckBreak() - } - if yyb17 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.RestartPolicy != nil { - x.RestartPolicy = nil - } - } else { - if x.RestartPolicy == nil { - x.RestartPolicy = new(RestartPolicy) - } - x.RestartPolicy.CodecDecodeSelf(d) - } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = r.CheckBreak() - } - if yyb17 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Tasks = nil - } else { - yyv26 := &x.Tasks - yym27 := z.DecBinary() - _ = yym27 - if false { - } else { - h.decSlicePtrtoTask((*[]*Task)(yyv26), d) - } - } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = r.CheckBreak() - } - if yyb17 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.EphemeralDisk != nil { - x.EphemeralDisk = nil - } - } else { - if x.EphemeralDisk == nil { - x.EphemeralDisk = new(EphemeralDisk) - } - x.EphemeralDisk.CodecDecodeSelf(d) - } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = r.CheckBreak() - } - if yyb17 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Meta = nil - } else { - yyv29 := &x.Meta - yym30 := z.DecBinary() - _ = yym30 - if false { - } else { - z.F.DecMapStringStringX(yyv29, false, d) - } - } - for { - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = r.CheckBreak() - } - if yyb17 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj17-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *CheckRestart) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(3) - } else { - yynn2 = 3 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeInt(int64(x.Limit)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Limit")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeInt(int64(x.Limit)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else if z.HasExtensions() && z.EncExt(x.Grace) { - } else { - r.EncodeInt(int64(x.Grace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Grace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else if z.HasExtensions() && z.EncExt(x.Grace) { - } else { - r.EncodeInt(int64(x.Grace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeBool(bool(x.IgnoreWarnings)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("IgnoreWarnings")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeBool(bool(x.IgnoreWarnings)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *CheckRestart) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *CheckRestart) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Limit": - if r.TryDecodeAsNil() { - x.Limit = 0 - } else { - yyv4 := &x.Limit - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*int)(yyv4)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - case "Grace": - if r.TryDecodeAsNil() { - x.Grace = 0 - } else { - yyv6 := &x.Grace - yym7 := z.DecBinary() - _ = yym7 - if false { - } else if z.HasExtensions() && z.DecExt(yyv6) { - } else { - *((*int64)(yyv6)) = int64(r.DecodeInt(64)) - } - } - case "IgnoreWarnings": - if r.TryDecodeAsNil() { - x.IgnoreWarnings = false - } else { - yyv8 := &x.IgnoreWarnings - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*bool)(yyv8)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *CheckRestart) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Limit = 0 - } else { - yyv11 := &x.Limit - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - *((*int)(yyv11)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Grace = 0 - } else { - yyv13 := &x.Grace - yym14 := z.DecBinary() - _ = yym14 - if false { - } else if z.HasExtensions() && z.DecExt(yyv13) { - } else { - *((*int64)(yyv13)) = int64(r.DecodeInt(64)) - } - } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.IgnoreWarnings = false - } else { - yyv15 := &x.IgnoreWarnings - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*bool)(yyv15)) = r.DecodeBool() - } - } - for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj10-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *ServiceCheck) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [15]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(15) - } else { - yynn2 = 15 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Name)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Name")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Name)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Type)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Type")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Type)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Command)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Command")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Command)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Args == nil { - r.EncodeNil() - } else { - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - z.F.EncSliceStringV(x.Args, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Args")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Args == nil { - r.EncodeNil() - } else { - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - z.F.EncSliceStringV(x.Args, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Path)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Path")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Path)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Protocol)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Protocol")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Protocol)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.PortLabel)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("PortLabel")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.PortLabel)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AddressMode)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AddressMode")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AddressMode)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym28 := z.EncBinary() - _ = yym28 - if false { - } else if z.HasExtensions() && z.EncExt(x.Interval) { - } else { - r.EncodeInt(int64(x.Interval)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Interval")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym29 := z.EncBinary() - _ = yym29 - if false { - } else if z.HasExtensions() && z.EncExt(x.Interval) { - } else { - r.EncodeInt(int64(x.Interval)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym31 := z.EncBinary() - _ = yym31 - if false { - } else if z.HasExtensions() && z.EncExt(x.Timeout) { - } else { - r.EncodeInt(int64(x.Timeout)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Timeout")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym32 := z.EncBinary() - _ = yym32 - if false { - } else if z.HasExtensions() && z.EncExt(x.Timeout) { - } else { - r.EncodeInt(int64(x.Timeout)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym34 := z.EncBinary() - _ = yym34 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.InitialStatus)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("InitialStatus")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym35 := z.EncBinary() - _ = yym35 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.InitialStatus)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym37 := z.EncBinary() - _ = yym37 - if false { - } else { - r.EncodeBool(bool(x.TLSSkipVerify)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("TLSSkipVerify")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym38 := z.EncBinary() - _ = yym38 - if false { - } else { - r.EncodeBool(bool(x.TLSSkipVerify)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym40 := z.EncBinary() - _ = yym40 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Method)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Method")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym41 := z.EncBinary() - _ = yym41 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Method)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Header == nil { - r.EncodeNil() - } else { - yym43 := z.EncBinary() - _ = yym43 - if false { - } else { - h.encMapstringSlicestring((map[string][]string)(x.Header), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Header")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Header == nil { - r.EncodeNil() - } else { - yym44 := z.EncBinary() - _ = yym44 - if false { - } else { - h.encMapstringSlicestring((map[string][]string)(x.Header), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.CheckRestart == nil { - r.EncodeNil() - } else { - x.CheckRestart.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("CheckRestart")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.CheckRestart == nil { - r.EncodeNil() - } else { - x.CheckRestart.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *ServiceCheck) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *ServiceCheck) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv4 := &x.Name - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Type": - if r.TryDecodeAsNil() { - x.Type = "" - } else { - yyv6 := &x.Type - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Command": - if r.TryDecodeAsNil() { - x.Command = "" - } else { - yyv8 := &x.Command - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "Args": - if r.TryDecodeAsNil() { - x.Args = nil - } else { - yyv10 := &x.Args - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - z.F.DecSliceStringX(yyv10, false, d) - } - } - case "Path": - if r.TryDecodeAsNil() { - x.Path = "" - } else { - yyv12 := &x.Path - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*string)(yyv12)) = r.DecodeString() - } - } - case "Protocol": - if r.TryDecodeAsNil() { - x.Protocol = "" - } else { - yyv14 := &x.Protocol - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*string)(yyv14)) = r.DecodeString() - } - } - case "PortLabel": - if r.TryDecodeAsNil() { - x.PortLabel = "" - } else { - yyv16 := &x.PortLabel - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - case "AddressMode": - if r.TryDecodeAsNil() { - x.AddressMode = "" - } else { - yyv18 := &x.AddressMode - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*string)(yyv18)) = r.DecodeString() - } - } - case "Interval": - if r.TryDecodeAsNil() { - x.Interval = 0 - } else { - yyv20 := &x.Interval - yym21 := z.DecBinary() - _ = yym21 - if false { - } else if z.HasExtensions() && z.DecExt(yyv20) { - } else { - *((*int64)(yyv20)) = int64(r.DecodeInt(64)) - } - } - case "Timeout": - if r.TryDecodeAsNil() { - x.Timeout = 0 - } else { - yyv22 := &x.Timeout - yym23 := z.DecBinary() - _ = yym23 - if false { - } else if z.HasExtensions() && z.DecExt(yyv22) { - } else { - *((*int64)(yyv22)) = int64(r.DecodeInt(64)) - } - } - case "InitialStatus": - if r.TryDecodeAsNil() { - x.InitialStatus = "" - } else { - yyv24 := &x.InitialStatus - yym25 := z.DecBinary() - _ = yym25 - if false { - } else { - *((*string)(yyv24)) = r.DecodeString() - } - } - case "TLSSkipVerify": - if r.TryDecodeAsNil() { - x.TLSSkipVerify = false - } else { - yyv26 := &x.TLSSkipVerify - yym27 := z.DecBinary() - _ = yym27 - if false { - } else { - *((*bool)(yyv26)) = r.DecodeBool() - } - } - case "Method": - if r.TryDecodeAsNil() { - x.Method = "" - } else { - yyv28 := &x.Method - yym29 := z.DecBinary() - _ = yym29 - if false { - } else { - *((*string)(yyv28)) = r.DecodeString() - } - } - case "Header": - if r.TryDecodeAsNil() { - x.Header = nil - } else { - yyv30 := &x.Header - yym31 := z.DecBinary() - _ = yym31 - if false { - } else { - h.decMapstringSlicestring((*map[string][]string)(yyv30), d) - } - } - case "CheckRestart": - if r.TryDecodeAsNil() { - if x.CheckRestart != nil { - x.CheckRestart = nil - } - } else { - if x.CheckRestart == nil { - x.CheckRestart = new(CheckRestart) - } - x.CheckRestart.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *ServiceCheck) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv34 := &x.Name - yym35 := z.DecBinary() - _ = yym35 - if false { - } else { - *((*string)(yyv34)) = r.DecodeString() - } - } - yyj33++ - if yyhl33 { - yyb33 = yyj33 > l - } else { - yyb33 = r.CheckBreak() - } - if yyb33 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Type = "" - } else { - yyv36 := &x.Type - yym37 := z.DecBinary() - _ = yym37 - if false { - } else { - *((*string)(yyv36)) = r.DecodeString() - } - } - yyj33++ - if yyhl33 { - yyb33 = yyj33 > l - } else { - yyb33 = r.CheckBreak() - } - if yyb33 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Command = "" - } else { - yyv38 := &x.Command - yym39 := z.DecBinary() - _ = yym39 - if false { - } else { - *((*string)(yyv38)) = r.DecodeString() - } - } - yyj33++ - if yyhl33 { - yyb33 = yyj33 > l - } else { - yyb33 = r.CheckBreak() - } - if yyb33 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Args = nil - } else { - yyv40 := &x.Args - yym41 := z.DecBinary() - _ = yym41 - if false { - } else { - z.F.DecSliceStringX(yyv40, false, d) - } - } - yyj33++ - if yyhl33 { - yyb33 = yyj33 > l - } else { - yyb33 = r.CheckBreak() - } - if yyb33 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Path = "" - } else { - yyv42 := &x.Path - yym43 := z.DecBinary() - _ = yym43 - if false { - } else { - *((*string)(yyv42)) = r.DecodeString() - } - } - yyj33++ - if yyhl33 { - yyb33 = yyj33 > l - } else { - yyb33 = r.CheckBreak() - } - if yyb33 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Protocol = "" - } else { - yyv44 := &x.Protocol - yym45 := z.DecBinary() - _ = yym45 - if false { - } else { - *((*string)(yyv44)) = r.DecodeString() - } - } - yyj33++ - if yyhl33 { - yyb33 = yyj33 > l - } else { - yyb33 = r.CheckBreak() - } - if yyb33 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.PortLabel = "" - } else { - yyv46 := &x.PortLabel - yym47 := z.DecBinary() - _ = yym47 - if false { - } else { - *((*string)(yyv46)) = r.DecodeString() - } - } - yyj33++ - if yyhl33 { - yyb33 = yyj33 > l - } else { - yyb33 = r.CheckBreak() - } - if yyb33 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AddressMode = "" - } else { - yyv48 := &x.AddressMode - yym49 := z.DecBinary() - _ = yym49 - if false { - } else { - *((*string)(yyv48)) = r.DecodeString() - } - } - yyj33++ - if yyhl33 { - yyb33 = yyj33 > l - } else { - yyb33 = r.CheckBreak() - } - if yyb33 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Interval = 0 - } else { - yyv50 := &x.Interval - yym51 := z.DecBinary() - _ = yym51 - if false { - } else if z.HasExtensions() && z.DecExt(yyv50) { - } else { - *((*int64)(yyv50)) = int64(r.DecodeInt(64)) - } - } - yyj33++ - if yyhl33 { - yyb33 = yyj33 > l - } else { - yyb33 = r.CheckBreak() - } - if yyb33 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Timeout = 0 - } else { - yyv52 := &x.Timeout - yym53 := z.DecBinary() - _ = yym53 - if false { - } else if z.HasExtensions() && z.DecExt(yyv52) { - } else { - *((*int64)(yyv52)) = int64(r.DecodeInt(64)) - } - } - yyj33++ - if yyhl33 { - yyb33 = yyj33 > l - } else { - yyb33 = r.CheckBreak() - } - if yyb33 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.InitialStatus = "" - } else { - yyv54 := &x.InitialStatus - yym55 := z.DecBinary() - _ = yym55 - if false { - } else { - *((*string)(yyv54)) = r.DecodeString() - } - } - yyj33++ - if yyhl33 { - yyb33 = yyj33 > l - } else { - yyb33 = r.CheckBreak() - } - if yyb33 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.TLSSkipVerify = false - } else { - yyv56 := &x.TLSSkipVerify - yym57 := z.DecBinary() - _ = yym57 - if false { - } else { - *((*bool)(yyv56)) = r.DecodeBool() - } - } - yyj33++ - if yyhl33 { - yyb33 = yyj33 > l - } else { - yyb33 = r.CheckBreak() - } - if yyb33 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Method = "" - } else { - yyv58 := &x.Method - yym59 := z.DecBinary() - _ = yym59 - if false { - } else { - *((*string)(yyv58)) = r.DecodeString() - } - } - yyj33++ - if yyhl33 { - yyb33 = yyj33 > l - } else { - yyb33 = r.CheckBreak() - } - if yyb33 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Header = nil - } else { - yyv60 := &x.Header - yym61 := z.DecBinary() - _ = yym61 - if false { - } else { - h.decMapstringSlicestring((*map[string][]string)(yyv60), d) - } - } - yyj33++ - if yyhl33 { - yyb33 = yyj33 > l - } else { - yyb33 = r.CheckBreak() - } - if yyb33 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.CheckRestart != nil { - x.CheckRestart = nil - } - } else { - if x.CheckRestart == nil { - x.CheckRestart = new(CheckRestart) - } - x.CheckRestart.CodecDecodeSelf(d) - } - for { - yyj33++ - if yyhl33 { - yyb33 = yyj33 > l - } else { - yyb33 = r.CheckBreak() - } - if yyb33 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj33-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *Service) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [5]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(5) - } else { - yynn2 = 5 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Name)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Name")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Name)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.PortLabel)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("PortLabel")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.PortLabel)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AddressMode)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AddressMode")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AddressMode)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Tags == nil { - r.EncodeNil() - } else { - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - z.F.EncSliceStringV(x.Tags, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Tags")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Tags == nil { - r.EncodeNil() - } else { - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - z.F.EncSliceStringV(x.Tags, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Checks == nil { - r.EncodeNil() - } else { - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - h.encSlicePtrtoServiceCheck(([]*ServiceCheck)(x.Checks), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Checks")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Checks == nil { - r.EncodeNil() - } else { - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - h.encSlicePtrtoServiceCheck(([]*ServiceCheck)(x.Checks), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *Service) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *Service) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv4 := &x.Name - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "PortLabel": - if r.TryDecodeAsNil() { - x.PortLabel = "" - } else { - yyv6 := &x.PortLabel - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "AddressMode": - if r.TryDecodeAsNil() { - x.AddressMode = "" - } else { - yyv8 := &x.AddressMode - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "Tags": - if r.TryDecodeAsNil() { - x.Tags = nil - } else { - yyv10 := &x.Tags - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - z.F.DecSliceStringX(yyv10, false, d) - } - } - case "Checks": - if r.TryDecodeAsNil() { - x.Checks = nil - } else { - yyv12 := &x.Checks - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - h.decSlicePtrtoServiceCheck((*[]*ServiceCheck)(yyv12), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *Service) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv15 := &x.Name - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.PortLabel = "" - } else { - yyv17 := &x.PortLabel - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AddressMode = "" - } else { - yyv19 := &x.AddressMode - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Tags = nil - } else { - yyv21 := &x.Tags - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - z.F.DecSliceStringX(yyv21, false, d) - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Checks = nil - } else { - yyv23 := &x.Checks - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - h.decSlicePtrtoServiceCheck((*[]*ServiceCheck)(yyv23), d) - } - } - for { - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj14-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *LogConfig) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(2) - } else { - yynn2 = 2 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeInt(int64(x.MaxFiles)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MaxFiles")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeInt(int64(x.MaxFiles)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeInt(int64(x.MaxFileSizeMB)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MaxFileSizeMB")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeInt(int64(x.MaxFileSizeMB)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *LogConfig) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *LogConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "MaxFiles": - if r.TryDecodeAsNil() { - x.MaxFiles = 0 - } else { - yyv4 := &x.MaxFiles - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*int)(yyv4)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - case "MaxFileSizeMB": - if r.TryDecodeAsNil() { - x.MaxFileSizeMB = 0 - } else { - yyv6 := &x.MaxFileSizeMB - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*int)(yyv6)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *LogConfig) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MaxFiles = 0 - } else { - yyv9 := &x.MaxFiles - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - *((*int)(yyv9)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MaxFileSizeMB = 0 - } else { - yyv11 := &x.MaxFileSizeMB - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - *((*int)(yyv11)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj8-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *Task) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [18]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(18) - } else { - yynn2 = 18 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Name)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Name")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Name)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Driver)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Driver")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Driver)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.User)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("User")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.User)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Config == nil { - r.EncodeNil() - } else { - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - z.F.EncMapStringIntfV(x.Config, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Config")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Config == nil { - r.EncodeNil() - } else { - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - z.F.EncMapStringIntfV(x.Config, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Env == nil { - r.EncodeNil() - } else { - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - z.F.EncMapStringStringV(x.Env, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Env")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Env == nil { - r.EncodeNil() - } else { - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - z.F.EncMapStringStringV(x.Env, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Services == nil { - r.EncodeNil() - } else { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - h.encSlicePtrtoService(([]*Service)(x.Services), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Services")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Services == nil { - r.EncodeNil() - } else { - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - h.encSlicePtrtoService(([]*Service)(x.Services), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Vault == nil { - r.EncodeNil() - } else { - x.Vault.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Vault")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Vault == nil { - r.EncodeNil() - } else { - x.Vault.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Templates == nil { - r.EncodeNil() - } else { - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - h.encSlicePtrtoTemplate(([]*Template)(x.Templates), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Templates")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Templates == nil { - r.EncodeNil() - } else { - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - h.encSlicePtrtoTemplate(([]*Template)(x.Templates), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Constraints == nil { - r.EncodeNil() - } else { - yym28 := z.EncBinary() - _ = yym28 - if false { - } else { - h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Constraints")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Constraints == nil { - r.EncodeNil() - } else { - yym29 := z.EncBinary() - _ = yym29 - if false { - } else { - h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Resources == nil { - r.EncodeNil() - } else { - x.Resources.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Resources")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Resources == nil { - r.EncodeNil() - } else { - x.Resources.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.DispatchPayload == nil { - r.EncodeNil() - } else { - x.DispatchPayload.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DispatchPayload")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.DispatchPayload == nil { - r.EncodeNil() - } else { - x.DispatchPayload.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Meta == nil { - r.EncodeNil() - } else { - yym37 := z.EncBinary() - _ = yym37 - if false { - } else { - z.F.EncMapStringStringV(x.Meta, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Meta")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Meta == nil { - r.EncodeNil() - } else { - yym38 := z.EncBinary() - _ = yym38 - if false { - } else { - z.F.EncMapStringStringV(x.Meta, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym40 := z.EncBinary() - _ = yym40 - if false { - } else if z.HasExtensions() && z.EncExt(x.KillTimeout) { - } else { - r.EncodeInt(int64(x.KillTimeout)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KillTimeout")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym41 := z.EncBinary() - _ = yym41 - if false { - } else if z.HasExtensions() && z.EncExt(x.KillTimeout) { - } else { - r.EncodeInt(int64(x.KillTimeout)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.LogConfig == nil { - r.EncodeNil() - } else { - x.LogConfig.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LogConfig")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.LogConfig == nil { - r.EncodeNil() - } else { - x.LogConfig.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Artifacts == nil { - r.EncodeNil() - } else { - yym46 := z.EncBinary() - _ = yym46 - if false { - } else { - h.encSlicePtrtoTaskArtifact(([]*TaskArtifact)(x.Artifacts), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Artifacts")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Artifacts == nil { - r.EncodeNil() - } else { - yym47 := z.EncBinary() - _ = yym47 - if false { - } else { - h.encSlicePtrtoTaskArtifact(([]*TaskArtifact)(x.Artifacts), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym49 := z.EncBinary() - _ = yym49 - if false { - } else { - r.EncodeBool(bool(x.Leader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Leader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym50 := z.EncBinary() - _ = yym50 - if false { - } else { - r.EncodeBool(bool(x.Leader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym52 := z.EncBinary() - _ = yym52 - if false { - } else if z.HasExtensions() && z.EncExt(x.ShutdownDelay) { - } else { - r.EncodeInt(int64(x.ShutdownDelay)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ShutdownDelay")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym53 := z.EncBinary() - _ = yym53 - if false { - } else if z.HasExtensions() && z.EncExt(x.ShutdownDelay) { - } else { - r.EncodeInt(int64(x.ShutdownDelay)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym55 := z.EncBinary() - _ = yym55 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.KillSignal)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KillSignal")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym56 := z.EncBinary() - _ = yym56 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.KillSignal)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *Task) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *Task) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv4 := &x.Name - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Driver": - if r.TryDecodeAsNil() { - x.Driver = "" - } else { - yyv6 := &x.Driver - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "User": - if r.TryDecodeAsNil() { - x.User = "" - } else { - yyv8 := &x.User - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "Config": - if r.TryDecodeAsNil() { - x.Config = nil - } else { - yyv10 := &x.Config - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - z.F.DecMapStringIntfX(yyv10, false, d) - } - } - case "Env": - if r.TryDecodeAsNil() { - x.Env = nil - } else { - yyv12 := &x.Env - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - z.F.DecMapStringStringX(yyv12, false, d) - } - } - case "Services": - if r.TryDecodeAsNil() { - x.Services = nil - } else { - yyv14 := &x.Services - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - h.decSlicePtrtoService((*[]*Service)(yyv14), d) - } - } - case "Vault": - if r.TryDecodeAsNil() { - if x.Vault != nil { - x.Vault = nil - } - } else { - if x.Vault == nil { - x.Vault = new(Vault) - } - x.Vault.CodecDecodeSelf(d) - } - case "Templates": - if r.TryDecodeAsNil() { - x.Templates = nil - } else { - yyv17 := &x.Templates - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - h.decSlicePtrtoTemplate((*[]*Template)(yyv17), d) - } - } - case "Constraints": - if r.TryDecodeAsNil() { - x.Constraints = nil - } else { - yyv19 := &x.Constraints - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - h.decSlicePtrtoConstraint((*[]*Constraint)(yyv19), d) - } - } - case "Resources": - if r.TryDecodeAsNil() { - if x.Resources != nil { - x.Resources = nil - } - } else { - if x.Resources == nil { - x.Resources = new(Resources) - } - x.Resources.CodecDecodeSelf(d) - } - case "DispatchPayload": - if r.TryDecodeAsNil() { - if x.DispatchPayload != nil { - x.DispatchPayload = nil - } - } else { - if x.DispatchPayload == nil { - x.DispatchPayload = new(DispatchPayloadConfig) - } - x.DispatchPayload.CodecDecodeSelf(d) - } - case "Meta": - if r.TryDecodeAsNil() { - x.Meta = nil - } else { - yyv23 := &x.Meta - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - z.F.DecMapStringStringX(yyv23, false, d) - } - } - case "KillTimeout": - if r.TryDecodeAsNil() { - x.KillTimeout = 0 - } else { - yyv25 := &x.KillTimeout - yym26 := z.DecBinary() - _ = yym26 - if false { - } else if z.HasExtensions() && z.DecExt(yyv25) { - } else { - *((*int64)(yyv25)) = int64(r.DecodeInt(64)) - } - } - case "LogConfig": - if r.TryDecodeAsNil() { - if x.LogConfig != nil { - x.LogConfig = nil - } - } else { - if x.LogConfig == nil { - x.LogConfig = new(LogConfig) - } - x.LogConfig.CodecDecodeSelf(d) - } - case "Artifacts": - if r.TryDecodeAsNil() { - x.Artifacts = nil - } else { - yyv28 := &x.Artifacts - yym29 := z.DecBinary() - _ = yym29 - if false { - } else { - h.decSlicePtrtoTaskArtifact((*[]*TaskArtifact)(yyv28), d) - } - } - case "Leader": - if r.TryDecodeAsNil() { - x.Leader = false - } else { - yyv30 := &x.Leader - yym31 := z.DecBinary() - _ = yym31 - if false { - } else { - *((*bool)(yyv30)) = r.DecodeBool() - } - } - case "ShutdownDelay": - if r.TryDecodeAsNil() { - x.ShutdownDelay = 0 - } else { - yyv32 := &x.ShutdownDelay - yym33 := z.DecBinary() - _ = yym33 - if false { - } else if z.HasExtensions() && z.DecExt(yyv32) { - } else { - *((*int64)(yyv32)) = int64(r.DecodeInt(64)) - } - } - case "KillSignal": - if r.TryDecodeAsNil() { - x.KillSignal = "" - } else { - yyv34 := &x.KillSignal - yym35 := z.DecBinary() - _ = yym35 - if false { - } else { - *((*string)(yyv34)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *Task) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj36 int - var yyb36 bool - var yyhl36 bool = l >= 0 - yyj36++ - if yyhl36 { - yyb36 = yyj36 > l - } else { - yyb36 = r.CheckBreak() - } - if yyb36 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv37 := &x.Name - yym38 := z.DecBinary() - _ = yym38 - if false { - } else { - *((*string)(yyv37)) = r.DecodeString() - } - } - yyj36++ - if yyhl36 { - yyb36 = yyj36 > l - } else { - yyb36 = r.CheckBreak() - } - if yyb36 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Driver = "" - } else { - yyv39 := &x.Driver - yym40 := z.DecBinary() - _ = yym40 - if false { - } else { - *((*string)(yyv39)) = r.DecodeString() - } - } - yyj36++ - if yyhl36 { - yyb36 = yyj36 > l - } else { - yyb36 = r.CheckBreak() - } - if yyb36 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.User = "" - } else { - yyv41 := &x.User - yym42 := z.DecBinary() - _ = yym42 - if false { - } else { - *((*string)(yyv41)) = r.DecodeString() - } - } - yyj36++ - if yyhl36 { - yyb36 = yyj36 > l - } else { - yyb36 = r.CheckBreak() - } - if yyb36 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Config = nil - } else { - yyv43 := &x.Config - yym44 := z.DecBinary() - _ = yym44 - if false { - } else { - z.F.DecMapStringIntfX(yyv43, false, d) - } - } - yyj36++ - if yyhl36 { - yyb36 = yyj36 > l - } else { - yyb36 = r.CheckBreak() - } - if yyb36 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Env = nil - } else { - yyv45 := &x.Env - yym46 := z.DecBinary() - _ = yym46 - if false { - } else { - z.F.DecMapStringStringX(yyv45, false, d) - } - } - yyj36++ - if yyhl36 { - yyb36 = yyj36 > l - } else { - yyb36 = r.CheckBreak() - } - if yyb36 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Services = nil - } else { - yyv47 := &x.Services - yym48 := z.DecBinary() - _ = yym48 - if false { - } else { - h.decSlicePtrtoService((*[]*Service)(yyv47), d) - } - } - yyj36++ - if yyhl36 { - yyb36 = yyj36 > l - } else { - yyb36 = r.CheckBreak() - } - if yyb36 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Vault != nil { - x.Vault = nil - } - } else { - if x.Vault == nil { - x.Vault = new(Vault) - } - x.Vault.CodecDecodeSelf(d) - } - yyj36++ - if yyhl36 { - yyb36 = yyj36 > l - } else { - yyb36 = r.CheckBreak() - } - if yyb36 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Templates = nil - } else { - yyv50 := &x.Templates - yym51 := z.DecBinary() - _ = yym51 - if false { - } else { - h.decSlicePtrtoTemplate((*[]*Template)(yyv50), d) - } - } - yyj36++ - if yyhl36 { - yyb36 = yyj36 > l - } else { - yyb36 = r.CheckBreak() - } - if yyb36 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Constraints = nil - } else { - yyv52 := &x.Constraints - yym53 := z.DecBinary() - _ = yym53 - if false { - } else { - h.decSlicePtrtoConstraint((*[]*Constraint)(yyv52), d) - } - } - yyj36++ - if yyhl36 { - yyb36 = yyj36 > l - } else { - yyb36 = r.CheckBreak() - } - if yyb36 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Resources != nil { - x.Resources = nil - } - } else { - if x.Resources == nil { - x.Resources = new(Resources) - } - x.Resources.CodecDecodeSelf(d) - } - yyj36++ - if yyhl36 { - yyb36 = yyj36 > l - } else { - yyb36 = r.CheckBreak() - } - if yyb36 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.DispatchPayload != nil { - x.DispatchPayload = nil - } - } else { - if x.DispatchPayload == nil { - x.DispatchPayload = new(DispatchPayloadConfig) - } - x.DispatchPayload.CodecDecodeSelf(d) - } - yyj36++ - if yyhl36 { - yyb36 = yyj36 > l - } else { - yyb36 = r.CheckBreak() - } - if yyb36 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Meta = nil - } else { - yyv56 := &x.Meta - yym57 := z.DecBinary() - _ = yym57 - if false { - } else { - z.F.DecMapStringStringX(yyv56, false, d) - } - } - yyj36++ - if yyhl36 { - yyb36 = yyj36 > l - } else { - yyb36 = r.CheckBreak() - } - if yyb36 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KillTimeout = 0 - } else { - yyv58 := &x.KillTimeout - yym59 := z.DecBinary() - _ = yym59 - if false { - } else if z.HasExtensions() && z.DecExt(yyv58) { - } else { - *((*int64)(yyv58)) = int64(r.DecodeInt(64)) - } - } - yyj36++ - if yyhl36 { - yyb36 = yyj36 > l - } else { - yyb36 = r.CheckBreak() - } - if yyb36 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.LogConfig != nil { - x.LogConfig = nil - } - } else { - if x.LogConfig == nil { - x.LogConfig = new(LogConfig) - } - x.LogConfig.CodecDecodeSelf(d) - } - yyj36++ - if yyhl36 { - yyb36 = yyj36 > l - } else { - yyb36 = r.CheckBreak() - } - if yyb36 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Artifacts = nil - } else { - yyv61 := &x.Artifacts - yym62 := z.DecBinary() - _ = yym62 - if false { - } else { - h.decSlicePtrtoTaskArtifact((*[]*TaskArtifact)(yyv61), d) - } - } - yyj36++ - if yyhl36 { - yyb36 = yyj36 > l - } else { - yyb36 = r.CheckBreak() - } - if yyb36 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Leader = false - } else { - yyv63 := &x.Leader - yym64 := z.DecBinary() - _ = yym64 - if false { - } else { - *((*bool)(yyv63)) = r.DecodeBool() - } - } - yyj36++ - if yyhl36 { - yyb36 = yyj36 > l - } else { - yyb36 = r.CheckBreak() - } - if yyb36 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ShutdownDelay = 0 - } else { - yyv65 := &x.ShutdownDelay - yym66 := z.DecBinary() - _ = yym66 - if false { - } else if z.HasExtensions() && z.DecExt(yyv65) { - } else { - *((*int64)(yyv65)) = int64(r.DecodeInt(64)) - } - } - yyj36++ - if yyhl36 { - yyb36 = yyj36 > l - } else { - yyb36 = r.CheckBreak() - } - if yyb36 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KillSignal = "" - } else { - yyv67 := &x.KillSignal - yym68 := z.DecBinary() - _ = yym68 - if false { - } else { - *((*string)(yyv67)) = r.DecodeString() - } - } - for { - yyj36++ - if yyhl36 { - yyb36 = yyj36 > l - } else { - yyb36 = r.CheckBreak() - } - if yyb36 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj36-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *Template) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [11]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(11) - } else { - yynn2 = 11 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.SourcePath)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("SourcePath")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.SourcePath)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DestPath)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DestPath")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DestPath)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.EmbeddedTmpl)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("EmbeddedTmpl")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.EmbeddedTmpl)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ChangeMode)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ChangeMode")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ChangeMode)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ChangeSignal)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ChangeSignal")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ChangeSignal)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else if z.HasExtensions() && z.EncExt(x.Splay) { - } else { - r.EncodeInt(int64(x.Splay)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Splay")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else if z.HasExtensions() && z.EncExt(x.Splay) { - } else { - r.EncodeInt(int64(x.Splay)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Perms)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Perms")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Perms)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.LeftDelim)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LeftDelim")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.LeftDelim)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym28 := z.EncBinary() - _ = yym28 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.RightDelim)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("RightDelim")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym29 := z.EncBinary() - _ = yym29 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.RightDelim)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym31 := z.EncBinary() - _ = yym31 - if false { - } else { - r.EncodeBool(bool(x.Envvars)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Envvars")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym32 := z.EncBinary() - _ = yym32 - if false { - } else { - r.EncodeBool(bool(x.Envvars)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym34 := z.EncBinary() - _ = yym34 - if false { - } else if z.HasExtensions() && z.EncExt(x.VaultGrace) { - } else { - r.EncodeInt(int64(x.VaultGrace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("VaultGrace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym35 := z.EncBinary() - _ = yym35 - if false { - } else if z.HasExtensions() && z.EncExt(x.VaultGrace) { - } else { - r.EncodeInt(int64(x.VaultGrace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *Template) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *Template) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "SourcePath": - if r.TryDecodeAsNil() { - x.SourcePath = "" - } else { - yyv4 := &x.SourcePath - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "DestPath": - if r.TryDecodeAsNil() { - x.DestPath = "" - } else { - yyv6 := &x.DestPath - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "EmbeddedTmpl": - if r.TryDecodeAsNil() { - x.EmbeddedTmpl = "" - } else { - yyv8 := &x.EmbeddedTmpl - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "ChangeMode": - if r.TryDecodeAsNil() { - x.ChangeMode = "" - } else { - yyv10 := &x.ChangeMode - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - case "ChangeSignal": - if r.TryDecodeAsNil() { - x.ChangeSignal = "" - } else { - yyv12 := &x.ChangeSignal - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*string)(yyv12)) = r.DecodeString() - } - } - case "Splay": - if r.TryDecodeAsNil() { - x.Splay = 0 - } else { - yyv14 := &x.Splay - yym15 := z.DecBinary() - _ = yym15 - if false { - } else if z.HasExtensions() && z.DecExt(yyv14) { - } else { - *((*int64)(yyv14)) = int64(r.DecodeInt(64)) - } - } - case "Perms": - if r.TryDecodeAsNil() { - x.Perms = "" - } else { - yyv16 := &x.Perms - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - case "LeftDelim": - if r.TryDecodeAsNil() { - x.LeftDelim = "" - } else { - yyv18 := &x.LeftDelim - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*string)(yyv18)) = r.DecodeString() - } - } - case "RightDelim": - if r.TryDecodeAsNil() { - x.RightDelim = "" - } else { - yyv20 := &x.RightDelim - yym21 := z.DecBinary() - _ = yym21 - if false { - } else { - *((*string)(yyv20)) = r.DecodeString() - } - } - case "Envvars": - if r.TryDecodeAsNil() { - x.Envvars = false - } else { - yyv22 := &x.Envvars - yym23 := z.DecBinary() - _ = yym23 - if false { - } else { - *((*bool)(yyv22)) = r.DecodeBool() - } - } - case "VaultGrace": - if r.TryDecodeAsNil() { - x.VaultGrace = 0 - } else { - yyv24 := &x.VaultGrace - yym25 := z.DecBinary() - _ = yym25 - if false { - } else if z.HasExtensions() && z.DecExt(yyv24) { - } else { - *((*int64)(yyv24)) = int64(r.DecodeInt(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *Template) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.SourcePath = "" - } else { - yyv27 := &x.SourcePath - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*string)(yyv27)) = r.DecodeString() - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DestPath = "" - } else { - yyv29 := &x.DestPath - yym30 := z.DecBinary() - _ = yym30 - if false { - } else { - *((*string)(yyv29)) = r.DecodeString() - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.EmbeddedTmpl = "" - } else { - yyv31 := &x.EmbeddedTmpl - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*string)(yyv31)) = r.DecodeString() - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ChangeMode = "" - } else { - yyv33 := &x.ChangeMode - yym34 := z.DecBinary() - _ = yym34 - if false { - } else { - *((*string)(yyv33)) = r.DecodeString() - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ChangeSignal = "" - } else { - yyv35 := &x.ChangeSignal - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - *((*string)(yyv35)) = r.DecodeString() - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Splay = 0 - } else { - yyv37 := &x.Splay - yym38 := z.DecBinary() - _ = yym38 - if false { - } else if z.HasExtensions() && z.DecExt(yyv37) { - } else { - *((*int64)(yyv37)) = int64(r.DecodeInt(64)) - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Perms = "" - } else { - yyv39 := &x.Perms - yym40 := z.DecBinary() - _ = yym40 - if false { - } else { - *((*string)(yyv39)) = r.DecodeString() - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LeftDelim = "" - } else { - yyv41 := &x.LeftDelim - yym42 := z.DecBinary() - _ = yym42 - if false { - } else { - *((*string)(yyv41)) = r.DecodeString() - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.RightDelim = "" - } else { - yyv43 := &x.RightDelim - yym44 := z.DecBinary() - _ = yym44 - if false { - } else { - *((*string)(yyv43)) = r.DecodeString() - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Envvars = false - } else { - yyv45 := &x.Envvars - yym46 := z.DecBinary() - _ = yym46 - if false { - } else { - *((*bool)(yyv45)) = r.DecodeBool() - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.VaultGrace = 0 - } else { - yyv47 := &x.VaultGrace - yym48 := z.DecBinary() - _ = yym48 - if false { - } else if z.HasExtensions() && z.DecExt(yyv47) { - } else { - *((*int64)(yyv47)) = int64(r.DecodeInt(64)) - } - } - for { - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj26-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *TaskState) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [7]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(7) - } else { - yynn2 = 7 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.State)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("State")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.State)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeBool(bool(x.Failed)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Failed")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeBool(bool(x.Failed)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.Restarts)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Restarts")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(x.Restarts)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yy13 := &x.LastRestart - yym14 := z.EncBinary() - _ = yym14 - if false { - } else if yym15 := z.TimeRtidIfBinc(); yym15 != 0 { - r.EncodeBuiltin(yym15, yy13) - } else if z.HasExtensions() && z.EncExt(yy13) { - } else if yym14 { - z.EncBinaryMarshal(yy13) - } else if !yym14 && z.IsJSONHandle() { - z.EncJSONMarshal(yy13) - } else { - z.EncFallback(yy13) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastRestart")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yy16 := &x.LastRestart - yym17 := z.EncBinary() - _ = yym17 - if false { - } else if yym18 := z.TimeRtidIfBinc(); yym18 != 0 { - r.EncodeBuiltin(yym18, yy16) - } else if z.HasExtensions() && z.EncExt(yy16) { - } else if yym17 { - z.EncBinaryMarshal(yy16) - } else if !yym17 && z.IsJSONHandle() { - z.EncJSONMarshal(yy16) - } else { - z.EncFallback(yy16) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yy20 := &x.StartedAt - yym21 := z.EncBinary() - _ = yym21 - if false { - } else if yym22 := z.TimeRtidIfBinc(); yym22 != 0 { - r.EncodeBuiltin(yym22, yy20) - } else if z.HasExtensions() && z.EncExt(yy20) { - } else if yym21 { - z.EncBinaryMarshal(yy20) - } else if !yym21 && z.IsJSONHandle() { - z.EncJSONMarshal(yy20) - } else { - z.EncFallback(yy20) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("StartedAt")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yy23 := &x.StartedAt - yym24 := z.EncBinary() - _ = yym24 - if false { - } else if yym25 := z.TimeRtidIfBinc(); yym25 != 0 { - r.EncodeBuiltin(yym25, yy23) - } else if z.HasExtensions() && z.EncExt(yy23) { - } else if yym24 { - z.EncBinaryMarshal(yy23) - } else if !yym24 && z.IsJSONHandle() { - z.EncJSONMarshal(yy23) - } else { - z.EncFallback(yy23) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yy27 := &x.FinishedAt - yym28 := z.EncBinary() - _ = yym28 - if false { - } else if yym29 := z.TimeRtidIfBinc(); yym29 != 0 { - r.EncodeBuiltin(yym29, yy27) - } else if z.HasExtensions() && z.EncExt(yy27) { - } else if yym28 { - z.EncBinaryMarshal(yy27) - } else if !yym28 && z.IsJSONHandle() { - z.EncJSONMarshal(yy27) - } else { - z.EncFallback(yy27) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("FinishedAt")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yy30 := &x.FinishedAt - yym31 := z.EncBinary() - _ = yym31 - if false { - } else if yym32 := z.TimeRtidIfBinc(); yym32 != 0 { - r.EncodeBuiltin(yym32, yy30) - } else if z.HasExtensions() && z.EncExt(yy30) { - } else if yym31 { - z.EncBinaryMarshal(yy30) - } else if !yym31 && z.IsJSONHandle() { - z.EncJSONMarshal(yy30) - } else { - z.EncFallback(yy30) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Events == nil { - r.EncodeNil() - } else { - yym34 := z.EncBinary() - _ = yym34 - if false { - } else { - h.encSlicePtrtoTaskEvent(([]*TaskEvent)(x.Events), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Events")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Events == nil { - r.EncodeNil() - } else { - yym35 := z.EncBinary() - _ = yym35 - if false { - } else { - h.encSlicePtrtoTaskEvent(([]*TaskEvent)(x.Events), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *TaskState) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *TaskState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "State": - if r.TryDecodeAsNil() { - x.State = "" - } else { - yyv4 := &x.State - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Failed": - if r.TryDecodeAsNil() { - x.Failed = false - } else { - yyv6 := &x.Failed - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*bool)(yyv6)) = r.DecodeBool() - } - } - case "Restarts": - if r.TryDecodeAsNil() { - x.Restarts = 0 - } else { - yyv8 := &x.Restarts - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) - } - } - case "LastRestart": - if r.TryDecodeAsNil() { - x.LastRestart = time.Time{} - } else { - yyv10 := &x.LastRestart - yym11 := z.DecBinary() - _ = yym11 - if false { - } else if yym12 := z.TimeRtidIfBinc(); yym12 != 0 { - r.DecodeBuiltin(yym12, yyv10) - } else if z.HasExtensions() && z.DecExt(yyv10) { - } else if yym11 { - z.DecBinaryUnmarshal(yyv10) - } else if !yym11 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv10) - } else { - z.DecFallback(yyv10, false) - } - } - case "StartedAt": - if r.TryDecodeAsNil() { - x.StartedAt = time.Time{} - } else { - yyv13 := &x.StartedAt - yym14 := z.DecBinary() - _ = yym14 - if false { - } else if yym15 := z.TimeRtidIfBinc(); yym15 != 0 { - r.DecodeBuiltin(yym15, yyv13) - } else if z.HasExtensions() && z.DecExt(yyv13) { - } else if yym14 { - z.DecBinaryUnmarshal(yyv13) - } else if !yym14 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv13) - } else { - z.DecFallback(yyv13, false) - } - } - case "FinishedAt": - if r.TryDecodeAsNil() { - x.FinishedAt = time.Time{} - } else { - yyv16 := &x.FinishedAt - yym17 := z.DecBinary() - _ = yym17 - if false { - } else if yym18 := z.TimeRtidIfBinc(); yym18 != 0 { - r.DecodeBuiltin(yym18, yyv16) - } else if z.HasExtensions() && z.DecExt(yyv16) { - } else if yym17 { - z.DecBinaryUnmarshal(yyv16) - } else if !yym17 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv16) - } else { - z.DecFallback(yyv16, false) - } - } - case "Events": - if r.TryDecodeAsNil() { - x.Events = nil - } else { - yyv19 := &x.Events - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - h.decSlicePtrtoTaskEvent((*[]*TaskEvent)(yyv19), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *TaskState) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.State = "" - } else { - yyv22 := &x.State - yym23 := z.DecBinary() - _ = yym23 - if false { - } else { - *((*string)(yyv22)) = r.DecodeString() - } - } - yyj21++ - if yyhl21 { - yyb21 = yyj21 > l - } else { - yyb21 = r.CheckBreak() - } - if yyb21 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Failed = false - } else { - yyv24 := &x.Failed - yym25 := z.DecBinary() - _ = yym25 - if false { - } else { - *((*bool)(yyv24)) = r.DecodeBool() - } - } - yyj21++ - if yyhl21 { - yyb21 = yyj21 > l - } else { - yyb21 = r.CheckBreak() - } - if yyb21 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Restarts = 0 - } else { - yyv26 := &x.Restarts - yym27 := z.DecBinary() - _ = yym27 - if false { - } else { - *((*uint64)(yyv26)) = uint64(r.DecodeUint(64)) - } - } - yyj21++ - if yyhl21 { - yyb21 = yyj21 > l - } else { - yyb21 = r.CheckBreak() - } - if yyb21 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastRestart = time.Time{} - } else { - yyv28 := &x.LastRestart - yym29 := z.DecBinary() - _ = yym29 - if false { - } else if yym30 := z.TimeRtidIfBinc(); yym30 != 0 { - r.DecodeBuiltin(yym30, yyv28) - } else if z.HasExtensions() && z.DecExt(yyv28) { - } else if yym29 { - z.DecBinaryUnmarshal(yyv28) - } else if !yym29 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv28) - } else { - z.DecFallback(yyv28, false) - } - } - yyj21++ - if yyhl21 { - yyb21 = yyj21 > l - } else { - yyb21 = r.CheckBreak() - } - if yyb21 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.StartedAt = time.Time{} - } else { - yyv31 := &x.StartedAt - yym32 := z.DecBinary() - _ = yym32 - if false { - } else if yym33 := z.TimeRtidIfBinc(); yym33 != 0 { - r.DecodeBuiltin(yym33, yyv31) - } else if z.HasExtensions() && z.DecExt(yyv31) { - } else if yym32 { - z.DecBinaryUnmarshal(yyv31) - } else if !yym32 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv31) - } else { - z.DecFallback(yyv31, false) - } - } - yyj21++ - if yyhl21 { - yyb21 = yyj21 > l - } else { - yyb21 = r.CheckBreak() - } - if yyb21 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.FinishedAt = time.Time{} - } else { - yyv34 := &x.FinishedAt - yym35 := z.DecBinary() - _ = yym35 - if false { - } else if yym36 := z.TimeRtidIfBinc(); yym36 != 0 { - r.DecodeBuiltin(yym36, yyv34) - } else if z.HasExtensions() && z.DecExt(yyv34) { - } else if yym35 { - z.DecBinaryUnmarshal(yyv34) - } else if !yym35 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv34) - } else { - z.DecFallback(yyv34, false) - } - } - yyj21++ - if yyhl21 { - yyb21 = yyj21 > l - } else { - yyb21 = r.CheckBreak() - } - if yyb21 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Events = nil - } else { - yyv37 := &x.Events - yym38 := z.DecBinary() - _ = yym38 - if false { - } else { - h.decSlicePtrtoTaskEvent((*[]*TaskEvent)(yyv37), d) - } - } - for { - yyj21++ - if yyhl21 { - yyb21 = yyj21 > l - } else { - yyb21 = r.CheckBreak() - } - if yyb21 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj21-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *TaskEvent) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [24]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(24) - } else { - yynn2 = 24 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Type)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Type")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Type)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeInt(int64(x.Time)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Time")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeInt(int64(x.Time)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Message)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Message")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Message)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DisplayMessage)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DisplayMessage")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DisplayMessage)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Details == nil { - r.EncodeNil() - } else { - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - z.F.EncMapStringStringV(x.Details, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Details")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Details == nil { - r.EncodeNil() - } else { - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - z.F.EncMapStringStringV(x.Details, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeBool(bool(x.FailsTask)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("FailsTask")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeBool(bool(x.FailsTask)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.RestartReason)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("RestartReason")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.RestartReason)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.SetupError)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("SetupError")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.SetupError)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym28 := z.EncBinary() - _ = yym28 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DriverError)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DriverError")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym29 := z.EncBinary() - _ = yym29 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DriverError)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym31 := z.EncBinary() - _ = yym31 - if false { - } else { - r.EncodeInt(int64(x.ExitCode)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ExitCode")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym32 := z.EncBinary() - _ = yym32 - if false { - } else { - r.EncodeInt(int64(x.ExitCode)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym34 := z.EncBinary() - _ = yym34 - if false { - } else { - r.EncodeInt(int64(x.Signal)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Signal")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym35 := z.EncBinary() - _ = yym35 - if false { - } else { - r.EncodeInt(int64(x.Signal)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym37 := z.EncBinary() - _ = yym37 - if false { - } else if z.HasExtensions() && z.EncExt(x.KillTimeout) { - } else { - r.EncodeInt(int64(x.KillTimeout)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KillTimeout")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym38 := z.EncBinary() - _ = yym38 - if false { - } else if z.HasExtensions() && z.EncExt(x.KillTimeout) { - } else { - r.EncodeInt(int64(x.KillTimeout)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym40 := z.EncBinary() - _ = yym40 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.KillError)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KillError")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym41 := z.EncBinary() - _ = yym41 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.KillError)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym43 := z.EncBinary() - _ = yym43 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.KillReason)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KillReason")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym44 := z.EncBinary() - _ = yym44 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.KillReason)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym46 := z.EncBinary() - _ = yym46 - if false { - } else { - r.EncodeInt(int64(x.StartDelay)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("StartDelay")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym47 := z.EncBinary() - _ = yym47 - if false { - } else { - r.EncodeInt(int64(x.StartDelay)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym49 := z.EncBinary() - _ = yym49 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DownloadError)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DownloadError")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym50 := z.EncBinary() - _ = yym50 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DownloadError)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym52 := z.EncBinary() - _ = yym52 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ValidationError)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ValidationError")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym53 := z.EncBinary() - _ = yym53 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ValidationError)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym55 := z.EncBinary() - _ = yym55 - if false { - } else { - r.EncodeInt(int64(x.DiskLimit)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DiskLimit")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym56 := z.EncBinary() - _ = yym56 - if false { - } else { - r.EncodeInt(int64(x.DiskLimit)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym58 := z.EncBinary() - _ = yym58 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.FailedSibling)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("FailedSibling")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym59 := z.EncBinary() - _ = yym59 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.FailedSibling)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym61 := z.EncBinary() - _ = yym61 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.VaultError)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("VaultError")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym62 := z.EncBinary() - _ = yym62 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.VaultError)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym64 := z.EncBinary() - _ = yym64 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.TaskSignalReason)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("TaskSignalReason")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym65 := z.EncBinary() - _ = yym65 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.TaskSignalReason)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym67 := z.EncBinary() - _ = yym67 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.TaskSignal)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("TaskSignal")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym68 := z.EncBinary() - _ = yym68 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.TaskSignal)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym70 := z.EncBinary() - _ = yym70 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DriverMessage)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DriverMessage")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym71 := z.EncBinary() - _ = yym71 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DriverMessage)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym73 := z.EncBinary() - _ = yym73 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.GenericSource)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("GenericSource")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym74 := z.EncBinary() - _ = yym74 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.GenericSource)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *TaskEvent) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *TaskEvent) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Type": - if r.TryDecodeAsNil() { - x.Type = "" - } else { - yyv4 := &x.Type - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Time": - if r.TryDecodeAsNil() { - x.Time = 0 - } else { - yyv6 := &x.Time - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*int64)(yyv6)) = int64(r.DecodeInt(64)) - } - } - case "Message": - if r.TryDecodeAsNil() { - x.Message = "" - } else { - yyv8 := &x.Message - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "DisplayMessage": - if r.TryDecodeAsNil() { - x.DisplayMessage = "" - } else { - yyv10 := &x.DisplayMessage - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - case "Details": - if r.TryDecodeAsNil() { - x.Details = nil - } else { - yyv12 := &x.Details - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - z.F.DecMapStringStringX(yyv12, false, d) - } - } - case "FailsTask": - if r.TryDecodeAsNil() { - x.FailsTask = false - } else { - yyv14 := &x.FailsTask - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*bool)(yyv14)) = r.DecodeBool() - } - } - case "RestartReason": - if r.TryDecodeAsNil() { - x.RestartReason = "" - } else { - yyv16 := &x.RestartReason - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - case "SetupError": - if r.TryDecodeAsNil() { - x.SetupError = "" - } else { - yyv18 := &x.SetupError - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*string)(yyv18)) = r.DecodeString() - } - } - case "DriverError": - if r.TryDecodeAsNil() { - x.DriverError = "" - } else { - yyv20 := &x.DriverError - yym21 := z.DecBinary() - _ = yym21 - if false { - } else { - *((*string)(yyv20)) = r.DecodeString() - } - } - case "ExitCode": - if r.TryDecodeAsNil() { - x.ExitCode = 0 - } else { - yyv22 := &x.ExitCode - yym23 := z.DecBinary() - _ = yym23 - if false { - } else { - *((*int)(yyv22)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - case "Signal": - if r.TryDecodeAsNil() { - x.Signal = 0 - } else { - yyv24 := &x.Signal - yym25 := z.DecBinary() - _ = yym25 - if false { - } else { - *((*int)(yyv24)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - case "KillTimeout": - if r.TryDecodeAsNil() { - x.KillTimeout = 0 - } else { - yyv26 := &x.KillTimeout - yym27 := z.DecBinary() - _ = yym27 - if false { - } else if z.HasExtensions() && z.DecExt(yyv26) { - } else { - *((*int64)(yyv26)) = int64(r.DecodeInt(64)) - } - } - case "KillError": - if r.TryDecodeAsNil() { - x.KillError = "" - } else { - yyv28 := &x.KillError - yym29 := z.DecBinary() - _ = yym29 - if false { - } else { - *((*string)(yyv28)) = r.DecodeString() - } - } - case "KillReason": - if r.TryDecodeAsNil() { - x.KillReason = "" - } else { - yyv30 := &x.KillReason - yym31 := z.DecBinary() - _ = yym31 - if false { - } else { - *((*string)(yyv30)) = r.DecodeString() - } - } - case "StartDelay": - if r.TryDecodeAsNil() { - x.StartDelay = 0 - } else { - yyv32 := &x.StartDelay - yym33 := z.DecBinary() - _ = yym33 - if false { - } else { - *((*int64)(yyv32)) = int64(r.DecodeInt(64)) - } - } - case "DownloadError": - if r.TryDecodeAsNil() { - x.DownloadError = "" - } else { - yyv34 := &x.DownloadError - yym35 := z.DecBinary() - _ = yym35 - if false { - } else { - *((*string)(yyv34)) = r.DecodeString() - } - } - case "ValidationError": - if r.TryDecodeAsNil() { - x.ValidationError = "" - } else { - yyv36 := &x.ValidationError - yym37 := z.DecBinary() - _ = yym37 - if false { - } else { - *((*string)(yyv36)) = r.DecodeString() - } - } - case "DiskLimit": - if r.TryDecodeAsNil() { - x.DiskLimit = 0 - } else { - yyv38 := &x.DiskLimit - yym39 := z.DecBinary() - _ = yym39 - if false { - } else { - *((*int64)(yyv38)) = int64(r.DecodeInt(64)) - } - } - case "FailedSibling": - if r.TryDecodeAsNil() { - x.FailedSibling = "" - } else { - yyv40 := &x.FailedSibling - yym41 := z.DecBinary() - _ = yym41 - if false { - } else { - *((*string)(yyv40)) = r.DecodeString() - } - } - case "VaultError": - if r.TryDecodeAsNil() { - x.VaultError = "" - } else { - yyv42 := &x.VaultError - yym43 := z.DecBinary() - _ = yym43 - if false { - } else { - *((*string)(yyv42)) = r.DecodeString() - } - } - case "TaskSignalReason": - if r.TryDecodeAsNil() { - x.TaskSignalReason = "" - } else { - yyv44 := &x.TaskSignalReason - yym45 := z.DecBinary() - _ = yym45 - if false { - } else { - *((*string)(yyv44)) = r.DecodeString() - } - } - case "TaskSignal": - if r.TryDecodeAsNil() { - x.TaskSignal = "" - } else { - yyv46 := &x.TaskSignal - yym47 := z.DecBinary() - _ = yym47 - if false { - } else { - *((*string)(yyv46)) = r.DecodeString() - } - } - case "DriverMessage": - if r.TryDecodeAsNil() { - x.DriverMessage = "" - } else { - yyv48 := &x.DriverMessage - yym49 := z.DecBinary() - _ = yym49 - if false { - } else { - *((*string)(yyv48)) = r.DecodeString() - } - } - case "GenericSource": - if r.TryDecodeAsNil() { - x.GenericSource = "" - } else { - yyv50 := &x.GenericSource - yym51 := z.DecBinary() - _ = yym51 - if false { - } else { - *((*string)(yyv50)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *TaskEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj52 int - var yyb52 bool - var yyhl52 bool = l >= 0 - yyj52++ - if yyhl52 { - yyb52 = yyj52 > l - } else { - yyb52 = r.CheckBreak() - } - if yyb52 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Type = "" - } else { - yyv53 := &x.Type - yym54 := z.DecBinary() - _ = yym54 - if false { - } else { - *((*string)(yyv53)) = r.DecodeString() - } - } - yyj52++ - if yyhl52 { - yyb52 = yyj52 > l - } else { - yyb52 = r.CheckBreak() - } - if yyb52 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Time = 0 - } else { - yyv55 := &x.Time - yym56 := z.DecBinary() - _ = yym56 - if false { - } else { - *((*int64)(yyv55)) = int64(r.DecodeInt(64)) - } - } - yyj52++ - if yyhl52 { - yyb52 = yyj52 > l - } else { - yyb52 = r.CheckBreak() - } - if yyb52 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Message = "" - } else { - yyv57 := &x.Message - yym58 := z.DecBinary() - _ = yym58 - if false { - } else { - *((*string)(yyv57)) = r.DecodeString() - } - } - yyj52++ - if yyhl52 { - yyb52 = yyj52 > l - } else { - yyb52 = r.CheckBreak() - } - if yyb52 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DisplayMessage = "" - } else { - yyv59 := &x.DisplayMessage - yym60 := z.DecBinary() - _ = yym60 - if false { - } else { - *((*string)(yyv59)) = r.DecodeString() - } - } - yyj52++ - if yyhl52 { - yyb52 = yyj52 > l - } else { - yyb52 = r.CheckBreak() - } - if yyb52 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Details = nil - } else { - yyv61 := &x.Details - yym62 := z.DecBinary() - _ = yym62 - if false { - } else { - z.F.DecMapStringStringX(yyv61, false, d) - } - } - yyj52++ - if yyhl52 { - yyb52 = yyj52 > l - } else { - yyb52 = r.CheckBreak() - } - if yyb52 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.FailsTask = false - } else { - yyv63 := &x.FailsTask - yym64 := z.DecBinary() - _ = yym64 - if false { - } else { - *((*bool)(yyv63)) = r.DecodeBool() - } - } - yyj52++ - if yyhl52 { - yyb52 = yyj52 > l - } else { - yyb52 = r.CheckBreak() - } - if yyb52 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.RestartReason = "" - } else { - yyv65 := &x.RestartReason - yym66 := z.DecBinary() - _ = yym66 - if false { - } else { - *((*string)(yyv65)) = r.DecodeString() - } - } - yyj52++ - if yyhl52 { - yyb52 = yyj52 > l - } else { - yyb52 = r.CheckBreak() - } - if yyb52 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.SetupError = "" - } else { - yyv67 := &x.SetupError - yym68 := z.DecBinary() - _ = yym68 - if false { - } else { - *((*string)(yyv67)) = r.DecodeString() - } - } - yyj52++ - if yyhl52 { - yyb52 = yyj52 > l - } else { - yyb52 = r.CheckBreak() - } - if yyb52 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DriverError = "" - } else { - yyv69 := &x.DriverError - yym70 := z.DecBinary() - _ = yym70 - if false { - } else { - *((*string)(yyv69)) = r.DecodeString() - } - } - yyj52++ - if yyhl52 { - yyb52 = yyj52 > l - } else { - yyb52 = r.CheckBreak() - } - if yyb52 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ExitCode = 0 - } else { - yyv71 := &x.ExitCode - yym72 := z.DecBinary() - _ = yym72 - if false { - } else { - *((*int)(yyv71)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - yyj52++ - if yyhl52 { - yyb52 = yyj52 > l - } else { - yyb52 = r.CheckBreak() - } - if yyb52 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Signal = 0 - } else { - yyv73 := &x.Signal - yym74 := z.DecBinary() - _ = yym74 - if false { - } else { - *((*int)(yyv73)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - yyj52++ - if yyhl52 { - yyb52 = yyj52 > l - } else { - yyb52 = r.CheckBreak() - } - if yyb52 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KillTimeout = 0 - } else { - yyv75 := &x.KillTimeout - yym76 := z.DecBinary() - _ = yym76 - if false { - } else if z.HasExtensions() && z.DecExt(yyv75) { - } else { - *((*int64)(yyv75)) = int64(r.DecodeInt(64)) - } - } - yyj52++ - if yyhl52 { - yyb52 = yyj52 > l - } else { - yyb52 = r.CheckBreak() - } - if yyb52 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KillError = "" - } else { - yyv77 := &x.KillError - yym78 := z.DecBinary() - _ = yym78 - if false { - } else { - *((*string)(yyv77)) = r.DecodeString() - } - } - yyj52++ - if yyhl52 { - yyb52 = yyj52 > l - } else { - yyb52 = r.CheckBreak() - } - if yyb52 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KillReason = "" - } else { - yyv79 := &x.KillReason - yym80 := z.DecBinary() - _ = yym80 - if false { - } else { - *((*string)(yyv79)) = r.DecodeString() - } - } - yyj52++ - if yyhl52 { - yyb52 = yyj52 > l - } else { - yyb52 = r.CheckBreak() - } - if yyb52 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.StartDelay = 0 - } else { - yyv81 := &x.StartDelay - yym82 := z.DecBinary() - _ = yym82 - if false { - } else { - *((*int64)(yyv81)) = int64(r.DecodeInt(64)) - } - } - yyj52++ - if yyhl52 { - yyb52 = yyj52 > l - } else { - yyb52 = r.CheckBreak() - } - if yyb52 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DownloadError = "" - } else { - yyv83 := &x.DownloadError - yym84 := z.DecBinary() - _ = yym84 - if false { - } else { - *((*string)(yyv83)) = r.DecodeString() - } - } - yyj52++ - if yyhl52 { - yyb52 = yyj52 > l - } else { - yyb52 = r.CheckBreak() - } - if yyb52 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ValidationError = "" - } else { - yyv85 := &x.ValidationError - yym86 := z.DecBinary() - _ = yym86 - if false { - } else { - *((*string)(yyv85)) = r.DecodeString() - } - } - yyj52++ - if yyhl52 { - yyb52 = yyj52 > l - } else { - yyb52 = r.CheckBreak() - } - if yyb52 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DiskLimit = 0 - } else { - yyv87 := &x.DiskLimit - yym88 := z.DecBinary() - _ = yym88 - if false { - } else { - *((*int64)(yyv87)) = int64(r.DecodeInt(64)) - } - } - yyj52++ - if yyhl52 { - yyb52 = yyj52 > l - } else { - yyb52 = r.CheckBreak() - } - if yyb52 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.FailedSibling = "" - } else { - yyv89 := &x.FailedSibling - yym90 := z.DecBinary() - _ = yym90 - if false { - } else { - *((*string)(yyv89)) = r.DecodeString() - } - } - yyj52++ - if yyhl52 { - yyb52 = yyj52 > l - } else { - yyb52 = r.CheckBreak() - } - if yyb52 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.VaultError = "" - } else { - yyv91 := &x.VaultError - yym92 := z.DecBinary() - _ = yym92 - if false { - } else { - *((*string)(yyv91)) = r.DecodeString() - } - } - yyj52++ - if yyhl52 { - yyb52 = yyj52 > l - } else { - yyb52 = r.CheckBreak() - } - if yyb52 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.TaskSignalReason = "" - } else { - yyv93 := &x.TaskSignalReason - yym94 := z.DecBinary() - _ = yym94 - if false { - } else { - *((*string)(yyv93)) = r.DecodeString() - } - } - yyj52++ - if yyhl52 { - yyb52 = yyj52 > l - } else { - yyb52 = r.CheckBreak() - } - if yyb52 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.TaskSignal = "" - } else { - yyv95 := &x.TaskSignal - yym96 := z.DecBinary() - _ = yym96 - if false { - } else { - *((*string)(yyv95)) = r.DecodeString() - } - } - yyj52++ - if yyhl52 { - yyb52 = yyj52 > l - } else { - yyb52 = r.CheckBreak() - } - if yyb52 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DriverMessage = "" - } else { - yyv97 := &x.DriverMessage - yym98 := z.DecBinary() - _ = yym98 - if false { - } else { - *((*string)(yyv97)) = r.DecodeString() - } - } - yyj52++ - if yyhl52 { - yyb52 = yyj52 > l - } else { - yyb52 = r.CheckBreak() - } - if yyb52 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.GenericSource = "" - } else { - yyv99 := &x.GenericSource - yym100 := z.DecBinary() - _ = yym100 - if false { - } else { - *((*string)(yyv99)) = r.DecodeString() - } - } - for { - yyj52++ - if yyhl52 { - yyb52 = yyj52 > l - } else { - yyb52 = r.CheckBreak() - } - if yyb52 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj52-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *TaskArtifact) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.GetterSource)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("GetterSource")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.GetterSource)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.GetterOptions == nil { - r.EncodeNil() - } else { - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - z.F.EncMapStringStringV(x.GetterOptions, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("GetterOptions")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.GetterOptions == nil { - r.EncodeNil() - } else { - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - z.F.EncMapStringStringV(x.GetterOptions, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.GetterMode)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("GetterMode")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.GetterMode)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.RelativeDest)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("RelativeDest")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.RelativeDest)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *TaskArtifact) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *TaskArtifact) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "GetterSource": - if r.TryDecodeAsNil() { - x.GetterSource = "" - } else { - yyv4 := &x.GetterSource - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "GetterOptions": - if r.TryDecodeAsNil() { - x.GetterOptions = nil - } else { - yyv6 := &x.GetterOptions - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - z.F.DecMapStringStringX(yyv6, false, d) - } - } - case "GetterMode": - if r.TryDecodeAsNil() { - x.GetterMode = "" - } else { - yyv8 := &x.GetterMode - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "RelativeDest": - if r.TryDecodeAsNil() { - x.RelativeDest = "" - } else { - yyv10 := &x.RelativeDest - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *TaskArtifact) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.GetterSource = "" - } else { - yyv13 := &x.GetterSource - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*string)(yyv13)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.GetterOptions = nil - } else { - yyv15 := &x.GetterOptions - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - z.F.DecMapStringStringX(yyv15, false, d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.GetterMode = "" - } else { - yyv17 := &x.GetterMode - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.RelativeDest = "" - } else { - yyv19 := &x.RelativeDest - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *Constraint) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(3) - } else { - yynn2 = 3 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.LTarget)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LTarget")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.LTarget)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.RTarget)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("RTarget")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.RTarget)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Operand)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Operand")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Operand)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *Constraint) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *Constraint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "LTarget": - if r.TryDecodeAsNil() { - x.LTarget = "" - } else { - yyv4 := &x.LTarget - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "RTarget": - if r.TryDecodeAsNil() { - x.RTarget = "" - } else { - yyv6 := &x.RTarget - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Operand": - if r.TryDecodeAsNil() { - x.Operand = "" - } else { - yyv8 := &x.Operand - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *Constraint) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LTarget = "" - } else { - yyv11 := &x.LTarget - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - *((*string)(yyv11)) = r.DecodeString() - } - } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.RTarget = "" - } else { - yyv13 := &x.RTarget - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*string)(yyv13)) = r.DecodeString() - } - } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Operand = "" - } else { - yyv15 := &x.Operand - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj10-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *EphemeralDisk) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(3) - } else { - yynn2 = 3 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeBool(bool(x.Sticky)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Sticky")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeBool(bool(x.Sticky)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeInt(int64(x.SizeMB)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("SizeMB")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeInt(int64(x.SizeMB)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeBool(bool(x.Migrate)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Migrate")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeBool(bool(x.Migrate)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *EphemeralDisk) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *EphemeralDisk) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Sticky": - if r.TryDecodeAsNil() { - x.Sticky = false - } else { - yyv4 := &x.Sticky - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*bool)(yyv4)) = r.DecodeBool() - } - } - case "SizeMB": - if r.TryDecodeAsNil() { - x.SizeMB = 0 - } else { - yyv6 := &x.SizeMB - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*int)(yyv6)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - case "Migrate": - if r.TryDecodeAsNil() { - x.Migrate = false - } else { - yyv8 := &x.Migrate - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*bool)(yyv8)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *EphemeralDisk) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Sticky = false - } else { - yyv11 := &x.Sticky - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - *((*bool)(yyv11)) = r.DecodeBool() - } - } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.SizeMB = 0 - } else { - yyv13 := &x.SizeMB - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*int)(yyv13)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Migrate = false - } else { - yyv15 := &x.Migrate - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*bool)(yyv15)) = r.DecodeBool() - } - } - for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj10-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *Vault) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Policies == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - z.F.EncSliceStringV(x.Policies, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Policies")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Policies == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - z.F.EncSliceStringV(x.Policies, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeBool(bool(x.Env)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Env")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeBool(bool(x.Env)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ChangeMode)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ChangeMode")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ChangeMode)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ChangeSignal)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ChangeSignal")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ChangeSignal)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *Vault) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *Vault) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Policies": - if r.TryDecodeAsNil() { - x.Policies = nil - } else { - yyv4 := &x.Policies - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - z.F.DecSliceStringX(yyv4, false, d) - } - } - case "Env": - if r.TryDecodeAsNil() { - x.Env = false - } else { - yyv6 := &x.Env - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*bool)(yyv6)) = r.DecodeBool() - } - } - case "ChangeMode": - if r.TryDecodeAsNil() { - x.ChangeMode = "" - } else { - yyv8 := &x.ChangeMode - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "ChangeSignal": - if r.TryDecodeAsNil() { - x.ChangeSignal = "" - } else { - yyv10 := &x.ChangeSignal - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Policies = nil - } else { - yyv13 := &x.Policies - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - z.F.DecSliceStringX(yyv13, false, d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Env = false - } else { - yyv15 := &x.Env - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*bool)(yyv15)) = r.DecodeBool() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ChangeMode = "" - } else { - yyv17 := &x.ChangeMode - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ChangeSignal = "" - } else { - yyv19 := &x.ChangeSignal - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *Deployment) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [11]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(11) - } else { - yynn2 = 11 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.JobID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("JobID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.JobID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeUint(uint64(x.JobVersion)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("JobVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeUint(uint64(x.JobVersion)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeUint(uint64(x.JobModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("JobModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeUint(uint64(x.JobModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeUint(uint64(x.JobCreateIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("JobCreateIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeUint(uint64(x.JobCreateIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.TaskGroups == nil { - r.EncodeNil() - } else { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - h.encMapstringPtrtoDeploymentState((map[string]*DeploymentState)(x.TaskGroups), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("TaskGroups")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.TaskGroups == nil { - r.EncodeNil() - } else { - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - h.encMapstringPtrtoDeploymentState((map[string]*DeploymentState)(x.TaskGroups), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Status)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Status")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Status)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym28 := z.EncBinary() - _ = yym28 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.StatusDescription)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("StatusDescription")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym29 := z.EncBinary() - _ = yym29 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.StatusDescription)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym31 := z.EncBinary() - _ = yym31 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("CreateIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym32 := z.EncBinary() - _ = yym32 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym34 := z.EncBinary() - _ = yym34 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym35 := z.EncBinary() - _ = yym35 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *Deployment) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *Deployment) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "ID": - if r.TryDecodeAsNil() { - x.ID = "" - } else { - yyv4 := &x.ID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv6 := &x.Namespace - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "JobID": - if r.TryDecodeAsNil() { - x.JobID = "" - } else { - yyv8 := &x.JobID - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "JobVersion": - if r.TryDecodeAsNil() { - x.JobVersion = 0 - } else { - yyv10 := &x.JobVersion - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) - } - } - case "JobModifyIndex": - if r.TryDecodeAsNil() { - x.JobModifyIndex = 0 - } else { - yyv12 := &x.JobModifyIndex - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*uint64)(yyv12)) = uint64(r.DecodeUint(64)) - } - } - case "JobCreateIndex": - if r.TryDecodeAsNil() { - x.JobCreateIndex = 0 - } else { - yyv14 := &x.JobCreateIndex - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*uint64)(yyv14)) = uint64(r.DecodeUint(64)) - } - } - case "TaskGroups": - if r.TryDecodeAsNil() { - x.TaskGroups = nil - } else { - yyv16 := &x.TaskGroups - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - h.decMapstringPtrtoDeploymentState((*map[string]*DeploymentState)(yyv16), d) - } - } - case "Status": - if r.TryDecodeAsNil() { - x.Status = "" - } else { - yyv18 := &x.Status - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*string)(yyv18)) = r.DecodeString() - } - } - case "StatusDescription": - if r.TryDecodeAsNil() { - x.StatusDescription = "" - } else { - yyv20 := &x.StatusDescription - yym21 := z.DecBinary() - _ = yym21 - if false { - } else { - *((*string)(yyv20)) = r.DecodeString() - } - } - case "CreateIndex": - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv22 := &x.CreateIndex - yym23 := z.DecBinary() - _ = yym23 - if false { - } else { - *((*uint64)(yyv22)) = uint64(r.DecodeUint(64)) - } - } - case "ModifyIndex": - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv24 := &x.ModifyIndex - yym25 := z.DecBinary() - _ = yym25 - if false { - } else { - *((*uint64)(yyv24)) = uint64(r.DecodeUint(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *Deployment) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ID = "" - } else { - yyv27 := &x.ID - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*string)(yyv27)) = r.DecodeString() - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv29 := &x.Namespace - yym30 := z.DecBinary() - _ = yym30 - if false { - } else { - *((*string)(yyv29)) = r.DecodeString() - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.JobID = "" - } else { - yyv31 := &x.JobID - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*string)(yyv31)) = r.DecodeString() - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.JobVersion = 0 - } else { - yyv33 := &x.JobVersion - yym34 := z.DecBinary() - _ = yym34 - if false { - } else { - *((*uint64)(yyv33)) = uint64(r.DecodeUint(64)) - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.JobModifyIndex = 0 - } else { - yyv35 := &x.JobModifyIndex - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - *((*uint64)(yyv35)) = uint64(r.DecodeUint(64)) - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.JobCreateIndex = 0 - } else { - yyv37 := &x.JobCreateIndex - yym38 := z.DecBinary() - _ = yym38 - if false { - } else { - *((*uint64)(yyv37)) = uint64(r.DecodeUint(64)) - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.TaskGroups = nil - } else { - yyv39 := &x.TaskGroups - yym40 := z.DecBinary() - _ = yym40 - if false { - } else { - h.decMapstringPtrtoDeploymentState((*map[string]*DeploymentState)(yyv39), d) - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Status = "" - } else { - yyv41 := &x.Status - yym42 := z.DecBinary() - _ = yym42 - if false { - } else { - *((*string)(yyv41)) = r.DecodeString() - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.StatusDescription = "" - } else { - yyv43 := &x.StatusDescription - yym44 := z.DecBinary() - _ = yym44 - if false { - } else { - *((*string)(yyv43)) = r.DecodeString() - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv45 := &x.CreateIndex - yym46 := z.DecBinary() - _ = yym46 - if false { - } else { - *((*uint64)(yyv45)) = uint64(r.DecodeUint(64)) - } - } - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv47 := &x.ModifyIndex - yym48 := z.DecBinary() - _ = yym48 - if false { - } else { - *((*uint64)(yyv47)) = uint64(r.DecodeUint(64)) - } - } - for { - yyj26++ - if yyhl26 { - yyb26 = yyj26 > l - } else { - yyb26 = r.CheckBreak() - } - if yyb26 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj26-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *DeploymentState) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(8) - } else { - yynn2 = 8 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeBool(bool(x.AutoRevert)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AutoRevert")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeBool(bool(x.AutoRevert)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeBool(bool(x.Promoted)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Promoted")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeBool(bool(x.Promoted)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.PlacedCanaries == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - z.F.EncSliceStringV(x.PlacedCanaries, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("PlacedCanaries")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.PlacedCanaries == nil { - r.EncodeNil() - } else { - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - z.F.EncSliceStringV(x.PlacedCanaries, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeInt(int64(x.DesiredCanaries)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DesiredCanaries")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeInt(int64(x.DesiredCanaries)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeInt(int64(x.DesiredTotal)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DesiredTotal")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeInt(int64(x.DesiredTotal)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeInt(int64(x.PlacedAllocs)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("PlacedAllocs")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeInt(int64(x.PlacedAllocs)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeInt(int64(x.HealthyAllocs)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("HealthyAllocs")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeInt(int64(x.HealthyAllocs)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeInt(int64(x.UnhealthyAllocs)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("UnhealthyAllocs")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeInt(int64(x.UnhealthyAllocs)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *DeploymentState) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *DeploymentState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "AutoRevert": - if r.TryDecodeAsNil() { - x.AutoRevert = false - } else { - yyv4 := &x.AutoRevert - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*bool)(yyv4)) = r.DecodeBool() - } - } - case "Promoted": - if r.TryDecodeAsNil() { - x.Promoted = false - } else { - yyv6 := &x.Promoted - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*bool)(yyv6)) = r.DecodeBool() - } - } - case "PlacedCanaries": - if r.TryDecodeAsNil() { - x.PlacedCanaries = nil - } else { - yyv8 := &x.PlacedCanaries - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - z.F.DecSliceStringX(yyv8, false, d) - } - } - case "DesiredCanaries": - if r.TryDecodeAsNil() { - x.DesiredCanaries = 0 - } else { - yyv10 := &x.DesiredCanaries - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*int)(yyv10)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - case "DesiredTotal": - if r.TryDecodeAsNil() { - x.DesiredTotal = 0 - } else { - yyv12 := &x.DesiredTotal - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*int)(yyv12)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - case "PlacedAllocs": - if r.TryDecodeAsNil() { - x.PlacedAllocs = 0 - } else { - yyv14 := &x.PlacedAllocs - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*int)(yyv14)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - case "HealthyAllocs": - if r.TryDecodeAsNil() { - x.HealthyAllocs = 0 - } else { - yyv16 := &x.HealthyAllocs - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*int)(yyv16)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - case "UnhealthyAllocs": - if r.TryDecodeAsNil() { - x.UnhealthyAllocs = 0 - } else { - yyv18 := &x.UnhealthyAllocs - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*int)(yyv18)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *DeploymentState) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AutoRevert = false - } else { - yyv21 := &x.AutoRevert - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*bool)(yyv21)) = r.DecodeBool() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Promoted = false - } else { - yyv23 := &x.Promoted - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*bool)(yyv23)) = r.DecodeBool() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.PlacedCanaries = nil - } else { - yyv25 := &x.PlacedCanaries - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - z.F.DecSliceStringX(yyv25, false, d) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DesiredCanaries = 0 - } else { - yyv27 := &x.DesiredCanaries - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*int)(yyv27)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DesiredTotal = 0 - } else { - yyv29 := &x.DesiredTotal - yym30 := z.DecBinary() - _ = yym30 - if false { - } else { - *((*int)(yyv29)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.PlacedAllocs = 0 - } else { - yyv31 := &x.PlacedAllocs - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*int)(yyv31)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.HealthyAllocs = 0 - } else { - yyv33 := &x.HealthyAllocs - yym34 := z.DecBinary() - _ = yym34 - if false { - } else { - *((*int)(yyv33)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.UnhealthyAllocs = 0 - } else { - yyv35 := &x.UnhealthyAllocs - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - *((*int)(yyv35)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - for { - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj20-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *DeploymentStatusUpdate) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(3) - } else { - yynn2 = 3 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DeploymentID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DeploymentID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DeploymentID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Status)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Status")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Status)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.StatusDescription)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("StatusDescription")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.StatusDescription)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *DeploymentStatusUpdate) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *DeploymentStatusUpdate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "DeploymentID": - if r.TryDecodeAsNil() { - x.DeploymentID = "" - } else { - yyv4 := &x.DeploymentID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Status": - if r.TryDecodeAsNil() { - x.Status = "" - } else { - yyv6 := &x.Status - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "StatusDescription": - if r.TryDecodeAsNil() { - x.StatusDescription = "" - } else { - yyv8 := &x.StatusDescription - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *DeploymentStatusUpdate) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DeploymentID = "" - } else { - yyv11 := &x.DeploymentID - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - *((*string)(yyv11)) = r.DecodeString() - } - } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Status = "" - } else { - yyv13 := &x.Status - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*string)(yyv13)) = r.DecodeString() - } - } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.StatusDescription = "" - } else { - yyv15 := &x.StatusDescription - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj10-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *Allocation) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [25]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(25) - } else { - yynn2 = 25 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.EvalID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("EvalID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.EvalID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Name)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Name")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Name)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.NodeID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("NodeID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.NodeID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.JobID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("JobID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.JobID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Job == nil { - r.EncodeNil() - } else { - x.Job.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Job")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Job == nil { - r.EncodeNil() - } else { - x.Job.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.TaskGroup)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("TaskGroup")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.TaskGroup)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Resources == nil { - r.EncodeNil() - } else { - x.Resources.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Resources")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Resources == nil { - r.EncodeNil() - } else { - x.Resources.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.SharedResources == nil { - r.EncodeNil() - } else { - x.SharedResources.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("SharedResources")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.SharedResources == nil { - r.EncodeNil() - } else { - x.SharedResources.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.TaskResources == nil { - r.EncodeNil() - } else { - yym34 := z.EncBinary() - _ = yym34 - if false { - } else { - h.encMapstringPtrtoResources((map[string]*Resources)(x.TaskResources), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("TaskResources")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.TaskResources == nil { - r.EncodeNil() - } else { - yym35 := z.EncBinary() - _ = yym35 - if false { - } else { - h.encMapstringPtrtoResources((map[string]*Resources)(x.TaskResources), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Metrics == nil { - r.EncodeNil() - } else { - x.Metrics.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Metrics")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Metrics == nil { - r.EncodeNil() - } else { - x.Metrics.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym40 := z.EncBinary() - _ = yym40 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DesiredStatus)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DesiredStatus")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym41 := z.EncBinary() - _ = yym41 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DesiredStatus)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym43 := z.EncBinary() - _ = yym43 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DesiredDescription)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DesiredDescription")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym44 := z.EncBinary() - _ = yym44 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DesiredDescription)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym46 := z.EncBinary() - _ = yym46 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ClientStatus)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ClientStatus")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym47 := z.EncBinary() - _ = yym47 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ClientStatus)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym49 := z.EncBinary() - _ = yym49 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ClientDescription)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ClientDescription")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym50 := z.EncBinary() - _ = yym50 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ClientDescription)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.TaskStates == nil { - r.EncodeNil() - } else { - yym52 := z.EncBinary() - _ = yym52 - if false { - } else { - h.encMapstringPtrtoTaskState((map[string]*TaskState)(x.TaskStates), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("TaskStates")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.TaskStates == nil { - r.EncodeNil() - } else { - yym53 := z.EncBinary() - _ = yym53 - if false { - } else { - h.encMapstringPtrtoTaskState((map[string]*TaskState)(x.TaskStates), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym55 := z.EncBinary() - _ = yym55 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.PreviousAllocation)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("PreviousAllocation")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym56 := z.EncBinary() - _ = yym56 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.PreviousAllocation)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym58 := z.EncBinary() - _ = yym58 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DeploymentID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DeploymentID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym59 := z.EncBinary() - _ = yym59 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DeploymentID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.DeploymentStatus == nil { - r.EncodeNil() - } else { - x.DeploymentStatus.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DeploymentStatus")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.DeploymentStatus == nil { - r.EncodeNil() - } else { - x.DeploymentStatus.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym64 := z.EncBinary() - _ = yym64 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("CreateIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym65 := z.EncBinary() - _ = yym65 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym67 := z.EncBinary() - _ = yym67 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym68 := z.EncBinary() - _ = yym68 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym70 := z.EncBinary() - _ = yym70 - if false { - } else { - r.EncodeUint(uint64(x.AllocModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllocModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym71 := z.EncBinary() - _ = yym71 - if false { - } else { - r.EncodeUint(uint64(x.AllocModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym73 := z.EncBinary() - _ = yym73 - if false { - } else { - r.EncodeInt(int64(x.CreateTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("CreateTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym74 := z.EncBinary() - _ = yym74 - if false { - } else { - r.EncodeInt(int64(x.CreateTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym76 := z.EncBinary() - _ = yym76 - if false { - } else { - r.EncodeInt(int64(x.ModifyTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ModifyTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym77 := z.EncBinary() - _ = yym77 - if false { - } else { - r.EncodeInt(int64(x.ModifyTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *Allocation) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *Allocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "ID": - if r.TryDecodeAsNil() { - x.ID = "" - } else { - yyv4 := &x.ID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv6 := &x.Namespace - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "EvalID": - if r.TryDecodeAsNil() { - x.EvalID = "" - } else { - yyv8 := &x.EvalID - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv10 := &x.Name - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - case "NodeID": - if r.TryDecodeAsNil() { - x.NodeID = "" - } else { - yyv12 := &x.NodeID - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*string)(yyv12)) = r.DecodeString() - } - } - case "JobID": - if r.TryDecodeAsNil() { - x.JobID = "" - } else { - yyv14 := &x.JobID - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*string)(yyv14)) = r.DecodeString() - } - } - case "Job": - if r.TryDecodeAsNil() { - if x.Job != nil { - x.Job = nil - } - } else { - if x.Job == nil { - x.Job = new(Job) - } - x.Job.CodecDecodeSelf(d) - } - case "TaskGroup": - if r.TryDecodeAsNil() { - x.TaskGroup = "" - } else { - yyv17 := &x.TaskGroup - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - case "Resources": - if r.TryDecodeAsNil() { - if x.Resources != nil { - x.Resources = nil - } - } else { - if x.Resources == nil { - x.Resources = new(Resources) - } - x.Resources.CodecDecodeSelf(d) - } - case "SharedResources": - if r.TryDecodeAsNil() { - if x.SharedResources != nil { - x.SharedResources = nil - } - } else { - if x.SharedResources == nil { - x.SharedResources = new(Resources) - } - x.SharedResources.CodecDecodeSelf(d) - } - case "TaskResources": - if r.TryDecodeAsNil() { - x.TaskResources = nil - } else { - yyv21 := &x.TaskResources - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - h.decMapstringPtrtoResources((*map[string]*Resources)(yyv21), d) - } - } - case "Metrics": - if r.TryDecodeAsNil() { - if x.Metrics != nil { - x.Metrics = nil - } - } else { - if x.Metrics == nil { - x.Metrics = new(AllocMetric) - } - x.Metrics.CodecDecodeSelf(d) - } - case "DesiredStatus": - if r.TryDecodeAsNil() { - x.DesiredStatus = "" - } else { - yyv24 := &x.DesiredStatus - yym25 := z.DecBinary() - _ = yym25 - if false { - } else { - *((*string)(yyv24)) = r.DecodeString() - } - } - case "DesiredDescription": - if r.TryDecodeAsNil() { - x.DesiredDescription = "" - } else { - yyv26 := &x.DesiredDescription - yym27 := z.DecBinary() - _ = yym27 - if false { - } else { - *((*string)(yyv26)) = r.DecodeString() - } - } - case "ClientStatus": - if r.TryDecodeAsNil() { - x.ClientStatus = "" - } else { - yyv28 := &x.ClientStatus - yym29 := z.DecBinary() - _ = yym29 - if false { - } else { - *((*string)(yyv28)) = r.DecodeString() - } - } - case "ClientDescription": - if r.TryDecodeAsNil() { - x.ClientDescription = "" - } else { - yyv30 := &x.ClientDescription - yym31 := z.DecBinary() - _ = yym31 - if false { - } else { - *((*string)(yyv30)) = r.DecodeString() - } - } - case "TaskStates": - if r.TryDecodeAsNil() { - x.TaskStates = nil - } else { - yyv32 := &x.TaskStates - yym33 := z.DecBinary() - _ = yym33 - if false { - } else { - h.decMapstringPtrtoTaskState((*map[string]*TaskState)(yyv32), d) - } - } - case "PreviousAllocation": - if r.TryDecodeAsNil() { - x.PreviousAllocation = "" - } else { - yyv34 := &x.PreviousAllocation - yym35 := z.DecBinary() - _ = yym35 - if false { - } else { - *((*string)(yyv34)) = r.DecodeString() - } - } - case "DeploymentID": - if r.TryDecodeAsNil() { - x.DeploymentID = "" - } else { - yyv36 := &x.DeploymentID - yym37 := z.DecBinary() - _ = yym37 - if false { - } else { - *((*string)(yyv36)) = r.DecodeString() - } - } - case "DeploymentStatus": - if r.TryDecodeAsNil() { - if x.DeploymentStatus != nil { - x.DeploymentStatus = nil - } - } else { - if x.DeploymentStatus == nil { - x.DeploymentStatus = new(AllocDeploymentStatus) - } - x.DeploymentStatus.CodecDecodeSelf(d) - } - case "CreateIndex": - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv39 := &x.CreateIndex - yym40 := z.DecBinary() - _ = yym40 - if false { - } else { - *((*uint64)(yyv39)) = uint64(r.DecodeUint(64)) - } - } - case "ModifyIndex": - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv41 := &x.ModifyIndex - yym42 := z.DecBinary() - _ = yym42 - if false { - } else { - *((*uint64)(yyv41)) = uint64(r.DecodeUint(64)) - } - } - case "AllocModifyIndex": - if r.TryDecodeAsNil() { - x.AllocModifyIndex = 0 - } else { - yyv43 := &x.AllocModifyIndex - yym44 := z.DecBinary() - _ = yym44 - if false { - } else { - *((*uint64)(yyv43)) = uint64(r.DecodeUint(64)) - } - } - case "CreateTime": - if r.TryDecodeAsNil() { - x.CreateTime = 0 - } else { - yyv45 := &x.CreateTime - yym46 := z.DecBinary() - _ = yym46 - if false { - } else { - *((*int64)(yyv45)) = int64(r.DecodeInt(64)) - } - } - case "ModifyTime": - if r.TryDecodeAsNil() { - x.ModifyTime = 0 - } else { - yyv47 := &x.ModifyTime - yym48 := z.DecBinary() - _ = yym48 - if false { - } else { - *((*int64)(yyv47)) = int64(r.DecodeInt(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *Allocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj49 int - var yyb49 bool - var yyhl49 bool = l >= 0 - yyj49++ - if yyhl49 { - yyb49 = yyj49 > l - } else { - yyb49 = r.CheckBreak() - } - if yyb49 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ID = "" - } else { - yyv50 := &x.ID - yym51 := z.DecBinary() - _ = yym51 - if false { - } else { - *((*string)(yyv50)) = r.DecodeString() - } - } - yyj49++ - if yyhl49 { - yyb49 = yyj49 > l - } else { - yyb49 = r.CheckBreak() - } - if yyb49 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv52 := &x.Namespace - yym53 := z.DecBinary() - _ = yym53 - if false { - } else { - *((*string)(yyv52)) = r.DecodeString() - } - } - yyj49++ - if yyhl49 { - yyb49 = yyj49 > l - } else { - yyb49 = r.CheckBreak() - } - if yyb49 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.EvalID = "" - } else { - yyv54 := &x.EvalID - yym55 := z.DecBinary() - _ = yym55 - if false { - } else { - *((*string)(yyv54)) = r.DecodeString() - } - } - yyj49++ - if yyhl49 { - yyb49 = yyj49 > l - } else { - yyb49 = r.CheckBreak() - } - if yyb49 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv56 := &x.Name - yym57 := z.DecBinary() - _ = yym57 - if false { - } else { - *((*string)(yyv56)) = r.DecodeString() - } - } - yyj49++ - if yyhl49 { - yyb49 = yyj49 > l - } else { - yyb49 = r.CheckBreak() - } - if yyb49 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.NodeID = "" - } else { - yyv58 := &x.NodeID - yym59 := z.DecBinary() - _ = yym59 - if false { - } else { - *((*string)(yyv58)) = r.DecodeString() - } - } - yyj49++ - if yyhl49 { - yyb49 = yyj49 > l - } else { - yyb49 = r.CheckBreak() - } - if yyb49 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.JobID = "" - } else { - yyv60 := &x.JobID - yym61 := z.DecBinary() - _ = yym61 - if false { - } else { - *((*string)(yyv60)) = r.DecodeString() - } - } - yyj49++ - if yyhl49 { - yyb49 = yyj49 > l - } else { - yyb49 = r.CheckBreak() - } - if yyb49 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Job != nil { - x.Job = nil - } - } else { - if x.Job == nil { - x.Job = new(Job) - } - x.Job.CodecDecodeSelf(d) - } - yyj49++ - if yyhl49 { - yyb49 = yyj49 > l - } else { - yyb49 = r.CheckBreak() - } - if yyb49 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.TaskGroup = "" - } else { - yyv63 := &x.TaskGroup - yym64 := z.DecBinary() - _ = yym64 - if false { - } else { - *((*string)(yyv63)) = r.DecodeString() - } - } - yyj49++ - if yyhl49 { - yyb49 = yyj49 > l - } else { - yyb49 = r.CheckBreak() - } - if yyb49 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Resources != nil { - x.Resources = nil - } - } else { - if x.Resources == nil { - x.Resources = new(Resources) - } - x.Resources.CodecDecodeSelf(d) - } - yyj49++ - if yyhl49 { - yyb49 = yyj49 > l - } else { - yyb49 = r.CheckBreak() - } - if yyb49 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.SharedResources != nil { - x.SharedResources = nil - } - } else { - if x.SharedResources == nil { - x.SharedResources = new(Resources) - } - x.SharedResources.CodecDecodeSelf(d) - } - yyj49++ - if yyhl49 { - yyb49 = yyj49 > l - } else { - yyb49 = r.CheckBreak() - } - if yyb49 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.TaskResources = nil - } else { - yyv67 := &x.TaskResources - yym68 := z.DecBinary() - _ = yym68 - if false { - } else { - h.decMapstringPtrtoResources((*map[string]*Resources)(yyv67), d) - } - } - yyj49++ - if yyhl49 { - yyb49 = yyj49 > l - } else { - yyb49 = r.CheckBreak() - } - if yyb49 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Metrics != nil { - x.Metrics = nil - } - } else { - if x.Metrics == nil { - x.Metrics = new(AllocMetric) - } - x.Metrics.CodecDecodeSelf(d) - } - yyj49++ - if yyhl49 { - yyb49 = yyj49 > l - } else { - yyb49 = r.CheckBreak() - } - if yyb49 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DesiredStatus = "" - } else { - yyv70 := &x.DesiredStatus - yym71 := z.DecBinary() - _ = yym71 - if false { - } else { - *((*string)(yyv70)) = r.DecodeString() - } - } - yyj49++ - if yyhl49 { - yyb49 = yyj49 > l - } else { - yyb49 = r.CheckBreak() - } - if yyb49 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DesiredDescription = "" - } else { - yyv72 := &x.DesiredDescription - yym73 := z.DecBinary() - _ = yym73 - if false { - } else { - *((*string)(yyv72)) = r.DecodeString() - } - } - yyj49++ - if yyhl49 { - yyb49 = yyj49 > l - } else { - yyb49 = r.CheckBreak() - } - if yyb49 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ClientStatus = "" - } else { - yyv74 := &x.ClientStatus - yym75 := z.DecBinary() - _ = yym75 - if false { - } else { - *((*string)(yyv74)) = r.DecodeString() - } - } - yyj49++ - if yyhl49 { - yyb49 = yyj49 > l - } else { - yyb49 = r.CheckBreak() - } - if yyb49 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ClientDescription = "" - } else { - yyv76 := &x.ClientDescription - yym77 := z.DecBinary() - _ = yym77 - if false { - } else { - *((*string)(yyv76)) = r.DecodeString() - } - } - yyj49++ - if yyhl49 { - yyb49 = yyj49 > l - } else { - yyb49 = r.CheckBreak() - } - if yyb49 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.TaskStates = nil - } else { - yyv78 := &x.TaskStates - yym79 := z.DecBinary() - _ = yym79 - if false { - } else { - h.decMapstringPtrtoTaskState((*map[string]*TaskState)(yyv78), d) - } - } - yyj49++ - if yyhl49 { - yyb49 = yyj49 > l - } else { - yyb49 = r.CheckBreak() - } - if yyb49 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.PreviousAllocation = "" - } else { - yyv80 := &x.PreviousAllocation - yym81 := z.DecBinary() - _ = yym81 - if false { - } else { - *((*string)(yyv80)) = r.DecodeString() - } - } - yyj49++ - if yyhl49 { - yyb49 = yyj49 > l - } else { - yyb49 = r.CheckBreak() - } - if yyb49 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DeploymentID = "" - } else { - yyv82 := &x.DeploymentID - yym83 := z.DecBinary() - _ = yym83 - if false { - } else { - *((*string)(yyv82)) = r.DecodeString() - } - } - yyj49++ - if yyhl49 { - yyb49 = yyj49 > l - } else { - yyb49 = r.CheckBreak() - } - if yyb49 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.DeploymentStatus != nil { - x.DeploymentStatus = nil - } - } else { - if x.DeploymentStatus == nil { - x.DeploymentStatus = new(AllocDeploymentStatus) - } - x.DeploymentStatus.CodecDecodeSelf(d) - } - yyj49++ - if yyhl49 { - yyb49 = yyj49 > l - } else { - yyb49 = r.CheckBreak() - } - if yyb49 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv85 := &x.CreateIndex - yym86 := z.DecBinary() - _ = yym86 - if false { - } else { - *((*uint64)(yyv85)) = uint64(r.DecodeUint(64)) - } - } - yyj49++ - if yyhl49 { - yyb49 = yyj49 > l - } else { - yyb49 = r.CheckBreak() - } - if yyb49 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv87 := &x.ModifyIndex - yym88 := z.DecBinary() - _ = yym88 - if false { - } else { - *((*uint64)(yyv87)) = uint64(r.DecodeUint(64)) - } - } - yyj49++ - if yyhl49 { - yyb49 = yyj49 > l - } else { - yyb49 = r.CheckBreak() - } - if yyb49 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllocModifyIndex = 0 - } else { - yyv89 := &x.AllocModifyIndex - yym90 := z.DecBinary() - _ = yym90 - if false { - } else { - *((*uint64)(yyv89)) = uint64(r.DecodeUint(64)) - } - } - yyj49++ - if yyhl49 { - yyb49 = yyj49 > l - } else { - yyb49 = r.CheckBreak() - } - if yyb49 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.CreateTime = 0 - } else { - yyv91 := &x.CreateTime - yym92 := z.DecBinary() - _ = yym92 - if false { - } else { - *((*int64)(yyv91)) = int64(r.DecodeInt(64)) - } - } - yyj49++ - if yyhl49 { - yyb49 = yyj49 > l - } else { - yyb49 = r.CheckBreak() - } - if yyb49 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ModifyTime = 0 - } else { - yyv93 := &x.ModifyTime - yym94 := z.DecBinary() - _ = yym94 - if false { - } else { - *((*int64)(yyv93)) = int64(r.DecodeInt(64)) - } - } - for { - yyj49++ - if yyhl49 { - yyb49 = yyj49 > l - } else { - yyb49 = r.CheckBreak() - } - if yyb49 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj49-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *AllocListStub) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [17]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(17) - } else { - yynn2 = 17 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.EvalID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("EvalID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.EvalID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Name)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Name")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Name)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.NodeID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("NodeID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.NodeID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.JobID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("JobID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.JobID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeUint(uint64(x.JobVersion)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("JobVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeUint(uint64(x.JobVersion)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.TaskGroup)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("TaskGroup")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.TaskGroup)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DesiredStatus)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DesiredStatus")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DesiredStatus)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym28 := z.EncBinary() - _ = yym28 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DesiredDescription)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DesiredDescription")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym29 := z.EncBinary() - _ = yym29 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DesiredDescription)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym31 := z.EncBinary() - _ = yym31 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ClientStatus)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ClientStatus")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym32 := z.EncBinary() - _ = yym32 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ClientStatus)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym34 := z.EncBinary() - _ = yym34 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ClientDescription)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ClientDescription")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym35 := z.EncBinary() - _ = yym35 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ClientDescription)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.TaskStates == nil { - r.EncodeNil() - } else { - yym37 := z.EncBinary() - _ = yym37 - if false { - } else { - h.encMapstringPtrtoTaskState((map[string]*TaskState)(x.TaskStates), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("TaskStates")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.TaskStates == nil { - r.EncodeNil() - } else { - yym38 := z.EncBinary() - _ = yym38 - if false { - } else { - h.encMapstringPtrtoTaskState((map[string]*TaskState)(x.TaskStates), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.DeploymentStatus == nil { - r.EncodeNil() - } else { - x.DeploymentStatus.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DeploymentStatus")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.DeploymentStatus == nil { - r.EncodeNil() - } else { - x.DeploymentStatus.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym43 := z.EncBinary() - _ = yym43 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("CreateIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym44 := z.EncBinary() - _ = yym44 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym46 := z.EncBinary() - _ = yym46 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym47 := z.EncBinary() - _ = yym47 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym49 := z.EncBinary() - _ = yym49 - if false { - } else { - r.EncodeInt(int64(x.CreateTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("CreateTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym50 := z.EncBinary() - _ = yym50 - if false { - } else { - r.EncodeInt(int64(x.CreateTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym52 := z.EncBinary() - _ = yym52 - if false { - } else { - r.EncodeInt(int64(x.ModifyTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ModifyTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym53 := z.EncBinary() - _ = yym53 - if false { - } else { - r.EncodeInt(int64(x.ModifyTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *AllocListStub) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *AllocListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "ID": - if r.TryDecodeAsNil() { - x.ID = "" - } else { - yyv4 := &x.ID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "EvalID": - if r.TryDecodeAsNil() { - x.EvalID = "" - } else { - yyv6 := &x.EvalID - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv8 := &x.Name - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "NodeID": - if r.TryDecodeAsNil() { - x.NodeID = "" - } else { - yyv10 := &x.NodeID - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - case "JobID": - if r.TryDecodeAsNil() { - x.JobID = "" - } else { - yyv12 := &x.JobID - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*string)(yyv12)) = r.DecodeString() - } - } - case "JobVersion": - if r.TryDecodeAsNil() { - x.JobVersion = 0 - } else { - yyv14 := &x.JobVersion - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*uint64)(yyv14)) = uint64(r.DecodeUint(64)) - } - } - case "TaskGroup": - if r.TryDecodeAsNil() { - x.TaskGroup = "" - } else { - yyv16 := &x.TaskGroup - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - case "DesiredStatus": - if r.TryDecodeAsNil() { - x.DesiredStatus = "" - } else { - yyv18 := &x.DesiredStatus - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*string)(yyv18)) = r.DecodeString() - } - } - case "DesiredDescription": - if r.TryDecodeAsNil() { - x.DesiredDescription = "" - } else { - yyv20 := &x.DesiredDescription - yym21 := z.DecBinary() - _ = yym21 - if false { - } else { - *((*string)(yyv20)) = r.DecodeString() - } - } - case "ClientStatus": - if r.TryDecodeAsNil() { - x.ClientStatus = "" - } else { - yyv22 := &x.ClientStatus - yym23 := z.DecBinary() - _ = yym23 - if false { - } else { - *((*string)(yyv22)) = r.DecodeString() - } - } - case "ClientDescription": - if r.TryDecodeAsNil() { - x.ClientDescription = "" - } else { - yyv24 := &x.ClientDescription - yym25 := z.DecBinary() - _ = yym25 - if false { - } else { - *((*string)(yyv24)) = r.DecodeString() - } - } - case "TaskStates": - if r.TryDecodeAsNil() { - x.TaskStates = nil - } else { - yyv26 := &x.TaskStates - yym27 := z.DecBinary() - _ = yym27 - if false { - } else { - h.decMapstringPtrtoTaskState((*map[string]*TaskState)(yyv26), d) - } - } - case "DeploymentStatus": - if r.TryDecodeAsNil() { - if x.DeploymentStatus != nil { - x.DeploymentStatus = nil - } - } else { - if x.DeploymentStatus == nil { - x.DeploymentStatus = new(AllocDeploymentStatus) - } - x.DeploymentStatus.CodecDecodeSelf(d) - } - case "CreateIndex": - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv29 := &x.CreateIndex - yym30 := z.DecBinary() - _ = yym30 - if false { - } else { - *((*uint64)(yyv29)) = uint64(r.DecodeUint(64)) - } - } - case "ModifyIndex": - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv31 := &x.ModifyIndex - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*uint64)(yyv31)) = uint64(r.DecodeUint(64)) - } - } - case "CreateTime": - if r.TryDecodeAsNil() { - x.CreateTime = 0 - } else { - yyv33 := &x.CreateTime - yym34 := z.DecBinary() - _ = yym34 - if false { - } else { - *((*int64)(yyv33)) = int64(r.DecodeInt(64)) - } - } - case "ModifyTime": - if r.TryDecodeAsNil() { - x.ModifyTime = 0 - } else { - yyv35 := &x.ModifyTime - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - *((*int64)(yyv35)) = int64(r.DecodeInt(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *AllocListStub) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ID = "" - } else { - yyv38 := &x.ID - yym39 := z.DecBinary() - _ = yym39 - if false { - } else { - *((*string)(yyv38)) = r.DecodeString() - } - } - yyj37++ - if yyhl37 { - yyb37 = yyj37 > l - } else { - yyb37 = r.CheckBreak() - } - if yyb37 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.EvalID = "" - } else { - yyv40 := &x.EvalID - yym41 := z.DecBinary() - _ = yym41 - if false { - } else { - *((*string)(yyv40)) = r.DecodeString() - } - } - yyj37++ - if yyhl37 { - yyb37 = yyj37 > l - } else { - yyb37 = r.CheckBreak() - } - if yyb37 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv42 := &x.Name - yym43 := z.DecBinary() - _ = yym43 - if false { - } else { - *((*string)(yyv42)) = r.DecodeString() - } - } - yyj37++ - if yyhl37 { - yyb37 = yyj37 > l - } else { - yyb37 = r.CheckBreak() - } - if yyb37 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.NodeID = "" - } else { - yyv44 := &x.NodeID - yym45 := z.DecBinary() - _ = yym45 - if false { - } else { - *((*string)(yyv44)) = r.DecodeString() - } - } - yyj37++ - if yyhl37 { - yyb37 = yyj37 > l - } else { - yyb37 = r.CheckBreak() - } - if yyb37 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.JobID = "" - } else { - yyv46 := &x.JobID - yym47 := z.DecBinary() - _ = yym47 - if false { - } else { - *((*string)(yyv46)) = r.DecodeString() - } - } - yyj37++ - if yyhl37 { - yyb37 = yyj37 > l - } else { - yyb37 = r.CheckBreak() - } - if yyb37 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.JobVersion = 0 - } else { - yyv48 := &x.JobVersion - yym49 := z.DecBinary() - _ = yym49 - if false { - } else { - *((*uint64)(yyv48)) = uint64(r.DecodeUint(64)) - } - } - yyj37++ - if yyhl37 { - yyb37 = yyj37 > l - } else { - yyb37 = r.CheckBreak() - } - if yyb37 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.TaskGroup = "" - } else { - yyv50 := &x.TaskGroup - yym51 := z.DecBinary() - _ = yym51 - if false { - } else { - *((*string)(yyv50)) = r.DecodeString() - } - } - yyj37++ - if yyhl37 { - yyb37 = yyj37 > l - } else { - yyb37 = r.CheckBreak() - } - if yyb37 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DesiredStatus = "" - } else { - yyv52 := &x.DesiredStatus - yym53 := z.DecBinary() - _ = yym53 - if false { - } else { - *((*string)(yyv52)) = r.DecodeString() - } - } - yyj37++ - if yyhl37 { - yyb37 = yyj37 > l - } else { - yyb37 = r.CheckBreak() - } - if yyb37 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DesiredDescription = "" - } else { - yyv54 := &x.DesiredDescription - yym55 := z.DecBinary() - _ = yym55 - if false { - } else { - *((*string)(yyv54)) = r.DecodeString() - } - } - yyj37++ - if yyhl37 { - yyb37 = yyj37 > l - } else { - yyb37 = r.CheckBreak() - } - if yyb37 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ClientStatus = "" - } else { - yyv56 := &x.ClientStatus - yym57 := z.DecBinary() - _ = yym57 - if false { - } else { - *((*string)(yyv56)) = r.DecodeString() - } - } - yyj37++ - if yyhl37 { - yyb37 = yyj37 > l - } else { - yyb37 = r.CheckBreak() - } - if yyb37 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ClientDescription = "" - } else { - yyv58 := &x.ClientDescription - yym59 := z.DecBinary() - _ = yym59 - if false { - } else { - *((*string)(yyv58)) = r.DecodeString() - } - } - yyj37++ - if yyhl37 { - yyb37 = yyj37 > l - } else { - yyb37 = r.CheckBreak() - } - if yyb37 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.TaskStates = nil - } else { - yyv60 := &x.TaskStates - yym61 := z.DecBinary() - _ = yym61 - if false { - } else { - h.decMapstringPtrtoTaskState((*map[string]*TaskState)(yyv60), d) - } - } - yyj37++ - if yyhl37 { - yyb37 = yyj37 > l - } else { - yyb37 = r.CheckBreak() - } - if yyb37 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.DeploymentStatus != nil { - x.DeploymentStatus = nil - } - } else { - if x.DeploymentStatus == nil { - x.DeploymentStatus = new(AllocDeploymentStatus) - } - x.DeploymentStatus.CodecDecodeSelf(d) - } - yyj37++ - if yyhl37 { - yyb37 = yyj37 > l - } else { - yyb37 = r.CheckBreak() - } - if yyb37 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv63 := &x.CreateIndex - yym64 := z.DecBinary() - _ = yym64 - if false { - } else { - *((*uint64)(yyv63)) = uint64(r.DecodeUint(64)) - } - } - yyj37++ - if yyhl37 { - yyb37 = yyj37 > l - } else { - yyb37 = r.CheckBreak() - } - if yyb37 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv65 := &x.ModifyIndex - yym66 := z.DecBinary() - _ = yym66 - if false { - } else { - *((*uint64)(yyv65)) = uint64(r.DecodeUint(64)) - } - } - yyj37++ - if yyhl37 { - yyb37 = yyj37 > l - } else { - yyb37 = r.CheckBreak() - } - if yyb37 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.CreateTime = 0 - } else { - yyv67 := &x.CreateTime - yym68 := z.DecBinary() - _ = yym68 - if false { - } else { - *((*int64)(yyv67)) = int64(r.DecodeInt(64)) - } - } - yyj37++ - if yyhl37 { - yyb37 = yyj37 > l - } else { - yyb37 = r.CheckBreak() - } - if yyb37 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ModifyTime = 0 - } else { - yyv69 := &x.ModifyTime - yym70 := z.DecBinary() - _ = yym70 - if false { - } else { - *((*int64)(yyv69)) = int64(r.DecodeInt(64)) - } - } - for { - yyj37++ - if yyhl37 { - yyb37 = yyj37 > l - } else { - yyb37 = r.CheckBreak() - } - if yyb37 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj37-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *AllocMetric) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [12]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(12) - } else { - yynn2 = 12 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeInt(int64(x.NodesEvaluated)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("NodesEvaluated")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeInt(int64(x.NodesEvaluated)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeInt(int64(x.NodesFiltered)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("NodesFiltered")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeInt(int64(x.NodesFiltered)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.NodesAvailable == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - z.F.EncMapStringIntV(x.NodesAvailable, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("NodesAvailable")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.NodesAvailable == nil { - r.EncodeNil() - } else { - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - z.F.EncMapStringIntV(x.NodesAvailable, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.ClassFiltered == nil { - r.EncodeNil() - } else { - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - z.F.EncMapStringIntV(x.ClassFiltered, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ClassFiltered")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.ClassFiltered == nil { - r.EncodeNil() - } else { - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - z.F.EncMapStringIntV(x.ClassFiltered, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.ConstraintFiltered == nil { - r.EncodeNil() - } else { - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - z.F.EncMapStringIntV(x.ConstraintFiltered, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ConstraintFiltered")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.ConstraintFiltered == nil { - r.EncodeNil() - } else { - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - z.F.EncMapStringIntV(x.ConstraintFiltered, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeInt(int64(x.NodesExhausted)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("NodesExhausted")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeInt(int64(x.NodesExhausted)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.ClassExhausted == nil { - r.EncodeNil() - } else { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - z.F.EncMapStringIntV(x.ClassExhausted, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ClassExhausted")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.ClassExhausted == nil { - r.EncodeNil() - } else { - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - z.F.EncMapStringIntV(x.ClassExhausted, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.DimensionExhausted == nil { - r.EncodeNil() - } else { - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - z.F.EncMapStringIntV(x.DimensionExhausted, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DimensionExhausted")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.DimensionExhausted == nil { - r.EncodeNil() - } else { - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - z.F.EncMapStringIntV(x.DimensionExhausted, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.QuotaExhausted == nil { - r.EncodeNil() - } else { - yym28 := z.EncBinary() - _ = yym28 - if false { - } else { - z.F.EncSliceStringV(x.QuotaExhausted, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("QuotaExhausted")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.QuotaExhausted == nil { - r.EncodeNil() - } else { - yym29 := z.EncBinary() - _ = yym29 - if false { - } else { - z.F.EncSliceStringV(x.QuotaExhausted, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Scores == nil { - r.EncodeNil() - } else { - yym31 := z.EncBinary() - _ = yym31 - if false { - } else { - z.F.EncMapStringFloat64V(x.Scores, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Scores")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Scores == nil { - r.EncodeNil() - } else { - yym32 := z.EncBinary() - _ = yym32 - if false { - } else { - z.F.EncMapStringFloat64V(x.Scores, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym34 := z.EncBinary() - _ = yym34 - if false { - } else if z.HasExtensions() && z.EncExt(x.AllocationTime) { - } else { - r.EncodeInt(int64(x.AllocationTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllocationTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym35 := z.EncBinary() - _ = yym35 - if false { - } else if z.HasExtensions() && z.EncExt(x.AllocationTime) { - } else { - r.EncodeInt(int64(x.AllocationTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym37 := z.EncBinary() - _ = yym37 - if false { - } else { - r.EncodeInt(int64(x.CoalescedFailures)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("CoalescedFailures")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym38 := z.EncBinary() - _ = yym38 - if false { - } else { - r.EncodeInt(int64(x.CoalescedFailures)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *AllocMetric) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *AllocMetric) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "NodesEvaluated": - if r.TryDecodeAsNil() { - x.NodesEvaluated = 0 - } else { - yyv4 := &x.NodesEvaluated - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*int)(yyv4)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - case "NodesFiltered": - if r.TryDecodeAsNil() { - x.NodesFiltered = 0 - } else { - yyv6 := &x.NodesFiltered - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*int)(yyv6)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - case "NodesAvailable": - if r.TryDecodeAsNil() { - x.NodesAvailable = nil - } else { - yyv8 := &x.NodesAvailable - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - z.F.DecMapStringIntX(yyv8, false, d) - } - } - case "ClassFiltered": - if r.TryDecodeAsNil() { - x.ClassFiltered = nil - } else { - yyv10 := &x.ClassFiltered - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - z.F.DecMapStringIntX(yyv10, false, d) - } - } - case "ConstraintFiltered": - if r.TryDecodeAsNil() { - x.ConstraintFiltered = nil - } else { - yyv12 := &x.ConstraintFiltered - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - z.F.DecMapStringIntX(yyv12, false, d) - } - } - case "NodesExhausted": - if r.TryDecodeAsNil() { - x.NodesExhausted = 0 - } else { - yyv14 := &x.NodesExhausted - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*int)(yyv14)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - case "ClassExhausted": - if r.TryDecodeAsNil() { - x.ClassExhausted = nil - } else { - yyv16 := &x.ClassExhausted - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - z.F.DecMapStringIntX(yyv16, false, d) - } - } - case "DimensionExhausted": - if r.TryDecodeAsNil() { - x.DimensionExhausted = nil - } else { - yyv18 := &x.DimensionExhausted - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - z.F.DecMapStringIntX(yyv18, false, d) - } - } - case "QuotaExhausted": - if r.TryDecodeAsNil() { - x.QuotaExhausted = nil - } else { - yyv20 := &x.QuotaExhausted - yym21 := z.DecBinary() - _ = yym21 - if false { - } else { - z.F.DecSliceStringX(yyv20, false, d) - } - } - case "Scores": - if r.TryDecodeAsNil() { - x.Scores = nil - } else { - yyv22 := &x.Scores - yym23 := z.DecBinary() - _ = yym23 - if false { - } else { - z.F.DecMapStringFloat64X(yyv22, false, d) - } - } - case "AllocationTime": - if r.TryDecodeAsNil() { - x.AllocationTime = 0 - } else { - yyv24 := &x.AllocationTime - yym25 := z.DecBinary() - _ = yym25 - if false { - } else if z.HasExtensions() && z.DecExt(yyv24) { - } else { - *((*int64)(yyv24)) = int64(r.DecodeInt(64)) - } - } - case "CoalescedFailures": - if r.TryDecodeAsNil() { - x.CoalescedFailures = 0 - } else { - yyv26 := &x.CoalescedFailures - yym27 := z.DecBinary() - _ = yym27 - if false { - } else { - *((*int)(yyv26)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *AllocMetric) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.NodesEvaluated = 0 - } else { - yyv29 := &x.NodesEvaluated - yym30 := z.DecBinary() - _ = yym30 - if false { - } else { - *((*int)(yyv29)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - yyj28++ - if yyhl28 { - yyb28 = yyj28 > l - } else { - yyb28 = r.CheckBreak() - } - if yyb28 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.NodesFiltered = 0 - } else { - yyv31 := &x.NodesFiltered - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*int)(yyv31)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - yyj28++ - if yyhl28 { - yyb28 = yyj28 > l - } else { - yyb28 = r.CheckBreak() - } - if yyb28 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.NodesAvailable = nil - } else { - yyv33 := &x.NodesAvailable - yym34 := z.DecBinary() - _ = yym34 - if false { - } else { - z.F.DecMapStringIntX(yyv33, false, d) - } - } - yyj28++ - if yyhl28 { - yyb28 = yyj28 > l - } else { - yyb28 = r.CheckBreak() - } - if yyb28 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ClassFiltered = nil - } else { - yyv35 := &x.ClassFiltered - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - z.F.DecMapStringIntX(yyv35, false, d) - } - } - yyj28++ - if yyhl28 { - yyb28 = yyj28 > l - } else { - yyb28 = r.CheckBreak() - } - if yyb28 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ConstraintFiltered = nil - } else { - yyv37 := &x.ConstraintFiltered - yym38 := z.DecBinary() - _ = yym38 - if false { - } else { - z.F.DecMapStringIntX(yyv37, false, d) - } - } - yyj28++ - if yyhl28 { - yyb28 = yyj28 > l - } else { - yyb28 = r.CheckBreak() - } - if yyb28 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.NodesExhausted = 0 - } else { - yyv39 := &x.NodesExhausted - yym40 := z.DecBinary() - _ = yym40 - if false { - } else { - *((*int)(yyv39)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - yyj28++ - if yyhl28 { - yyb28 = yyj28 > l - } else { - yyb28 = r.CheckBreak() - } - if yyb28 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ClassExhausted = nil - } else { - yyv41 := &x.ClassExhausted - yym42 := z.DecBinary() - _ = yym42 - if false { - } else { - z.F.DecMapStringIntX(yyv41, false, d) - } - } - yyj28++ - if yyhl28 { - yyb28 = yyj28 > l - } else { - yyb28 = r.CheckBreak() - } - if yyb28 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DimensionExhausted = nil - } else { - yyv43 := &x.DimensionExhausted - yym44 := z.DecBinary() - _ = yym44 - if false { - } else { - z.F.DecMapStringIntX(yyv43, false, d) - } - } - yyj28++ - if yyhl28 { - yyb28 = yyj28 > l - } else { - yyb28 = r.CheckBreak() - } - if yyb28 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.QuotaExhausted = nil - } else { - yyv45 := &x.QuotaExhausted - yym46 := z.DecBinary() - _ = yym46 - if false { - } else { - z.F.DecSliceStringX(yyv45, false, d) - } - } - yyj28++ - if yyhl28 { - yyb28 = yyj28 > l - } else { - yyb28 = r.CheckBreak() - } - if yyb28 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Scores = nil - } else { - yyv47 := &x.Scores - yym48 := z.DecBinary() - _ = yym48 - if false { - } else { - z.F.DecMapStringFloat64X(yyv47, false, d) - } - } - yyj28++ - if yyhl28 { - yyb28 = yyj28 > l - } else { - yyb28 = r.CheckBreak() - } - if yyb28 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllocationTime = 0 - } else { - yyv49 := &x.AllocationTime - yym50 := z.DecBinary() - _ = yym50 - if false { - } else if z.HasExtensions() && z.DecExt(yyv49) { - } else { - *((*int64)(yyv49)) = int64(r.DecodeInt(64)) - } - } - yyj28++ - if yyhl28 { - yyb28 = yyj28 > l - } else { - yyb28 = r.CheckBreak() - } - if yyb28 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.CoalescedFailures = 0 - } else { - yyv51 := &x.CoalescedFailures - yym52 := z.DecBinary() - _ = yym52 - if false { - } else { - *((*int)(yyv51)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - for { - yyj28++ - if yyhl28 { - yyb28 = yyj28 > l - } else { - yyb28 = r.CheckBreak() - } - if yyb28 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj28-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *AllocDeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(2) - } else { - yynn2 = 2 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Healthy == nil { - r.EncodeNil() - } else { - yy4 := *x.Healthy - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeBool(bool(yy4)) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Healthy")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Healthy == nil { - r.EncodeNil() - } else { - yy6 := *x.Healthy - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeBool(bool(yy6)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym9 := z.EncBinary() - _ = yym9 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *AllocDeploymentStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *AllocDeploymentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Healthy": - if r.TryDecodeAsNil() { - if x.Healthy != nil { - x.Healthy = nil - } - } else { - if x.Healthy == nil { - x.Healthy = new(bool) - } - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*bool)(x.Healthy)) = r.DecodeBool() - } - } - case "ModifyIndex": - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv6 := &x.ModifyIndex - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *AllocDeploymentStatus) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Healthy != nil { - x.Healthy = nil - } - } else { - if x.Healthy == nil { - x.Healthy = new(bool) - } - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - *((*bool)(x.Healthy)) = r.DecodeBool() - } - } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv11 := &x.ModifyIndex - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - *((*uint64)(yyv11)) = uint64(r.DecodeUint(64)) - } - } - for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj8-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *Evaluation) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [26]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(26) - } else { - yynn2 = 26 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.ID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeInt(int64(x.Priority)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Priority")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeInt(int64(x.Priority)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Type)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Type")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Type)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.TriggeredBy)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("TriggeredBy")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.TriggeredBy)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.JobID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("JobID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.JobID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeUint(uint64(x.JobModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("JobModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeUint(uint64(x.JobModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.NodeID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("NodeID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.NodeID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym28 := z.EncBinary() - _ = yym28 - if false { - } else { - r.EncodeUint(uint64(x.NodeModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("NodeModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym29 := z.EncBinary() - _ = yym29 - if false { - } else { - r.EncodeUint(uint64(x.NodeModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym31 := z.EncBinary() - _ = yym31 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DeploymentID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DeploymentID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym32 := z.EncBinary() - _ = yym32 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.DeploymentID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym34 := z.EncBinary() - _ = yym34 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Status)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Status")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym35 := z.EncBinary() - _ = yym35 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Status)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym37 := z.EncBinary() - _ = yym37 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.StatusDescription)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("StatusDescription")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym38 := z.EncBinary() - _ = yym38 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.StatusDescription)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym40 := z.EncBinary() - _ = yym40 - if false { - } else if z.HasExtensions() && z.EncExt(x.Wait) { - } else { - r.EncodeInt(int64(x.Wait)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Wait")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym41 := z.EncBinary() - _ = yym41 - if false { - } else if z.HasExtensions() && z.EncExt(x.Wait) { - } else { - r.EncodeInt(int64(x.Wait)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym43 := z.EncBinary() - _ = yym43 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.NextEval)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("NextEval")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym44 := z.EncBinary() - _ = yym44 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.NextEval)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym46 := z.EncBinary() - _ = yym46 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.PreviousEval)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("PreviousEval")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym47 := z.EncBinary() - _ = yym47 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.PreviousEval)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym49 := z.EncBinary() - _ = yym49 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.BlockedEval)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("BlockedEval")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym50 := z.EncBinary() - _ = yym50 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.BlockedEval)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.FailedTGAllocs == nil { - r.EncodeNil() - } else { - yym52 := z.EncBinary() - _ = yym52 - if false { - } else { - h.encMapstringPtrtoAllocMetric((map[string]*AllocMetric)(x.FailedTGAllocs), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("FailedTGAllocs")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.FailedTGAllocs == nil { - r.EncodeNil() - } else { - yym53 := z.EncBinary() - _ = yym53 - if false { - } else { - h.encMapstringPtrtoAllocMetric((map[string]*AllocMetric)(x.FailedTGAllocs), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.ClassEligibility == nil { - r.EncodeNil() - } else { - yym55 := z.EncBinary() - _ = yym55 - if false { - } else { - z.F.EncMapStringBoolV(x.ClassEligibility, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ClassEligibility")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.ClassEligibility == nil { - r.EncodeNil() - } else { - yym56 := z.EncBinary() - _ = yym56 - if false { - } else { - z.F.EncMapStringBoolV(x.ClassEligibility, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym58 := z.EncBinary() - _ = yym58 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.QuotaLimitReached)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("QuotaLimitReached")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym59 := z.EncBinary() - _ = yym59 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.QuotaLimitReached)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym61 := z.EncBinary() - _ = yym61 - if false { - } else { - r.EncodeBool(bool(x.EscapedComputedClass)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("EscapedComputedClass")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym62 := z.EncBinary() - _ = yym62 - if false { - } else { - r.EncodeBool(bool(x.EscapedComputedClass)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym64 := z.EncBinary() - _ = yym64 - if false { - } else { - r.EncodeBool(bool(x.AnnotatePlan)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AnnotatePlan")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym65 := z.EncBinary() - _ = yym65 - if false { - } else { - r.EncodeBool(bool(x.AnnotatePlan)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.QueuedAllocations == nil { - r.EncodeNil() - } else { - yym67 := z.EncBinary() - _ = yym67 - if false { - } else { - z.F.EncMapStringIntV(x.QueuedAllocations, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("QueuedAllocations")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.QueuedAllocations == nil { - r.EncodeNil() - } else { - yym68 := z.EncBinary() - _ = yym68 - if false { - } else { - z.F.EncMapStringIntV(x.QueuedAllocations, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym70 := z.EncBinary() - _ = yym70 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.LeaderACL)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LeaderACL")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym71 := z.EncBinary() - _ = yym71 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.LeaderACL)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym73 := z.EncBinary() - _ = yym73 - if false { - } else { - r.EncodeUint(uint64(x.SnapshotIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("SnapshotIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym74 := z.EncBinary() - _ = yym74 - if false { - } else { - r.EncodeUint(uint64(x.SnapshotIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym76 := z.EncBinary() - _ = yym76 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("CreateIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym77 := z.EncBinary() - _ = yym77 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym79 := z.EncBinary() - _ = yym79 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym80 := z.EncBinary() - _ = yym80 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *Evaluation) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *Evaluation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "ID": - if r.TryDecodeAsNil() { - x.ID = "" - } else { - yyv4 := &x.ID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv6 := &x.Namespace - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Priority": - if r.TryDecodeAsNil() { - x.Priority = 0 - } else { - yyv8 := &x.Priority - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*int)(yyv8)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - case "Type": - if r.TryDecodeAsNil() { - x.Type = "" - } else { - yyv10 := &x.Type - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - case "TriggeredBy": - if r.TryDecodeAsNil() { - x.TriggeredBy = "" - } else { - yyv12 := &x.TriggeredBy - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*string)(yyv12)) = r.DecodeString() - } - } - case "JobID": - if r.TryDecodeAsNil() { - x.JobID = "" - } else { - yyv14 := &x.JobID - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*string)(yyv14)) = r.DecodeString() - } - } - case "JobModifyIndex": - if r.TryDecodeAsNil() { - x.JobModifyIndex = 0 - } else { - yyv16 := &x.JobModifyIndex - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*uint64)(yyv16)) = uint64(r.DecodeUint(64)) - } - } - case "NodeID": - if r.TryDecodeAsNil() { - x.NodeID = "" - } else { - yyv18 := &x.NodeID - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*string)(yyv18)) = r.DecodeString() - } - } - case "NodeModifyIndex": - if r.TryDecodeAsNil() { - x.NodeModifyIndex = 0 - } else { - yyv20 := &x.NodeModifyIndex - yym21 := z.DecBinary() - _ = yym21 - if false { - } else { - *((*uint64)(yyv20)) = uint64(r.DecodeUint(64)) - } - } - case "DeploymentID": - if r.TryDecodeAsNil() { - x.DeploymentID = "" - } else { - yyv22 := &x.DeploymentID - yym23 := z.DecBinary() - _ = yym23 - if false { - } else { - *((*string)(yyv22)) = r.DecodeString() - } - } - case "Status": - if r.TryDecodeAsNil() { - x.Status = "" - } else { - yyv24 := &x.Status - yym25 := z.DecBinary() - _ = yym25 - if false { - } else { - *((*string)(yyv24)) = r.DecodeString() - } - } - case "StatusDescription": - if r.TryDecodeAsNil() { - x.StatusDescription = "" - } else { - yyv26 := &x.StatusDescription - yym27 := z.DecBinary() - _ = yym27 - if false { - } else { - *((*string)(yyv26)) = r.DecodeString() - } - } - case "Wait": - if r.TryDecodeAsNil() { - x.Wait = 0 - } else { - yyv28 := &x.Wait - yym29 := z.DecBinary() - _ = yym29 - if false { - } else if z.HasExtensions() && z.DecExt(yyv28) { - } else { - *((*int64)(yyv28)) = int64(r.DecodeInt(64)) - } - } - case "NextEval": - if r.TryDecodeAsNil() { - x.NextEval = "" - } else { - yyv30 := &x.NextEval - yym31 := z.DecBinary() - _ = yym31 - if false { - } else { - *((*string)(yyv30)) = r.DecodeString() - } - } - case "PreviousEval": - if r.TryDecodeAsNil() { - x.PreviousEval = "" - } else { - yyv32 := &x.PreviousEval - yym33 := z.DecBinary() - _ = yym33 - if false { - } else { - *((*string)(yyv32)) = r.DecodeString() - } - } - case "BlockedEval": - if r.TryDecodeAsNil() { - x.BlockedEval = "" - } else { - yyv34 := &x.BlockedEval - yym35 := z.DecBinary() - _ = yym35 - if false { - } else { - *((*string)(yyv34)) = r.DecodeString() - } - } - case "FailedTGAllocs": - if r.TryDecodeAsNil() { - x.FailedTGAllocs = nil - } else { - yyv36 := &x.FailedTGAllocs - yym37 := z.DecBinary() - _ = yym37 - if false { - } else { - h.decMapstringPtrtoAllocMetric((*map[string]*AllocMetric)(yyv36), d) - } - } - case "ClassEligibility": - if r.TryDecodeAsNil() { - x.ClassEligibility = nil - } else { - yyv38 := &x.ClassEligibility - yym39 := z.DecBinary() - _ = yym39 - if false { - } else { - z.F.DecMapStringBoolX(yyv38, false, d) - } - } - case "QuotaLimitReached": - if r.TryDecodeAsNil() { - x.QuotaLimitReached = "" - } else { - yyv40 := &x.QuotaLimitReached - yym41 := z.DecBinary() - _ = yym41 - if false { - } else { - *((*string)(yyv40)) = r.DecodeString() - } - } - case "EscapedComputedClass": - if r.TryDecodeAsNil() { - x.EscapedComputedClass = false - } else { - yyv42 := &x.EscapedComputedClass - yym43 := z.DecBinary() - _ = yym43 - if false { - } else { - *((*bool)(yyv42)) = r.DecodeBool() - } - } - case "AnnotatePlan": - if r.TryDecodeAsNil() { - x.AnnotatePlan = false - } else { - yyv44 := &x.AnnotatePlan - yym45 := z.DecBinary() - _ = yym45 - if false { - } else { - *((*bool)(yyv44)) = r.DecodeBool() - } - } - case "QueuedAllocations": - if r.TryDecodeAsNil() { - x.QueuedAllocations = nil - } else { - yyv46 := &x.QueuedAllocations - yym47 := z.DecBinary() - _ = yym47 - if false { - } else { - z.F.DecMapStringIntX(yyv46, false, d) - } - } - case "LeaderACL": - if r.TryDecodeAsNil() { - x.LeaderACL = "" - } else { - yyv48 := &x.LeaderACL - yym49 := z.DecBinary() - _ = yym49 - if false { - } else { - *((*string)(yyv48)) = r.DecodeString() - } - } - case "SnapshotIndex": - if r.TryDecodeAsNil() { - x.SnapshotIndex = 0 - } else { - yyv50 := &x.SnapshotIndex - yym51 := z.DecBinary() - _ = yym51 - if false { - } else { - *((*uint64)(yyv50)) = uint64(r.DecodeUint(64)) - } - } - case "CreateIndex": - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv52 := &x.CreateIndex - yym53 := z.DecBinary() - _ = yym53 - if false { - } else { - *((*uint64)(yyv52)) = uint64(r.DecodeUint(64)) - } - } - case "ModifyIndex": - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv54 := &x.ModifyIndex - yym55 := z.DecBinary() - _ = yym55 - if false { - } else { - *((*uint64)(yyv54)) = uint64(r.DecodeUint(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *Evaluation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj56 int - var yyb56 bool - var yyhl56 bool = l >= 0 - yyj56++ - if yyhl56 { - yyb56 = yyj56 > l - } else { - yyb56 = r.CheckBreak() - } - if yyb56 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ID = "" - } else { - yyv57 := &x.ID - yym58 := z.DecBinary() - _ = yym58 - if false { - } else { - *((*string)(yyv57)) = r.DecodeString() - } - } - yyj56++ - if yyhl56 { - yyb56 = yyj56 > l - } else { - yyb56 = r.CheckBreak() - } - if yyb56 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv59 := &x.Namespace - yym60 := z.DecBinary() - _ = yym60 - if false { - } else { - *((*string)(yyv59)) = r.DecodeString() - } - } - yyj56++ - if yyhl56 { - yyb56 = yyj56 > l - } else { - yyb56 = r.CheckBreak() - } - if yyb56 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Priority = 0 - } else { - yyv61 := &x.Priority - yym62 := z.DecBinary() - _ = yym62 - if false { - } else { - *((*int)(yyv61)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - yyj56++ - if yyhl56 { - yyb56 = yyj56 > l - } else { - yyb56 = r.CheckBreak() - } - if yyb56 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Type = "" - } else { - yyv63 := &x.Type - yym64 := z.DecBinary() - _ = yym64 - if false { - } else { - *((*string)(yyv63)) = r.DecodeString() - } - } - yyj56++ - if yyhl56 { - yyb56 = yyj56 > l - } else { - yyb56 = r.CheckBreak() - } - if yyb56 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.TriggeredBy = "" - } else { - yyv65 := &x.TriggeredBy - yym66 := z.DecBinary() - _ = yym66 - if false { - } else { - *((*string)(yyv65)) = r.DecodeString() - } - } - yyj56++ - if yyhl56 { - yyb56 = yyj56 > l - } else { - yyb56 = r.CheckBreak() - } - if yyb56 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.JobID = "" - } else { - yyv67 := &x.JobID - yym68 := z.DecBinary() - _ = yym68 - if false { - } else { - *((*string)(yyv67)) = r.DecodeString() - } - } - yyj56++ - if yyhl56 { - yyb56 = yyj56 > l - } else { - yyb56 = r.CheckBreak() - } - if yyb56 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.JobModifyIndex = 0 - } else { - yyv69 := &x.JobModifyIndex - yym70 := z.DecBinary() - _ = yym70 - if false { - } else { - *((*uint64)(yyv69)) = uint64(r.DecodeUint(64)) - } - } - yyj56++ - if yyhl56 { - yyb56 = yyj56 > l - } else { - yyb56 = r.CheckBreak() - } - if yyb56 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.NodeID = "" - } else { - yyv71 := &x.NodeID - yym72 := z.DecBinary() - _ = yym72 - if false { - } else { - *((*string)(yyv71)) = r.DecodeString() - } - } - yyj56++ - if yyhl56 { - yyb56 = yyj56 > l - } else { - yyb56 = r.CheckBreak() - } - if yyb56 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.NodeModifyIndex = 0 - } else { - yyv73 := &x.NodeModifyIndex - yym74 := z.DecBinary() - _ = yym74 - if false { - } else { - *((*uint64)(yyv73)) = uint64(r.DecodeUint(64)) - } - } - yyj56++ - if yyhl56 { - yyb56 = yyj56 > l - } else { - yyb56 = r.CheckBreak() - } - if yyb56 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DeploymentID = "" - } else { - yyv75 := &x.DeploymentID - yym76 := z.DecBinary() - _ = yym76 - if false { - } else { - *((*string)(yyv75)) = r.DecodeString() - } - } - yyj56++ - if yyhl56 { - yyb56 = yyj56 > l - } else { - yyb56 = r.CheckBreak() - } - if yyb56 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Status = "" - } else { - yyv77 := &x.Status - yym78 := z.DecBinary() - _ = yym78 - if false { - } else { - *((*string)(yyv77)) = r.DecodeString() - } - } - yyj56++ - if yyhl56 { - yyb56 = yyj56 > l - } else { - yyb56 = r.CheckBreak() - } - if yyb56 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.StatusDescription = "" - } else { - yyv79 := &x.StatusDescription - yym80 := z.DecBinary() - _ = yym80 - if false { - } else { - *((*string)(yyv79)) = r.DecodeString() - } - } - yyj56++ - if yyhl56 { - yyb56 = yyj56 > l - } else { - yyb56 = r.CheckBreak() - } - if yyb56 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Wait = 0 - } else { - yyv81 := &x.Wait - yym82 := z.DecBinary() - _ = yym82 - if false { - } else if z.HasExtensions() && z.DecExt(yyv81) { - } else { - *((*int64)(yyv81)) = int64(r.DecodeInt(64)) - } - } - yyj56++ - if yyhl56 { - yyb56 = yyj56 > l - } else { - yyb56 = r.CheckBreak() - } - if yyb56 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.NextEval = "" - } else { - yyv83 := &x.NextEval - yym84 := z.DecBinary() - _ = yym84 - if false { - } else { - *((*string)(yyv83)) = r.DecodeString() - } - } - yyj56++ - if yyhl56 { - yyb56 = yyj56 > l - } else { - yyb56 = r.CheckBreak() - } - if yyb56 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.PreviousEval = "" - } else { - yyv85 := &x.PreviousEval - yym86 := z.DecBinary() - _ = yym86 - if false { - } else { - *((*string)(yyv85)) = r.DecodeString() - } - } - yyj56++ - if yyhl56 { - yyb56 = yyj56 > l - } else { - yyb56 = r.CheckBreak() - } - if yyb56 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.BlockedEval = "" - } else { - yyv87 := &x.BlockedEval - yym88 := z.DecBinary() - _ = yym88 - if false { - } else { - *((*string)(yyv87)) = r.DecodeString() - } - } - yyj56++ - if yyhl56 { - yyb56 = yyj56 > l - } else { - yyb56 = r.CheckBreak() - } - if yyb56 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.FailedTGAllocs = nil - } else { - yyv89 := &x.FailedTGAllocs - yym90 := z.DecBinary() - _ = yym90 - if false { - } else { - h.decMapstringPtrtoAllocMetric((*map[string]*AllocMetric)(yyv89), d) - } - } - yyj56++ - if yyhl56 { - yyb56 = yyj56 > l - } else { - yyb56 = r.CheckBreak() - } - if yyb56 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ClassEligibility = nil - } else { - yyv91 := &x.ClassEligibility - yym92 := z.DecBinary() - _ = yym92 - if false { - } else { - z.F.DecMapStringBoolX(yyv91, false, d) - } - } - yyj56++ - if yyhl56 { - yyb56 = yyj56 > l - } else { - yyb56 = r.CheckBreak() - } - if yyb56 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.QuotaLimitReached = "" - } else { - yyv93 := &x.QuotaLimitReached - yym94 := z.DecBinary() - _ = yym94 - if false { - } else { - *((*string)(yyv93)) = r.DecodeString() - } - } - yyj56++ - if yyhl56 { - yyb56 = yyj56 > l - } else { - yyb56 = r.CheckBreak() - } - if yyb56 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.EscapedComputedClass = false - } else { - yyv95 := &x.EscapedComputedClass - yym96 := z.DecBinary() - _ = yym96 - if false { - } else { - *((*bool)(yyv95)) = r.DecodeBool() - } - } - yyj56++ - if yyhl56 { - yyb56 = yyj56 > l - } else { - yyb56 = r.CheckBreak() - } - if yyb56 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AnnotatePlan = false - } else { - yyv97 := &x.AnnotatePlan - yym98 := z.DecBinary() - _ = yym98 - if false { - } else { - *((*bool)(yyv97)) = r.DecodeBool() - } - } - yyj56++ - if yyhl56 { - yyb56 = yyj56 > l - } else { - yyb56 = r.CheckBreak() - } - if yyb56 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.QueuedAllocations = nil - } else { - yyv99 := &x.QueuedAllocations - yym100 := z.DecBinary() - _ = yym100 - if false { - } else { - z.F.DecMapStringIntX(yyv99, false, d) - } - } - yyj56++ - if yyhl56 { - yyb56 = yyj56 > l - } else { - yyb56 = r.CheckBreak() - } - if yyb56 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LeaderACL = "" - } else { - yyv101 := &x.LeaderACL - yym102 := z.DecBinary() - _ = yym102 - if false { - } else { - *((*string)(yyv101)) = r.DecodeString() - } - } - yyj56++ - if yyhl56 { - yyb56 = yyj56 > l - } else { - yyb56 = r.CheckBreak() - } - if yyb56 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.SnapshotIndex = 0 - } else { - yyv103 := &x.SnapshotIndex - yym104 := z.DecBinary() - _ = yym104 - if false { - } else { - *((*uint64)(yyv103)) = uint64(r.DecodeUint(64)) - } - } - yyj56++ - if yyhl56 { - yyb56 = yyj56 > l - } else { - yyb56 = r.CheckBreak() - } - if yyb56 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv105 := &x.CreateIndex - yym106 := z.DecBinary() - _ = yym106 - if false { - } else { - *((*uint64)(yyv105)) = uint64(r.DecodeUint(64)) - } - } - yyj56++ - if yyhl56 { - yyb56 = yyj56 > l - } else { - yyb56 = r.CheckBreak() - } - if yyb56 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv107 := &x.ModifyIndex - yym108 := z.DecBinary() - _ = yym108 - if false { - } else { - *((*uint64)(yyv107)) = uint64(r.DecodeUint(64)) - } - } - for { - yyj56++ - if yyhl56 { - yyb56 = yyj56 > l - } else { - yyb56 = r.CheckBreak() - } - if yyb56 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj56-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *Plan) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [10]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(10) - } else { - yynn2 = 10 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.EvalID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("EvalID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.EvalID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.EvalToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("EvalToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.EvalToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeInt(int64(x.Priority)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Priority")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeInt(int64(x.Priority)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.AllAtOnce)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllAtOnce")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.AllAtOnce)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Job == nil { - r.EncodeNil() - } else { - x.Job.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Job")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Job == nil { - r.EncodeNil() - } else { - x.Job.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.NodeUpdate == nil { - r.EncodeNil() - } else { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeUpdate), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("NodeUpdate")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.NodeUpdate == nil { - r.EncodeNil() - } else { - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeUpdate), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.NodeAllocation == nil { - r.EncodeNil() - } else { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeAllocation), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("NodeAllocation")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.NodeAllocation == nil { - r.EncodeNil() - } else { - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeAllocation), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Annotations == nil { - r.EncodeNil() - } else { - x.Annotations.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Annotations")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Annotations == nil { - r.EncodeNil() - } else { - x.Annotations.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Deployment == nil { - r.EncodeNil() - } else { - x.Deployment.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Deployment")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Deployment == nil { - r.EncodeNil() - } else { - x.Deployment.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.DeploymentUpdates == nil { - r.EncodeNil() - } else { - yym31 := z.EncBinary() - _ = yym31 - if false { - } else { - h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DeploymentUpdates")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.DeploymentUpdates == nil { - r.EncodeNil() - } else { - yym32 := z.EncBinary() - _ = yym32 - if false { - } else { - h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *Plan) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *Plan) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "EvalID": - if r.TryDecodeAsNil() { - x.EvalID = "" - } else { - yyv4 := &x.EvalID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "EvalToken": - if r.TryDecodeAsNil() { - x.EvalToken = "" - } else { - yyv6 := &x.EvalToken - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Priority": - if r.TryDecodeAsNil() { - x.Priority = 0 - } else { - yyv8 := &x.Priority - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*int)(yyv8)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - case "AllAtOnce": - if r.TryDecodeAsNil() { - x.AllAtOnce = false - } else { - yyv10 := &x.AllAtOnce - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*bool)(yyv10)) = r.DecodeBool() - } - } - case "Job": - if r.TryDecodeAsNil() { - if x.Job != nil { - x.Job = nil - } - } else { - if x.Job == nil { - x.Job = new(Job) - } - x.Job.CodecDecodeSelf(d) - } - case "NodeUpdate": - if r.TryDecodeAsNil() { - x.NodeUpdate = nil - } else { - yyv13 := &x.NodeUpdate - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(yyv13), d) - } - } - case "NodeAllocation": - if r.TryDecodeAsNil() { - x.NodeAllocation = nil - } else { - yyv15 := &x.NodeAllocation - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(yyv15), d) - } - } - case "Annotations": - if r.TryDecodeAsNil() { - if x.Annotations != nil { - x.Annotations = nil - } - } else { - if x.Annotations == nil { - x.Annotations = new(PlanAnnotations) - } - x.Annotations.CodecDecodeSelf(d) - } - case "Deployment": - if r.TryDecodeAsNil() { - if x.Deployment != nil { - x.Deployment = nil - } - } else { - if x.Deployment == nil { - x.Deployment = new(Deployment) - } - x.Deployment.CodecDecodeSelf(d) - } - case "DeploymentUpdates": - if r.TryDecodeAsNil() { - x.DeploymentUpdates = nil - } else { - yyv19 := &x.DeploymentUpdates - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(yyv19), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *Plan) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.EvalID = "" - } else { - yyv22 := &x.EvalID - yym23 := z.DecBinary() - _ = yym23 - if false { - } else { - *((*string)(yyv22)) = r.DecodeString() - } - } - yyj21++ - if yyhl21 { - yyb21 = yyj21 > l - } else { - yyb21 = r.CheckBreak() - } - if yyb21 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.EvalToken = "" - } else { - yyv24 := &x.EvalToken - yym25 := z.DecBinary() - _ = yym25 - if false { - } else { - *((*string)(yyv24)) = r.DecodeString() - } - } - yyj21++ - if yyhl21 { - yyb21 = yyj21 > l - } else { - yyb21 = r.CheckBreak() - } - if yyb21 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Priority = 0 - } else { - yyv26 := &x.Priority - yym27 := z.DecBinary() - _ = yym27 - if false { - } else { - *((*int)(yyv26)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - yyj21++ - if yyhl21 { - yyb21 = yyj21 > l - } else { - yyb21 = r.CheckBreak() - } - if yyb21 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllAtOnce = false - } else { - yyv28 := &x.AllAtOnce - yym29 := z.DecBinary() - _ = yym29 - if false { - } else { - *((*bool)(yyv28)) = r.DecodeBool() - } - } - yyj21++ - if yyhl21 { - yyb21 = yyj21 > l - } else { - yyb21 = r.CheckBreak() - } - if yyb21 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Job != nil { - x.Job = nil - } - } else { - if x.Job == nil { - x.Job = new(Job) - } - x.Job.CodecDecodeSelf(d) - } - yyj21++ - if yyhl21 { - yyb21 = yyj21 > l - } else { - yyb21 = r.CheckBreak() - } - if yyb21 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.NodeUpdate = nil - } else { - yyv31 := &x.NodeUpdate - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(yyv31), d) - } - } - yyj21++ - if yyhl21 { - yyb21 = yyj21 > l - } else { - yyb21 = r.CheckBreak() - } - if yyb21 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.NodeAllocation = nil - } else { - yyv33 := &x.NodeAllocation - yym34 := z.DecBinary() - _ = yym34 - if false { - } else { - h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(yyv33), d) - } - } - yyj21++ - if yyhl21 { - yyb21 = yyj21 > l - } else { - yyb21 = r.CheckBreak() - } - if yyb21 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Annotations != nil { - x.Annotations = nil - } - } else { - if x.Annotations == nil { - x.Annotations = new(PlanAnnotations) - } - x.Annotations.CodecDecodeSelf(d) - } - yyj21++ - if yyhl21 { - yyb21 = yyj21 > l - } else { - yyb21 = r.CheckBreak() - } - if yyb21 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Deployment != nil { - x.Deployment = nil - } - } else { - if x.Deployment == nil { - x.Deployment = new(Deployment) - } - x.Deployment.CodecDecodeSelf(d) - } - yyj21++ - if yyhl21 { - yyb21 = yyj21 > l - } else { - yyb21 = r.CheckBreak() - } - if yyb21 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DeploymentUpdates = nil - } else { - yyv37 := &x.DeploymentUpdates - yym38 := z.DecBinary() - _ = yym38 - if false { - } else { - h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(yyv37), d) - } - } - for { - yyj21++ - if yyhl21 { - yyb21 = yyj21 > l - } else { - yyb21 = r.CheckBreak() - } - if yyb21 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj21-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *PlanResult) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(6) - } else { - yynn2 = 6 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.NodeUpdate == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeUpdate), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("NodeUpdate")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.NodeUpdate == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeUpdate), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.NodeAllocation == nil { - r.EncodeNil() - } else { - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeAllocation), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("NodeAllocation")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.NodeAllocation == nil { - r.EncodeNil() - } else { - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeAllocation), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Deployment == nil { - r.EncodeNil() - } else { - x.Deployment.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Deployment")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Deployment == nil { - r.EncodeNil() - } else { - x.Deployment.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.DeploymentUpdates == nil { - r.EncodeNil() - } else { - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DeploymentUpdates")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.DeploymentUpdates == nil { - r.EncodeNil() - } else { - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeUint(uint64(x.RefreshIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("RefreshIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeUint(uint64(x.RefreshIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeUint(uint64(x.AllocIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllocIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeUint(uint64(x.AllocIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *PlanResult) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *PlanResult) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "NodeUpdate": - if r.TryDecodeAsNil() { - x.NodeUpdate = nil - } else { - yyv4 := &x.NodeUpdate - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(yyv4), d) - } - } - case "NodeAllocation": - if r.TryDecodeAsNil() { - x.NodeAllocation = nil - } else { - yyv6 := &x.NodeAllocation - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(yyv6), d) - } - } - case "Deployment": - if r.TryDecodeAsNil() { - if x.Deployment != nil { - x.Deployment = nil - } - } else { - if x.Deployment == nil { - x.Deployment = new(Deployment) - } - x.Deployment.CodecDecodeSelf(d) - } - case "DeploymentUpdates": - if r.TryDecodeAsNil() { - x.DeploymentUpdates = nil - } else { - yyv9 := &x.DeploymentUpdates - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(yyv9), d) - } - } - case "RefreshIndex": - if r.TryDecodeAsNil() { - x.RefreshIndex = 0 - } else { - yyv11 := &x.RefreshIndex - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - *((*uint64)(yyv11)) = uint64(r.DecodeUint(64)) - } - } - case "AllocIndex": - if r.TryDecodeAsNil() { - x.AllocIndex = 0 - } else { - yyv13 := &x.AllocIndex - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*uint64)(yyv13)) = uint64(r.DecodeUint(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *PlanResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj15 int - var yyb15 bool - var yyhl15 bool = l >= 0 - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.NodeUpdate = nil - } else { - yyv16 := &x.NodeUpdate - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(yyv16), d) - } - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.NodeAllocation = nil - } else { - yyv18 := &x.NodeAllocation - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(yyv18), d) - } - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Deployment != nil { - x.Deployment = nil - } - } else { - if x.Deployment == nil { - x.Deployment = new(Deployment) - } - x.Deployment.CodecDecodeSelf(d) - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DeploymentUpdates = nil - } else { - yyv21 := &x.DeploymentUpdates - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(yyv21), d) - } - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.RefreshIndex = 0 - } else { - yyv23 := &x.RefreshIndex - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*uint64)(yyv23)) = uint64(r.DecodeUint(64)) - } - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllocIndex = 0 - } else { - yyv25 := &x.AllocIndex - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*uint64)(yyv25)) = uint64(r.DecodeUint(64)) - } - } - for { - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj15-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *PlanAnnotations) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(1) - } else { - yynn2 = 1 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.DesiredTGUpdates == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encMapstringPtrtoDesiredUpdates((map[string]*DesiredUpdates)(x.DesiredTGUpdates), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DesiredTGUpdates")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.DesiredTGUpdates == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encMapstringPtrtoDesiredUpdates((map[string]*DesiredUpdates)(x.DesiredTGUpdates), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *PlanAnnotations) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *PlanAnnotations) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "DesiredTGUpdates": - if r.TryDecodeAsNil() { - x.DesiredTGUpdates = nil - } else { - yyv4 := &x.DesiredTGUpdates - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decMapstringPtrtoDesiredUpdates((*map[string]*DesiredUpdates)(yyv4), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *PlanAnnotations) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DesiredTGUpdates = nil - } else { - yyv7 := &x.DesiredTGUpdates - yym8 := z.DecBinary() - _ = yym8 - if false { - } else { - h.decMapstringPtrtoDesiredUpdates((*map[string]*DesiredUpdates)(yyv7), d) - } - } - for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj6-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *DesiredUpdates) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [7]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(7) - } else { - yynn2 = 7 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeUint(uint64(x.Ignore)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Ignore")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeUint(uint64(x.Ignore)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Place)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Place")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Place)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.Migrate)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Migrate")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(x.Migrate)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeUint(uint64(x.Stop)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Stop")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeUint(uint64(x.Stop)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeUint(uint64(x.InPlaceUpdate)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("InPlaceUpdate")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeUint(uint64(x.InPlaceUpdate)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeUint(uint64(x.DestructiveUpdate)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("DestructiveUpdate")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeUint(uint64(x.DestructiveUpdate)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeUint(uint64(x.Canary)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Canary")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeUint(uint64(x.Canary)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *DesiredUpdates) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *DesiredUpdates) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Ignore": - if r.TryDecodeAsNil() { - x.Ignore = 0 - } else { - yyv4 := &x.Ignore - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*uint64)(yyv4)) = uint64(r.DecodeUint(64)) - } - } - case "Place": - if r.TryDecodeAsNil() { - x.Place = 0 - } else { - yyv6 := &x.Place - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) - } - } - case "Migrate": - if r.TryDecodeAsNil() { - x.Migrate = 0 - } else { - yyv8 := &x.Migrate - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) - } - } - case "Stop": - if r.TryDecodeAsNil() { - x.Stop = 0 - } else { - yyv10 := &x.Stop - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) - } - } - case "InPlaceUpdate": - if r.TryDecodeAsNil() { - x.InPlaceUpdate = 0 - } else { - yyv12 := &x.InPlaceUpdate - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*uint64)(yyv12)) = uint64(r.DecodeUint(64)) - } - } - case "DestructiveUpdate": - if r.TryDecodeAsNil() { - x.DestructiveUpdate = 0 - } else { - yyv14 := &x.DestructiveUpdate - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*uint64)(yyv14)) = uint64(r.DecodeUint(64)) - } - } - case "Canary": - if r.TryDecodeAsNil() { - x.Canary = 0 - } else { - yyv16 := &x.Canary - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*uint64)(yyv16)) = uint64(r.DecodeUint(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *DesiredUpdates) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Ignore = 0 - } else { - yyv19 := &x.Ignore - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*uint64)(yyv19)) = uint64(r.DecodeUint(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Place = 0 - } else { - yyv21 := &x.Place - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*uint64)(yyv21)) = uint64(r.DecodeUint(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Migrate = 0 - } else { - yyv23 := &x.Migrate - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*uint64)(yyv23)) = uint64(r.DecodeUint(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Stop = 0 - } else { - yyv25 := &x.Stop - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*uint64)(yyv25)) = uint64(r.DecodeUint(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.InPlaceUpdate = 0 - } else { - yyv27 := &x.InPlaceUpdate - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*uint64)(yyv27)) = uint64(r.DecodeUint(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.DestructiveUpdate = 0 - } else { - yyv29 := &x.DestructiveUpdate - yym30 := z.DecBinary() - _ = yym30 - if false { - } else { - *((*uint64)(yyv29)) = uint64(r.DecodeUint(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Canary = 0 - } else { - yyv31 := &x.Canary - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*uint64)(yyv31)) = uint64(r.DecodeUint(64)) - } - } - for { - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj18-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *KeyringResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(3) - } else { - yynn2 = 3 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Messages == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - z.F.EncMapStringStringV(x.Messages, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Messages")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Messages == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - z.F.EncMapStringStringV(x.Messages, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Keys == nil { - r.EncodeNil() - } else { - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - z.F.EncMapStringIntV(x.Keys, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Keys")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Keys == nil { - r.EncodeNil() - } else { - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - z.F.EncMapStringIntV(x.Keys, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeInt(int64(x.NumNodes)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("NumNodes")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeInt(int64(x.NumNodes)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *KeyringResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *KeyringResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Messages": - if r.TryDecodeAsNil() { - x.Messages = nil - } else { - yyv4 := &x.Messages - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - z.F.DecMapStringStringX(yyv4, false, d) - } - } - case "Keys": - if r.TryDecodeAsNil() { - x.Keys = nil - } else { - yyv6 := &x.Keys - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - z.F.DecMapStringIntX(yyv6, false, d) - } - } - case "NumNodes": - if r.TryDecodeAsNil() { - x.NumNodes = 0 - } else { - yyv8 := &x.NumNodes - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*int)(yyv8)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *KeyringResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Messages = nil - } else { - yyv11 := &x.Messages - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - z.F.DecMapStringStringX(yyv11, false, d) - } - } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Keys = nil - } else { - yyv13 := &x.Keys - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - z.F.DecMapStringIntX(yyv13, false, d) - } - } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.NumNodes = 0 - } else { - yyv15 := &x.NumNodes - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*int)(yyv15)) = int(r.DecodeInt(codecSelferBitsize100)) - } - } - for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj10-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *KeyringRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [1]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(1) - } else { - yynn2 = 1 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Key)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Key")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Key)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *KeyringRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *KeyringRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Key": - if r.TryDecodeAsNil() { - x.Key = "" - } else { - yyv4 := &x.Key - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *KeyringRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Key = "" - } else { - yyv7 := &x.Key - yym8 := z.DecBinary() - _ = yym8 - if false { - } else { - *((*string)(yyv7)) = r.DecodeString() - } - } - for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj6-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *RecoverableError) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(2) - } else { - yynn2 = 2 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Err)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Err")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Err)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeBool(bool(x.Recoverable)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Recoverable")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeBool(bool(x.Recoverable)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *RecoverableError) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *RecoverableError) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Err": - if r.TryDecodeAsNil() { - x.Err = "" - } else { - yyv4 := &x.Err - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Recoverable": - if r.TryDecodeAsNil() { - x.Recoverable = false - } else { - yyv6 := &x.Recoverable - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*bool)(yyv6)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *RecoverableError) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Err = "" - } else { - yyv9 := &x.Err - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - *((*string)(yyv9)) = r.DecodeString() - } - } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Recoverable = false - } else { - yyv11 := &x.Recoverable - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - *((*bool)(yyv11)) = r.DecodeBool() - } - } - for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj8-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *ACLPolicy) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(6) - } else { - yynn2 = 6 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Name)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Name")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Name)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Description)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Description")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Description)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Rules)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Rules")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Rules)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Hash == nil { - r.EncodeNil() - } else { - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW100, []byte(x.Hash)) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Hash")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Hash == nil { - r.EncodeNil() - } else { - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW100, []byte(x.Hash)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("CreateIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *ACLPolicy) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *ACLPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv4 := &x.Name - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Description": - if r.TryDecodeAsNil() { - x.Description = "" - } else { - yyv6 := &x.Description - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Rules": - if r.TryDecodeAsNil() { - x.Rules = "" - } else { - yyv8 := &x.Rules - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "Hash": - if r.TryDecodeAsNil() { - x.Hash = nil - } else { - yyv10 := &x.Hash - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *yyv10 = r.DecodeBytes(*(*[]byte)(yyv10), false, false) - } - } - case "CreateIndex": - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv12 := &x.CreateIndex - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*uint64)(yyv12)) = uint64(r.DecodeUint(64)) - } - } - case "ModifyIndex": - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv14 := &x.ModifyIndex - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*uint64)(yyv14)) = uint64(r.DecodeUint(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *ACLPolicy) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv17 := &x.Name - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Description = "" - } else { - yyv19 := &x.Description - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Rules = "" - } else { - yyv21 := &x.Rules - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Hash = nil - } else { - yyv23 := &x.Hash - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *yyv23 = r.DecodeBytes(*(*[]byte)(yyv23), false, false) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv25 := &x.CreateIndex - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*uint64)(yyv25)) = uint64(r.DecodeUint(64)) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv27 := &x.ModifyIndex - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*uint64)(yyv27)) = uint64(r.DecodeUint(64)) - } - } - for { - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj16-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *ACLPolicyListStub) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [5]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(5) - } else { - yynn2 = 5 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Name)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Name")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Name)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Description)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Description")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Description)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Hash == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW100, []byte(x.Hash)) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Hash")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Hash == nil { - r.EncodeNil() - } else { - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW100, []byte(x.Hash)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("CreateIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *ACLPolicyListStub) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *ACLPolicyListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv4 := &x.Name - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Description": - if r.TryDecodeAsNil() { - x.Description = "" - } else { - yyv6 := &x.Description - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Hash": - if r.TryDecodeAsNil() { - x.Hash = nil - } else { - yyv8 := &x.Hash - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *yyv8 = r.DecodeBytes(*(*[]byte)(yyv8), false, false) - } - } - case "CreateIndex": - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv10 := &x.CreateIndex - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) - } - } - case "ModifyIndex": - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv12 := &x.ModifyIndex - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*uint64)(yyv12)) = uint64(r.DecodeUint(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *ACLPolicyListStub) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv15 := &x.Name - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Description = "" - } else { - yyv17 := &x.Description - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Hash = nil - } else { - yyv19 := &x.Hash - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *yyv19 = r.DecodeBytes(*(*[]byte)(yyv19), false, false) - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv21 := &x.CreateIndex - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*uint64)(yyv21)) = uint64(r.DecodeUint(64)) - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv23 := &x.ModifyIndex - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*uint64)(yyv23)) = uint64(r.DecodeUint(64)) - } - } - for { - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj14-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *ACLPolicyListRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [7]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(7) - } else { - yynn2 = 7 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *ACLPolicyListRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *ACLPolicyListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv4 := &x.Region - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv6 := &x.Namespace - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv8 := &x.MinQueryIndex - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv10 := &x.MaxQueryTime - yym11 := z.DecBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.DecExt(yyv10) { - } else { - *((*int64)(yyv10)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv12 := &x.AllowStale - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*bool)(yyv12)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv14 := &x.Prefix - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*string)(yyv14)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv16 := &x.AuthToken - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *ACLPolicyListRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv19 := &x.Region - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv21 := &x.Namespace - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv23 := &x.MinQueryIndex - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*uint64)(yyv23)) = uint64(r.DecodeUint(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv25 := &x.MaxQueryTime - yym26 := z.DecBinary() - _ = yym26 - if false { - } else if z.HasExtensions() && z.DecExt(yyv25) { - } else { - *((*int64)(yyv25)) = int64(r.DecodeInt(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv27 := &x.AllowStale - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*bool)(yyv27)) = r.DecodeBool() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv29 := &x.Prefix - yym30 := z.DecBinary() - _ = yym30 - if false { - } else { - *((*string)(yyv29)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv31 := &x.AuthToken - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*string)(yyv31)) = r.DecodeString() - } - } - for { - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj18-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *ACLPolicySpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(8) - } else { - yynn2 = 8 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Name)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Name")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Name)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *ACLPolicySpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *ACLPolicySpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv4 := &x.Name - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv10 := &x.MinQueryIndex - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv12 := &x.MaxQueryTime - yym13 := z.DecBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.DecExt(yyv12) { - } else { - *((*int64)(yyv12)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv14 := &x.AllowStale - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*bool)(yyv14)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv16 := &x.Prefix - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv18 := &x.AuthToken - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*string)(yyv18)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *ACLPolicySpecificRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv21 := &x.Name - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv23 := &x.Region - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv25 := &x.Namespace - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*string)(yyv25)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv27 := &x.MinQueryIndex - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*uint64)(yyv27)) = uint64(r.DecodeUint(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv29 := &x.MaxQueryTime - yym30 := z.DecBinary() - _ = yym30 - if false { - } else if z.HasExtensions() && z.DecExt(yyv29) { - } else { - *((*int64)(yyv29)) = int64(r.DecodeInt(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv31 := &x.AllowStale - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*bool)(yyv31)) = r.DecodeBool() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv33 := &x.Prefix - yym34 := z.DecBinary() - _ = yym34 - if false { - } else { - *((*string)(yyv33)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv35 := &x.AuthToken - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - *((*string)(yyv35)) = r.DecodeString() - } - } - for { - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj20-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *ACLPolicySetRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(8) - } else { - yynn2 = 8 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Names == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - z.F.EncSliceStringV(x.Names, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Names")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Names == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - z.F.EncSliceStringV(x.Names, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *ACLPolicySetRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *ACLPolicySetRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Names": - if r.TryDecodeAsNil() { - x.Names = nil - } else { - yyv4 := &x.Names - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - z.F.DecSliceStringX(yyv4, false, d) - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv10 := &x.MinQueryIndex - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv12 := &x.MaxQueryTime - yym13 := z.DecBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.DecExt(yyv12) { - } else { - *((*int64)(yyv12)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv14 := &x.AllowStale - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*bool)(yyv14)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv16 := &x.Prefix - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv18 := &x.AuthToken - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*string)(yyv18)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *ACLPolicySetRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Names = nil - } else { - yyv21 := &x.Names - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - z.F.DecSliceStringX(yyv21, false, d) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv23 := &x.Region - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv25 := &x.Namespace - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*string)(yyv25)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv27 := &x.MinQueryIndex - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*uint64)(yyv27)) = uint64(r.DecodeUint(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv29 := &x.MaxQueryTime - yym30 := z.DecBinary() - _ = yym30 - if false { - } else if z.HasExtensions() && z.DecExt(yyv29) { - } else { - *((*int64)(yyv29)) = int64(r.DecodeInt(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv31 := &x.AllowStale - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*bool)(yyv31)) = r.DecodeBool() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv33 := &x.Prefix - yym34 := z.DecBinary() - _ = yym34 - if false { - } else { - *((*string)(yyv33)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv35 := &x.AuthToken - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - *((*string)(yyv35)) = r.DecodeString() - } - } - for { - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj20-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *ACLPolicyListResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Policies == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encSlicePtrtoACLPolicyListStub(([]*ACLPolicyListStub)(x.Policies), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Policies")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Policies == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encSlicePtrtoACLPolicyListStub(([]*ACLPolicyListStub)(x.Policies), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *ACLPolicyListResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *ACLPolicyListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Policies": - if r.TryDecodeAsNil() { - x.Policies = nil - } else { - yyv4 := &x.Policies - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decSlicePtrtoACLPolicyListStub((*[]*ACLPolicyListStub)(yyv4), d) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv6 := &x.Index - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv8 := &x.LastContact - yym9 := z.DecBinary() - _ = yym9 - if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else { - *((*int64)(yyv8)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv10 := &x.KnownLeader - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*bool)(yyv10)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *ACLPolicyListResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Policies = nil - } else { - yyv13 := &x.Policies - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePtrtoACLPolicyListStub((*[]*ACLPolicyListStub)(yyv13), d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv15 := &x.Index - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv17 := &x.LastContact - yym18 := z.DecBinary() - _ = yym18 - if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else { - *((*int64)(yyv17)) = int64(r.DecodeInt(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv19 := &x.KnownLeader - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*bool)(yyv19)) = r.DecodeBool() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *SingleACLPolicyResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Policy == nil { - r.EncodeNil() - } else { - x.Policy.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Policy")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Policy == nil { - r.EncodeNil() - } else { - x.Policy.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *SingleACLPolicyResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *SingleACLPolicyResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Policy": - if r.TryDecodeAsNil() { - if 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.Index = 0 - } else { - yyv5 := &x.Index - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*uint64)(yyv5)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv7 := &x.LastContact - yym8 := z.DecBinary() - _ = yym8 - if false { - } else if z.HasExtensions() && z.DecExt(yyv7) { - } else { - *((*int64)(yyv7)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv9 := &x.KnownLeader - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - *((*bool)(yyv9)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *SingleACLPolicyResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Policy != nil { - x.Policy = nil - } - } else { - if x.Policy == nil { - x.Policy = new(ACLPolicy) - } - x.Policy.CodecDecodeSelf(d) - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv13 := &x.Index - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*uint64)(yyv13)) = uint64(r.DecodeUint(64)) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv15 := &x.LastContact - yym16 := z.DecBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.DecExt(yyv15) { - } else { - *((*int64)(yyv15)) = int64(r.DecodeInt(64)) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv17 := &x.KnownLeader - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*bool)(yyv17)) = r.DecodeBool() - } - } - for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj11-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *ACLPolicySetResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Policies == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encMapstringPtrtoACLPolicy((map[string]*ACLPolicy)(x.Policies), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Policies")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Policies == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encMapstringPtrtoACLPolicy((map[string]*ACLPolicy)(x.Policies), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *ACLPolicySetResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *ACLPolicySetResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Policies": - if r.TryDecodeAsNil() { - x.Policies = nil - } else { - yyv4 := &x.Policies - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decMapstringPtrtoACLPolicy((*map[string]*ACLPolicy)(yyv4), d) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv6 := &x.Index - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv8 := &x.LastContact - yym9 := z.DecBinary() - _ = yym9 - if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else { - *((*int64)(yyv8)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv10 := &x.KnownLeader - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*bool)(yyv10)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *ACLPolicySetResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Policies = nil - } else { - yyv13 := &x.Policies - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decMapstringPtrtoACLPolicy((*map[string]*ACLPolicy)(yyv13), d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv15 := &x.Index - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv17 := &x.LastContact - yym18 := z.DecBinary() - _ = yym18 - if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else { - *((*int64)(yyv17)) = int64(r.DecodeInt(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv19 := &x.KnownLeader - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*bool)(yyv19)) = r.DecodeBool() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *ACLPolicyDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Names == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - z.F.EncSliceStringV(x.Names, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Names")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Names == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - z.F.EncSliceStringV(x.Names, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *ACLPolicyDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *ACLPolicyDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Names": - if r.TryDecodeAsNil() { - x.Names = nil - } else { - yyv4 := &x.Names - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - z.F.DecSliceStringX(yyv4, false, d) - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv10 := &x.AuthToken - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *ACLPolicyDeleteRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Names = nil - } else { - yyv13 := &x.Names - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - z.F.DecSliceStringX(yyv13, false, d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv15 := &x.Region - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv17 := &x.Namespace - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv19 := &x.AuthToken - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *ACLPolicyUpsertRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Policies == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encSlicePtrtoACLPolicy(([]*ACLPolicy)(x.Policies), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Policies")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Policies == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encSlicePtrtoACLPolicy(([]*ACLPolicy)(x.Policies), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *ACLPolicyUpsertRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *ACLPolicyUpsertRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Policies": - if r.TryDecodeAsNil() { - x.Policies = nil - } else { - yyv4 := &x.Policies - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decSlicePtrtoACLPolicy((*[]*ACLPolicy)(yyv4), d) - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv10 := &x.AuthToken - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *ACLPolicyUpsertRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Policies = nil - } else { - yyv13 := &x.Policies - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePtrtoACLPolicy((*[]*ACLPolicy)(yyv13), d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv15 := &x.Region - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv17 := &x.Namespace - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv19 := &x.AuthToken - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *ACLToken) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [10]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(10) - } else { - yynn2 = 10 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AccessorID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AccessorID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AccessorID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.SecretID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("SecretID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.SecretID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Name)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Name")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Name)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Type)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Type")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Type)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Policies == nil { - r.EncodeNil() - } else { - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - z.F.EncSliceStringV(x.Policies, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Policies")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Policies == nil { - r.EncodeNil() - } else { - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - z.F.EncSliceStringV(x.Policies, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeBool(bool(x.Global)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Global")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeBool(bool(x.Global)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Hash == nil { - r.EncodeNil() - } else { - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW100, []byte(x.Hash)) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Hash")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Hash == nil { - r.EncodeNil() - } else { - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW100, []byte(x.Hash)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yy25 := &x.CreateTime - yym26 := z.EncBinary() - _ = yym26 - if false { - } else if yym27 := z.TimeRtidIfBinc(); yym27 != 0 { - r.EncodeBuiltin(yym27, yy25) - } else if z.HasExtensions() && z.EncExt(yy25) { - } else if yym26 { - z.EncBinaryMarshal(yy25) - } else if !yym26 && z.IsJSONHandle() { - z.EncJSONMarshal(yy25) - } else { - z.EncFallback(yy25) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("CreateTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yy28 := &x.CreateTime - yym29 := z.EncBinary() - _ = yym29 - if false { - } else if yym30 := z.TimeRtidIfBinc(); yym30 != 0 { - r.EncodeBuiltin(yym30, yy28) - } else if z.HasExtensions() && z.EncExt(yy28) { - } else if yym29 { - z.EncBinaryMarshal(yy28) - } else if !yym29 && z.IsJSONHandle() { - z.EncJSONMarshal(yy28) - } else { - z.EncFallback(yy28) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym32 := z.EncBinary() - _ = yym32 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("CreateIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym33 := z.EncBinary() - _ = yym33 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym35 := z.EncBinary() - _ = yym35 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym36 := z.EncBinary() - _ = yym36 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *ACLToken) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *ACLToken) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "AccessorID": - if r.TryDecodeAsNil() { - x.AccessorID = "" - } else { - yyv4 := &x.AccessorID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "SecretID": - if r.TryDecodeAsNil() { - x.SecretID = "" - } else { - yyv6 := &x.SecretID - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv8 := &x.Name - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "Type": - if r.TryDecodeAsNil() { - x.Type = "" - } else { - yyv10 := &x.Type - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - case "Policies": - if r.TryDecodeAsNil() { - x.Policies = nil - } else { - yyv12 := &x.Policies - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - z.F.DecSliceStringX(yyv12, false, d) - } - } - case "Global": - if r.TryDecodeAsNil() { - x.Global = false - } else { - yyv14 := &x.Global - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*bool)(yyv14)) = r.DecodeBool() - } - } - case "Hash": - if r.TryDecodeAsNil() { - x.Hash = nil - } else { - yyv16 := &x.Hash - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *yyv16 = r.DecodeBytes(*(*[]byte)(yyv16), false, false) - } - } - case "CreateTime": - if r.TryDecodeAsNil() { - x.CreateTime = time.Time{} - } else { - yyv18 := &x.CreateTime - yym19 := z.DecBinary() - _ = yym19 - if false { - } else if yym20 := z.TimeRtidIfBinc(); yym20 != 0 { - r.DecodeBuiltin(yym20, yyv18) - } else if z.HasExtensions() && z.DecExt(yyv18) { - } else if yym19 { - z.DecBinaryUnmarshal(yyv18) - } else if !yym19 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv18) - } else { - z.DecFallback(yyv18, false) - } - } - case "CreateIndex": - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv21 := &x.CreateIndex - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*uint64)(yyv21)) = uint64(r.DecodeUint(64)) - } - } - case "ModifyIndex": - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv23 := &x.ModifyIndex - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*uint64)(yyv23)) = uint64(r.DecodeUint(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *ACLToken) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AccessorID = "" - } else { - yyv26 := &x.AccessorID - yym27 := z.DecBinary() - _ = yym27 - if false { - } else { - *((*string)(yyv26)) = r.DecodeString() - } - } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l - } else { - yyb25 = r.CheckBreak() - } - if yyb25 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.SecretID = "" - } else { - yyv28 := &x.SecretID - yym29 := z.DecBinary() - _ = yym29 - if false { - } else { - *((*string)(yyv28)) = r.DecodeString() - } - } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l - } else { - yyb25 = r.CheckBreak() - } - if yyb25 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv30 := &x.Name - yym31 := z.DecBinary() - _ = yym31 - if false { - } else { - *((*string)(yyv30)) = r.DecodeString() - } - } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l - } else { - yyb25 = r.CheckBreak() - } - if yyb25 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Type = "" - } else { - yyv32 := &x.Type - yym33 := z.DecBinary() - _ = yym33 - if false { - } else { - *((*string)(yyv32)) = r.DecodeString() - } - } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l - } else { - yyb25 = r.CheckBreak() - } - if yyb25 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Policies = nil - } else { - yyv34 := &x.Policies - yym35 := z.DecBinary() - _ = yym35 - if false { - } else { - z.F.DecSliceStringX(yyv34, false, d) - } - } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l - } else { - yyb25 = r.CheckBreak() - } - if yyb25 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Global = false - } else { - yyv36 := &x.Global - yym37 := z.DecBinary() - _ = yym37 - if false { - } else { - *((*bool)(yyv36)) = r.DecodeBool() - } - } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l - } else { - yyb25 = r.CheckBreak() - } - if yyb25 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Hash = nil - } else { - yyv38 := &x.Hash - yym39 := z.DecBinary() - _ = yym39 - if false { - } else { - *yyv38 = r.DecodeBytes(*(*[]byte)(yyv38), false, false) - } - } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l - } else { - yyb25 = r.CheckBreak() - } - if yyb25 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.CreateTime = time.Time{} - } else { - yyv40 := &x.CreateTime - yym41 := z.DecBinary() - _ = yym41 - if false { - } else if yym42 := z.TimeRtidIfBinc(); yym42 != 0 { - r.DecodeBuiltin(yym42, yyv40) - } else if z.HasExtensions() && z.DecExt(yyv40) { - } else if yym41 { - z.DecBinaryUnmarshal(yyv40) - } else if !yym41 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv40) - } else { - z.DecFallback(yyv40, false) - } - } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l - } else { - yyb25 = r.CheckBreak() - } - if yyb25 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv43 := &x.CreateIndex - yym44 := z.DecBinary() - _ = yym44 - if false { - } else { - *((*uint64)(yyv43)) = uint64(r.DecodeUint(64)) - } - } - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l - } else { - yyb25 = r.CheckBreak() - } - if yyb25 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv45 := &x.ModifyIndex - yym46 := z.DecBinary() - _ = yym46 - if false { - } else { - *((*uint64)(yyv45)) = uint64(r.DecodeUint(64)) - } - } - for { - yyj25++ - if yyhl25 { - yyb25 = yyj25 > l - } else { - yyb25 = r.CheckBreak() - } - if yyb25 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj25-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *ACLTokenListStub) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [9]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(9) - } else { - yynn2 = 9 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AccessorID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AccessorID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AccessorID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Name)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Name")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Name)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Type)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Type")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Type)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Policies == nil { - r.EncodeNil() - } else { - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - z.F.EncSliceStringV(x.Policies, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Policies")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Policies == nil { - r.EncodeNil() - } else { - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - z.F.EncSliceStringV(x.Policies, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeBool(bool(x.Global)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Global")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeBool(bool(x.Global)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Hash == nil { - r.EncodeNil() - } else { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW100, []byte(x.Hash)) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Hash")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Hash == nil { - r.EncodeNil() - } else { - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW100, []byte(x.Hash)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yy22 := &x.CreateTime - yym23 := z.EncBinary() - _ = yym23 - if false { - } else if yym24 := z.TimeRtidIfBinc(); yym24 != 0 { - r.EncodeBuiltin(yym24, yy22) - } else if z.HasExtensions() && z.EncExt(yy22) { - } else if yym23 { - z.EncBinaryMarshal(yy22) - } else if !yym23 && z.IsJSONHandle() { - z.EncJSONMarshal(yy22) - } else { - z.EncFallback(yy22) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("CreateTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yy25 := &x.CreateTime - yym26 := z.EncBinary() - _ = yym26 - if false { - } else if yym27 := z.TimeRtidIfBinc(); yym27 != 0 { - r.EncodeBuiltin(yym27, yy25) - } else if z.HasExtensions() && z.EncExt(yy25) { - } else if yym26 { - z.EncBinaryMarshal(yy25) - } else if !yym26 && z.IsJSONHandle() { - z.EncJSONMarshal(yy25) - } else { - z.EncFallback(yy25) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym29 := z.EncBinary() - _ = yym29 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("CreateIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym30 := z.EncBinary() - _ = yym30 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym32 := z.EncBinary() - _ = yym32 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym33 := z.EncBinary() - _ = yym33 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *ACLTokenListStub) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *ACLTokenListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "AccessorID": - if r.TryDecodeAsNil() { - x.AccessorID = "" - } else { - yyv4 := &x.AccessorID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv6 := &x.Name - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Type": - if r.TryDecodeAsNil() { - x.Type = "" - } else { - yyv8 := &x.Type - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "Policies": - if r.TryDecodeAsNil() { - x.Policies = nil - } else { - yyv10 := &x.Policies - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - z.F.DecSliceStringX(yyv10, false, d) - } - } - case "Global": - if r.TryDecodeAsNil() { - x.Global = false - } else { - yyv12 := &x.Global - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*bool)(yyv12)) = r.DecodeBool() - } - } - case "Hash": - if r.TryDecodeAsNil() { - x.Hash = nil - } else { - yyv14 := &x.Hash - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *yyv14 = r.DecodeBytes(*(*[]byte)(yyv14), false, false) - } - } - case "CreateTime": - if r.TryDecodeAsNil() { - x.CreateTime = time.Time{} - } else { - yyv16 := &x.CreateTime - yym17 := z.DecBinary() - _ = yym17 - if false { - } else if yym18 := z.TimeRtidIfBinc(); yym18 != 0 { - r.DecodeBuiltin(yym18, yyv16) - } else if z.HasExtensions() && z.DecExt(yyv16) { - } else if yym17 { - z.DecBinaryUnmarshal(yyv16) - } else if !yym17 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv16) - } else { - z.DecFallback(yyv16, false) - } - } - case "CreateIndex": - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv19 := &x.CreateIndex - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*uint64)(yyv19)) = uint64(r.DecodeUint(64)) - } - } - case "ModifyIndex": - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv21 := &x.ModifyIndex - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*uint64)(yyv21)) = uint64(r.DecodeUint(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *ACLTokenListStub) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AccessorID = "" - } else { - yyv24 := &x.AccessorID - yym25 := z.DecBinary() - _ = yym25 - if false { - } else { - *((*string)(yyv24)) = r.DecodeString() - } - } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l - } else { - yyb23 = r.CheckBreak() - } - if yyb23 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv26 := &x.Name - yym27 := z.DecBinary() - _ = yym27 - if false { - } else { - *((*string)(yyv26)) = r.DecodeString() - } - } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l - } else { - yyb23 = r.CheckBreak() - } - if yyb23 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Type = "" - } else { - yyv28 := &x.Type - yym29 := z.DecBinary() - _ = yym29 - if false { - } else { - *((*string)(yyv28)) = r.DecodeString() - } - } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l - } else { - yyb23 = r.CheckBreak() - } - if yyb23 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Policies = nil - } else { - yyv30 := &x.Policies - yym31 := z.DecBinary() - _ = yym31 - if false { - } else { - z.F.DecSliceStringX(yyv30, false, d) - } - } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l - } else { - yyb23 = r.CheckBreak() - } - if yyb23 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Global = false - } else { - yyv32 := &x.Global - yym33 := z.DecBinary() - _ = yym33 - if false { - } else { - *((*bool)(yyv32)) = r.DecodeBool() - } - } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l - } else { - yyb23 = r.CheckBreak() - } - if yyb23 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Hash = nil - } else { - yyv34 := &x.Hash - yym35 := z.DecBinary() - _ = yym35 - if false { - } else { - *yyv34 = r.DecodeBytes(*(*[]byte)(yyv34), false, false) - } - } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l - } else { - yyb23 = r.CheckBreak() - } - if yyb23 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.CreateTime = time.Time{} - } else { - yyv36 := &x.CreateTime - yym37 := z.DecBinary() - _ = yym37 - if false { - } else if yym38 := z.TimeRtidIfBinc(); yym38 != 0 { - r.DecodeBuiltin(yym38, yyv36) - } else if z.HasExtensions() && z.DecExt(yyv36) { - } else if yym37 { - z.DecBinaryUnmarshal(yyv36) - } else if !yym37 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv36) - } else { - z.DecFallback(yyv36, false) - } - } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l - } else { - yyb23 = r.CheckBreak() - } - if yyb23 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv39 := &x.CreateIndex - yym40 := z.DecBinary() - _ = yym40 - if false { - } else { - *((*uint64)(yyv39)) = uint64(r.DecodeUint(64)) - } - } - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l - } else { - yyb23 = r.CheckBreak() - } - if yyb23 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv41 := &x.ModifyIndex - yym42 := z.DecBinary() - _ = yym42 - if false { - } else { - *((*uint64)(yyv41)) = uint64(r.DecodeUint(64)) - } - } - for { - yyj23++ - if yyhl23 { - yyb23 = yyj23 > l - } else { - yyb23 = r.CheckBreak() - } - if yyb23 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj23-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *ACLTokenListRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(8) - } else { - yynn2 = 8 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeBool(bool(x.GlobalOnly)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("GlobalOnly")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeBool(bool(x.GlobalOnly)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *ACLTokenListRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *ACLTokenListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "GlobalOnly": - if r.TryDecodeAsNil() { - x.GlobalOnly = false - } else { - yyv4 := &x.GlobalOnly - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*bool)(yyv4)) = r.DecodeBool() - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv10 := &x.MinQueryIndex - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv12 := &x.MaxQueryTime - yym13 := z.DecBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.DecExt(yyv12) { - } else { - *((*int64)(yyv12)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv14 := &x.AllowStale - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*bool)(yyv14)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv16 := &x.Prefix - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv18 := &x.AuthToken - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*string)(yyv18)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *ACLTokenListRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.GlobalOnly = false - } else { - yyv21 := &x.GlobalOnly - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*bool)(yyv21)) = r.DecodeBool() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv23 := &x.Region - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv25 := &x.Namespace - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*string)(yyv25)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv27 := &x.MinQueryIndex - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*uint64)(yyv27)) = uint64(r.DecodeUint(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv29 := &x.MaxQueryTime - yym30 := z.DecBinary() - _ = yym30 - if false { - } else if z.HasExtensions() && z.DecExt(yyv29) { - } else { - *((*int64)(yyv29)) = int64(r.DecodeInt(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv31 := &x.AllowStale - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*bool)(yyv31)) = r.DecodeBool() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv33 := &x.Prefix - yym34 := z.DecBinary() - _ = yym34 - if false { - } else { - *((*string)(yyv33)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv35 := &x.AuthToken - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - *((*string)(yyv35)) = r.DecodeString() - } - } - for { - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj20-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *ACLTokenSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(8) - } else { - yynn2 = 8 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AccessorID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AccessorID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AccessorID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *ACLTokenSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *ACLTokenSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "AccessorID": - if r.TryDecodeAsNil() { - x.AccessorID = "" - } else { - yyv4 := &x.AccessorID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv10 := &x.MinQueryIndex - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv12 := &x.MaxQueryTime - yym13 := z.DecBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.DecExt(yyv12) { - } else { - *((*int64)(yyv12)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv14 := &x.AllowStale - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*bool)(yyv14)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv16 := &x.Prefix - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv18 := &x.AuthToken - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*string)(yyv18)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *ACLTokenSpecificRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AccessorID = "" - } else { - yyv21 := &x.AccessorID - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv23 := &x.Region - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv25 := &x.Namespace - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*string)(yyv25)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv27 := &x.MinQueryIndex - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*uint64)(yyv27)) = uint64(r.DecodeUint(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv29 := &x.MaxQueryTime - yym30 := z.DecBinary() - _ = yym30 - if false { - } else if z.HasExtensions() && z.DecExt(yyv29) { - } else { - *((*int64)(yyv29)) = int64(r.DecodeInt(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv31 := &x.AllowStale - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*bool)(yyv31)) = r.DecodeBool() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv33 := &x.Prefix - yym34 := z.DecBinary() - _ = yym34 - if false { - } else { - *((*string)(yyv33)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv35 := &x.AuthToken - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - *((*string)(yyv35)) = r.DecodeString() - } - } - for { - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj20-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *ACLTokenSetRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(8) - } else { - yynn2 = 8 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.AccessorIDS == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - z.F.EncSliceStringV(x.AccessorIDS, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AccessorIDS")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.AccessorIDS == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - z.F.EncSliceStringV(x.AccessorIDS, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *ACLTokenSetRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *ACLTokenSetRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "AccessorIDS": - if r.TryDecodeAsNil() { - x.AccessorIDS = nil - } else { - yyv4 := &x.AccessorIDS - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - z.F.DecSliceStringX(yyv4, false, d) - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv10 := &x.MinQueryIndex - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv12 := &x.MaxQueryTime - yym13 := z.DecBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.DecExt(yyv12) { - } else { - *((*int64)(yyv12)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv14 := &x.AllowStale - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*bool)(yyv14)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv16 := &x.Prefix - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv18 := &x.AuthToken - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*string)(yyv18)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *ACLTokenSetRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AccessorIDS = nil - } else { - yyv21 := &x.AccessorIDS - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - z.F.DecSliceStringX(yyv21, false, d) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv23 := &x.Region - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv25 := &x.Namespace - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*string)(yyv25)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv27 := &x.MinQueryIndex - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*uint64)(yyv27)) = uint64(r.DecodeUint(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv29 := &x.MaxQueryTime - yym30 := z.DecBinary() - _ = yym30 - if false { - } else if z.HasExtensions() && z.DecExt(yyv29) { - } else { - *((*int64)(yyv29)) = int64(r.DecodeInt(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv31 := &x.AllowStale - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*bool)(yyv31)) = r.DecodeBool() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv33 := &x.Prefix - yym34 := z.DecBinary() - _ = yym34 - if false { - } else { - *((*string)(yyv33)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv35 := &x.AuthToken - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - *((*string)(yyv35)) = r.DecodeString() - } - } - for { - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj20-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *ACLTokenListResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Tokens == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encSlicePtrtoACLTokenListStub(([]*ACLTokenListStub)(x.Tokens), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Tokens")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Tokens == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encSlicePtrtoACLTokenListStub(([]*ACLTokenListStub)(x.Tokens), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *ACLTokenListResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *ACLTokenListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Tokens": - if r.TryDecodeAsNil() { - x.Tokens = nil - } else { - yyv4 := &x.Tokens - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decSlicePtrtoACLTokenListStub((*[]*ACLTokenListStub)(yyv4), d) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv6 := &x.Index - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv8 := &x.LastContact - yym9 := z.DecBinary() - _ = yym9 - if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else { - *((*int64)(yyv8)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv10 := &x.KnownLeader - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*bool)(yyv10)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *ACLTokenListResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Tokens = nil - } else { - yyv13 := &x.Tokens - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePtrtoACLTokenListStub((*[]*ACLTokenListStub)(yyv13), d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv15 := &x.Index - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv17 := &x.LastContact - yym18 := z.DecBinary() - _ = yym18 - if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else { - *((*int64)(yyv17)) = int64(r.DecodeInt(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv19 := &x.KnownLeader - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*bool)(yyv19)) = r.DecodeBool() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *SingleACLTokenResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Token == nil { - r.EncodeNil() - } else { - x.Token.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Token")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Token == nil { - r.EncodeNil() - } else { - x.Token.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *SingleACLTokenResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *SingleACLTokenResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Token": - if r.TryDecodeAsNil() { - if 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.Index = 0 - } else { - yyv5 := &x.Index - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*uint64)(yyv5)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv7 := &x.LastContact - yym8 := z.DecBinary() - _ = yym8 - if false { - } else if z.HasExtensions() && z.DecExt(yyv7) { - } else { - *((*int64)(yyv7)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv9 := &x.KnownLeader - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - *((*bool)(yyv9)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *SingleACLTokenResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Token != nil { - x.Token = nil - } - } else { - if x.Token == nil { - x.Token = new(ACLToken) - } - x.Token.CodecDecodeSelf(d) - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv13 := &x.Index - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*uint64)(yyv13)) = uint64(r.DecodeUint(64)) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv15 := &x.LastContact - yym16 := z.DecBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.DecExt(yyv15) { - } else { - *((*int64)(yyv15)) = int64(r.DecodeInt(64)) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv17 := &x.KnownLeader - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*bool)(yyv17)) = r.DecodeBool() - } - } - for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj11-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *ACLTokenSetResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Tokens == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encMapstringPtrtoACLToken((map[string]*ACLToken)(x.Tokens), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Tokens")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Tokens == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encMapstringPtrtoACLToken((map[string]*ACLToken)(x.Tokens), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *ACLTokenSetResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *ACLTokenSetResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Tokens": - if r.TryDecodeAsNil() { - x.Tokens = nil - } else { - yyv4 := &x.Tokens - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decMapstringPtrtoACLToken((*map[string]*ACLToken)(yyv4), d) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv6 := &x.Index - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv8 := &x.LastContact - yym9 := z.DecBinary() - _ = yym9 - if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else { - *((*int64)(yyv8)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv10 := &x.KnownLeader - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*bool)(yyv10)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *ACLTokenSetResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Tokens = nil - } else { - yyv13 := &x.Tokens - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decMapstringPtrtoACLToken((*map[string]*ACLToken)(yyv13), d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv15 := &x.Index - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv17 := &x.LastContact - yym18 := z.DecBinary() - _ = yym18 - if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else { - *((*int64)(yyv17)) = int64(r.DecodeInt(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv19 := &x.KnownLeader - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*bool)(yyv19)) = r.DecodeBool() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *ResolveACLTokenRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(8) - } else { - yynn2 = 8 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.SecretID)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("SecretID")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.SecretID)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *ResolveACLTokenRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *ResolveACLTokenRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "SecretID": - if r.TryDecodeAsNil() { - x.SecretID = "" - } else { - yyv4 := &x.SecretID - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv10 := &x.MinQueryIndex - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv12 := &x.MaxQueryTime - yym13 := z.DecBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.DecExt(yyv12) { - } else { - *((*int64)(yyv12)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv14 := &x.AllowStale - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*bool)(yyv14)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv16 := &x.Prefix - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv18 := &x.AuthToken - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*string)(yyv18)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *ResolveACLTokenRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.SecretID = "" - } else { - yyv21 := &x.SecretID - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv23 := &x.Region - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv25 := &x.Namespace - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*string)(yyv25)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv27 := &x.MinQueryIndex - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*uint64)(yyv27)) = uint64(r.DecodeUint(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv29 := &x.MaxQueryTime - yym30 := z.DecBinary() - _ = yym30 - if false { - } else if z.HasExtensions() && z.DecExt(yyv29) { - } else { - *((*int64)(yyv29)) = int64(r.DecodeInt(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv31 := &x.AllowStale - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*bool)(yyv31)) = r.DecodeBool() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv33 := &x.Prefix - yym34 := z.DecBinary() - _ = yym34 - if false { - } else { - *((*string)(yyv33)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv35 := &x.AuthToken - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - *((*string)(yyv35)) = r.DecodeString() - } - } - for { - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj20-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *ResolveACLTokenResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Token == nil { - r.EncodeNil() - } else { - x.Token.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Token")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Token == nil { - r.EncodeNil() - } else { - x.Token.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *ResolveACLTokenResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *ResolveACLTokenResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Token": - if r.TryDecodeAsNil() { - if 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.Index = 0 - } else { - yyv5 := &x.Index - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*uint64)(yyv5)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv7 := &x.LastContact - yym8 := z.DecBinary() - _ = yym8 - if false { - } else if z.HasExtensions() && z.DecExt(yyv7) { - } else { - *((*int64)(yyv7)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv9 := &x.KnownLeader - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - *((*bool)(yyv9)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *ResolveACLTokenResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Token != nil { - x.Token = nil - } - } else { - if x.Token == nil { - x.Token = new(ACLToken) - } - x.Token.CodecDecodeSelf(d) - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv13 := &x.Index - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*uint64)(yyv13)) = uint64(r.DecodeUint(64)) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv15 := &x.LastContact - yym16 := z.DecBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.DecExt(yyv15) { - } else { - *((*int64)(yyv15)) = int64(r.DecodeInt(64)) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv17 := &x.KnownLeader - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*bool)(yyv17)) = r.DecodeBool() - } - } - for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj11-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *ACLTokenDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.AccessorIDs == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - z.F.EncSliceStringV(x.AccessorIDs, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AccessorIDs")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.AccessorIDs == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - z.F.EncSliceStringV(x.AccessorIDs, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *ACLTokenDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *ACLTokenDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "AccessorIDs": - if r.TryDecodeAsNil() { - x.AccessorIDs = nil - } else { - yyv4 := &x.AccessorIDs - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - z.F.DecSliceStringX(yyv4, false, d) - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv10 := &x.AuthToken - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *ACLTokenDeleteRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AccessorIDs = nil - } else { - yyv13 := &x.AccessorIDs - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - z.F.DecSliceStringX(yyv13, false, d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv15 := &x.Region - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv17 := &x.Namespace - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv19 := &x.AuthToken - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *ACLTokenBootstrapRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [5]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(5) - } else { - yynn2 = 5 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Token == nil { - r.EncodeNil() - } else { - x.Token.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Token")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Token == nil { - r.EncodeNil() - } else { - x.Token.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.ResetIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("ResetIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.ResetIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *ACLTokenBootstrapRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *ACLTokenBootstrapRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Token": - if r.TryDecodeAsNil() { - if 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 { - yyv5 := &x.ResetIndex - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*uint64)(yyv5)) = uint64(r.DecodeUint(64)) - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv7 := &x.Region - yym8 := z.DecBinary() - _ = yym8 - if false { - } else { - *((*string)(yyv7)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv9 := &x.Namespace - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - *((*string)(yyv9)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv11 := &x.AuthToken - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - *((*string)(yyv11)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *ACLTokenBootstrapRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - if x.Token != nil { - x.Token = nil - } - } else { - if x.Token == nil { - x.Token = new(ACLToken) - } - x.Token.CodecDecodeSelf(d) - } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l - } else { - yyb13 = r.CheckBreak() - } - if yyb13 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.ResetIndex = 0 - } else { - yyv15 := &x.ResetIndex - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) - } - } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l - } else { - yyb13 = r.CheckBreak() - } - if yyb13 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv17 := &x.Region - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l - } else { - yyb13 = r.CheckBreak() - } - if yyb13 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv19 := &x.Namespace - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l - } else { - yyb13 = r.CheckBreak() - } - if yyb13 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv21 := &x.AuthToken - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - for { - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l - } else { - yyb13 = r.CheckBreak() - } - if yyb13 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj13-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *ACLTokenUpsertRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Tokens == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encSlicePtrtoACLToken(([]*ACLToken)(x.Tokens), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Tokens")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Tokens == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encSlicePtrtoACLToken(([]*ACLToken)(x.Tokens), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *ACLTokenUpsertRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *ACLTokenUpsertRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Tokens": - if r.TryDecodeAsNil() { - x.Tokens = nil - } else { - yyv4 := &x.Tokens - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decSlicePtrtoACLToken((*[]*ACLToken)(yyv4), d) - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv10 := &x.AuthToken - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *ACLTokenUpsertRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Tokens = nil - } else { - yyv13 := &x.Tokens - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePtrtoACLToken((*[]*ACLToken)(yyv13), d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv15 := &x.Region - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv17 := &x.Namespace - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv19 := &x.AuthToken - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x *ACLTokenUpsertResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [2]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(2) - } else { - yynn2 = 2 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if x.Tokens == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encSlicePtrtoACLToken(([]*ACLToken)(x.Tokens), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Tokens")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if x.Tokens == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encSlicePtrtoACLToken(([]*ACLToken)(x.Tokens), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey100) - r.EncodeString(codecSelferC_UTF8100, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd100) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd100) - } - } - } -} - -func (x *ACLTokenUpsertResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap100 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd100) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray100 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr100) - } - } -} - -func (x *ACLTokenUpsertResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey100) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue100) - switch yys3 { - case "Tokens": - if r.TryDecodeAsNil() { - x.Tokens = nil - } else { - yyv4 := &x.Tokens - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decSlicePtrtoACLToken((*[]*ACLToken)(yyv4), d) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv6 := &x.Index - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x *ACLTokenUpsertResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Tokens = nil - } else { - yyv9 := &x.Tokens - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - h.decSlicePtrtoACLToken((*[]*ACLToken)(yyv9), d) - } - } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - z.DecSendContainerState(codecSelfer_containerArrayEnd100) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv11 := &x.Index - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - *((*uint64)(yyv11)) = uint64(r.DecodeUint(64)) - } - } - for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem100) - z.DecStructFieldNotFound(yyj8-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd100) -} - -func (x codecSelfer100) encMapContextSlicestring(v map[Context][]string, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeMapStart(len(v)) - for yyk1, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerMapKey100) - yyk1.CodecEncodeSelf(e) - z.EncSendContainerState(codecSelfer_containerMapValue100) - if yyv1 == nil { - r.EncodeNil() - } else { - yym3 := z.EncBinary() - _ = yym3 - if false { - } else { - z.F.EncSliceStringV(yyv1, false, e) - } - } - } - z.EncSendContainerState(codecSelfer_containerMapEnd100) -} - -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 bool - if yybh1.MapValueReset { - yymg1 = true - } - if yyl1 > 0 { - for yyj1 := 0; yyj1 < yyl1; yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey100) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yyv2 := &yymk1 - yyv2.CodecDecodeSelf(d) - } - - if yymg1 { - yymv1 = yyv1[yymk1] - } else { - yymv1 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue100) - if r.TryDecodeAsNil() { - yymv1 = nil - } else { - yyv3 := &yymv1 - yym4 := z.DecBinary() - _ = yym4 - if false { - } else { - z.F.DecSliceStringX(yyv3, false, d) - } - } - - if yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } else if yyl1 < 0 { - for yyj1 := 0; !r.CheckBreak(); yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey100) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yyv5 := &yymk1 - yyv5.CodecDecodeSelf(d) - } - - if yymg1 { - yymv1 = yyv1[yymk1] - } else { - yymv1 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue100) - if r.TryDecodeAsNil() { - yymv1 = nil - } else { - yyv6 := &yymv1 - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - z.F.DecSliceStringX(yyv6, false, d) - } - } - - if yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } // else len==0: TODO: Should we clear map entries? - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x codecSelfer100) encSlicestring(v []string, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yym2 := z.EncBinary() - _ = yym2 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(yyv1)) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd100) -} - -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 if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]string, yyrl1) - } - } else { - yyv1 = make([]string, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - yyv1[yyj1] = "" - } else { - yyv2 := &yyv1[yyj1] - yym3 := z.DecBinary() - _ = yym3 - if false { - } else { - *((*string)(yyv2)) = r.DecodeString() - } - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, "") - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - yyv1[yyj1] = "" - } else { - yyv4 := &yyv1[yyj1] - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, "") // var yyz1 string - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - yyv1[yyj1] = "" - } else { - yyv6 := &yyv1[yyj1] - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []string{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -func (x codecSelfer100) encMapContextbool(v map[Context]bool, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeMapStart(len(v)) - for yyk1, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerMapKey100) - yyk1.CodecEncodeSelf(e) - z.EncSendContainerState(codecSelfer_containerMapValue100) - yym3 := z.EncBinary() - _ = yym3 - if false { - } else { - r.EncodeBool(bool(yyv1)) - } - } - z.EncSendContainerState(codecSelfer_containerMapEnd100) -} - -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 bool - if yybh1.MapValueReset { - } - if yyl1 > 0 { - for yyj1 := 0; yyj1 < yyl1; yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey100) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yyv2 := &yymk1 - yyv2.CodecDecodeSelf(d) - } - - if yymg1 { - yymv1 = yyv1[yymk1] - } - z.DecSendContainerState(codecSelfer_containerMapValue100) - if r.TryDecodeAsNil() { - yymv1 = false - } else { - yyv3 := &yymv1 - yym4 := z.DecBinary() - _ = yym4 - if false { - } else { - *((*bool)(yyv3)) = r.DecodeBool() - } - } - - if yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } else if yyl1 < 0 { - for yyj1 := 0; !r.CheckBreak(); yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey100) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yyv5 := &yymk1 - yyv5.CodecDecodeSelf(d) - } - - if yymg1 { - yymv1 = yyv1[yymk1] - } - z.DecSendContainerState(codecSelfer_containerMapValue100) - if r.TryDecodeAsNil() { - yymv1 = false - } else { - yyv6 := &yymv1 - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*bool)(yyv6)) = r.DecodeBool() - } - } - - if yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } // else len==0: TODO: Should we clear map entries? - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x codecSelfer100) encSlicePtrtoEvaluation(v []*Evaluation, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd100) -} - -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 if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]*Evaluation, yyrl1) - } - } else { - yyv1 = make([]*Evaluation, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = Evaluation{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(Evaluation) - } - yyw2 := yyv1[yyj1] - yyw2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, nil) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = Evaluation{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(Evaluation) - } - yyw3 := yyv1[yyj1] - yyw3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, nil) // var yyz1 *Evaluation - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = Evaluation{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(Evaluation) - } - yyw4 := yyv1[yyj1] - yyw4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []*Evaluation{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -func (x codecSelfer100) encSlicePtrtoAllocation(v []*Allocation, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd100) -} - -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 if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]*Allocation, yyrl1) - } - } else { - yyv1 = make([]*Allocation, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = Allocation{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(Allocation) - } - yyw2 := yyv1[yyj1] - yyw2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, nil) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = Allocation{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(Allocation) - } - yyw3 := yyv1[yyj1] - yyw3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, nil) // var yyz1 *Allocation - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = Allocation{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(Allocation) - } - yyw4 := yyv1[yyj1] - yyw4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []*Allocation{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -func (x codecSelfer100) encSlicePtrtoDeploymentStatusUpdate(v []*DeploymentStatusUpdate, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd100) -} - -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 if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]*DeploymentStatusUpdate, yyrl1) - } - } else { - yyv1 = make([]*DeploymentStatusUpdate, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = DeploymentStatusUpdate{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(DeploymentStatusUpdate) - } - yyw2 := yyv1[yyj1] - yyw2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, nil) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = DeploymentStatusUpdate{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(DeploymentStatusUpdate) - } - yyw3 := yyv1[yyj1] - yyw3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, nil) // var yyz1 *DeploymentStatusUpdate - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = DeploymentStatusUpdate{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(DeploymentStatusUpdate) - } - yyw4 := yyv1[yyj1] - yyw4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []*DeploymentStatusUpdate{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -func (x codecSelfer100) encSlicePtrtoServerMember(v []*ServerMember, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd100) -} - -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 if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]*ServerMember, yyrl1) - } - } else { - yyv1 = make([]*ServerMember, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = ServerMember{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(ServerMember) - } - yyw2 := yyv1[yyj1] - yyw2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, nil) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = ServerMember{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(ServerMember) - } - yyw3 := yyv1[yyj1] - yyw3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, nil) // var yyz1 *ServerMember - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = ServerMember{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(ServerMember) - } - yyw4 := yyv1[yyj1] - yyw4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []*ServerMember{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -func (x codecSelfer100) encnet_IP(v net.IP, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeStringBytes(codecSelferC_RAW100, []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, false) -} - -func (x codecSelfer100) encSlicePtrtoVaultAccessor(v []*VaultAccessor, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd100) -} - -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 if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]*VaultAccessor, yyrl1) - } - } else { - yyv1 = make([]*VaultAccessor, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = VaultAccessor{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(VaultAccessor) - } - yyw2 := yyv1[yyj1] - yyw2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, nil) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = VaultAccessor{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(VaultAccessor) - } - yyw3 := yyv1[yyj1] - yyw3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, nil) // var yyz1 *VaultAccessor - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = VaultAccessor{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(VaultAccessor) - } - yyw4 := yyv1[yyj1] - yyw4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []*VaultAccessor{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -func (x codecSelfer100) encSlicePtrtoNodeServerInfo(v []*NodeServerInfo, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd100) -} - -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 if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]*NodeServerInfo, yyrl1) - } - } else { - yyv1 = make([]*NodeServerInfo, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = NodeServerInfo{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(NodeServerInfo) - } - yyw2 := yyv1[yyj1] - yyw2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, nil) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = NodeServerInfo{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(NodeServerInfo) - } - yyw3 := yyv1[yyj1] - yyw3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, nil) // var yyz1 *NodeServerInfo - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = NodeServerInfo{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(NodeServerInfo) - } - yyw4 := yyv1[yyj1] - yyw4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []*NodeServerInfo{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -func (x codecSelfer100) encSlicePtrtoNodeListStub(v []*NodeListStub, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd100) -} - -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 if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]*NodeListStub, yyrl1) - } - } else { - yyv1 = make([]*NodeListStub, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = NodeListStub{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(NodeListStub) - } - yyw2 := yyv1[yyj1] - yyw2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, nil) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = NodeListStub{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(NodeListStub) - } - yyw3 := yyv1[yyj1] - yyw3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, nil) // var yyz1 *NodeListStub - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = NodeListStub{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(NodeListStub) - } - yyw4 := yyv1[yyj1] - yyw4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []*NodeListStub{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -func (x codecSelfer100) encSlicePtrtoJobListStub(v []*JobListStub, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd100) -} - -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 if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]*JobListStub, yyrl1) - } - } else { - yyv1 = make([]*JobListStub, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = JobListStub{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(JobListStub) - } - yyw2 := yyv1[yyj1] - yyw2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, nil) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = JobListStub{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(JobListStub) - } - yyw3 := yyv1[yyj1] - yyw3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, nil) // var yyz1 *JobListStub - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = JobListStub{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(JobListStub) - } - yyw4 := yyv1[yyj1] - yyw4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []*JobListStub{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -func (x codecSelfer100) encSlicePtrtoJob(v []*Job, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd100) -} - -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 if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]*Job, yyrl1) - } - } else { - yyv1 = make([]*Job, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = Job{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(Job) - } - yyw2 := yyv1[yyj1] - yyw2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, nil) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = Job{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(Job) - } - yyw3 := yyv1[yyj1] - yyw3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, nil) // var yyz1 *Job - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = Job{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(Job) - } - yyw4 := yyv1[yyj1] - yyw4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []*Job{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -func (x codecSelfer100) encSlicePtrtoJobDiff(v []*JobDiff, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if yyv1 == nil { - r.EncodeNil() - } else { - yym2 := z.EncBinary() - _ = yym2 - if false { - } else if z.HasExtensions() && z.EncExt(yyv1) { - } else { - z.EncFallback(yyv1) - } - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd100) -} - -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 if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]*JobDiff, yyrl1) - } - } else { - yyv1 = make([]*JobDiff, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = JobDiff{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(JobDiff) - } - yyw2 := yyv1[yyj1] - yym3 := z.DecBinary() - _ = yym3 - if false { - } else if z.HasExtensions() && z.DecExt(yyw2) { - } else { - z.DecFallback(yyw2, false) - } - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, nil) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = JobDiff{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(JobDiff) - } - yyw4 := yyv1[yyj1] - yym5 := z.DecBinary() - _ = yym5 - if false { - } else if z.HasExtensions() && z.DecExt(yyw4) { - } else { - z.DecFallback(yyw4, false) - } - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, nil) // var yyz1 *JobDiff - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = JobDiff{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(JobDiff) - } - yyw6 := yyv1[yyj1] - yym7 := z.DecBinary() - _ = yym7 - if false { - } else if z.HasExtensions() && z.DecExt(yyw6) { - } else { - z.DecFallback(yyw6, false) - } - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []*JobDiff{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -func (x codecSelfer100) encMapstringPtrtoAllocMetric(v map[string]*AllocMetric, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeMapStart(len(v)) - for yyk1, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerMapKey100) - yym2 := z.EncBinary() - _ = yym2 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(yyk1)) - } - z.EncSendContainerState(codecSelfer_containerMapValue100) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerMapEnd100) -} - -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, yyms1, yymok1 bool - if yybh1.MapValueReset { - yymg1 = true - } - if yyl1 > 0 { - for yyj1 := 0; yyj1 < yyl1; yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey100) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yyv2 := &yymk1 - yym3 := z.DecBinary() - _ = yym3 - if false { - } else { - *((*string)(yyv2)) = r.DecodeString() - } - } - - yyms1 = true - if yymg1 { - yymv1, yymok1 = yyv1[yymk1] - if yymok1 { - yyms1 = false - } - } else { - yymv1 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue100) - if r.TryDecodeAsNil() { - if yymv1 != nil { - *yymv1 = AllocMetric{} - } - } else { - if yymv1 == nil { - yymv1 = new(AllocMetric) - } - yymv1.CodecDecodeSelf(d) - } - - if yyms1 && yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } else if yyl1 < 0 { - for yyj1 := 0; !r.CheckBreak(); yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey100) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yyv5 := &yymk1 - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*string)(yyv5)) = r.DecodeString() - } - } - - yyms1 = true - if yymg1 { - yymv1, yymok1 = yyv1[yymk1] - if yymok1 { - yyms1 = false - } - } else { - yymv1 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue100) - if r.TryDecodeAsNil() { - if yymv1 != nil { - *yymv1 = AllocMetric{} - } - } else { - if yymv1 == nil { - yymv1 = new(AllocMetric) - } - yymv1.CodecDecodeSelf(d) - } - - if yyms1 && yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } // else len==0: TODO: Should we clear map entries? - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x codecSelfer100) encSlicePtrtoAllocListStub(v []*AllocListStub, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd100) -} - -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 if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]*AllocListStub, yyrl1) - } - } else { - yyv1 = make([]*AllocListStub, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = AllocListStub{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(AllocListStub) - } - yyw2 := yyv1[yyj1] - yyw2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, nil) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = AllocListStub{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(AllocListStub) - } - yyw3 := yyv1[yyj1] - yyw3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, nil) // var yyz1 *AllocListStub - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = AllocListStub{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(AllocListStub) - } - yyw4 := yyv1[yyj1] - yyw4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []*AllocListStub{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -func (x codecSelfer100) encSlicePtrtoDeployment(v []*Deployment, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd100) -} - -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 if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]*Deployment, yyrl1) - } - } else { - yyv1 = make([]*Deployment, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = Deployment{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(Deployment) - } - yyw2 := yyv1[yyj1] - yyw2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, nil) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = Deployment{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(Deployment) - } - yyw3 := yyv1[yyj1] - yyw3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, nil) // var yyz1 *Deployment - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = Deployment{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(Deployment) - } - yyw4 := yyv1[yyj1] - yyw4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []*Deployment{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -func (x codecSelfer100) encNetworks(v Networks, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd100) -} - -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 if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]*NetworkResource, yyrl1) - } - } else { - yyv1 = make([]*NetworkResource, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = NetworkResource{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(NetworkResource) - } - yyw2 := yyv1[yyj1] - yyw2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, nil) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = NetworkResource{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(NetworkResource) - } - yyw3 := yyv1[yyj1] - yyw3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, nil) // var yyz1 *NetworkResource - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = NetworkResource{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(NetworkResource) - } - yyw4 := yyv1[yyj1] - yyw4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []*NetworkResource{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -func (x codecSelfer100) encSlicePort(v []Port, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - yy2 := &yyv1 - yy2.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd100) -} - -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 if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]Port, yyrl1) - } - } else { - yyv1 = make([]Port, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - yyv1[yyj1] = Port{} - } else { - yyv2 := &yyv1[yyj1] - yyv2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, Port{}) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - yyv1[yyj1] = Port{} - } else { - yyv3 := &yyv1[yyj1] - yyv3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, Port{}) // var yyz1 Port - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - yyv1[yyj1] = Port{} - } else { - yyv4 := &yyv1[yyj1] - yyv4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []Port{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -func (x codecSelfer100) encSlicePtrtoConstraint(v []*Constraint, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd100) -} - -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 if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]*Constraint, yyrl1) - } - } else { - yyv1 = make([]*Constraint, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = Constraint{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(Constraint) - } - yyw2 := yyv1[yyj1] - yyw2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, nil) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = Constraint{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(Constraint) - } - yyw3 := yyv1[yyj1] - yyw3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, nil) // var yyz1 *Constraint - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = Constraint{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(Constraint) - } - yyw4 := yyv1[yyj1] - yyw4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []*Constraint{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -func (x codecSelfer100) encSlicePtrtoTaskGroup(v []*TaskGroup, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd100) -} - -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 if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]*TaskGroup, yyrl1) - } - } else { - yyv1 = make([]*TaskGroup, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = TaskGroup{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(TaskGroup) - } - yyw2 := yyv1[yyj1] - yyw2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, nil) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = TaskGroup{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(TaskGroup) - } - yyw3 := yyv1[yyj1] - yyw3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, nil) // var yyz1 *TaskGroup - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = TaskGroup{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(TaskGroup) - } - yyw4 := yyv1[yyj1] - yyw4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []*TaskGroup{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -func (x codecSelfer100) encMapstringTaskGroupSummary(v map[string]TaskGroupSummary, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeMapStart(len(v)) - for yyk1, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerMapKey100) - yym2 := z.EncBinary() - _ = yym2 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(yyk1)) - } - z.EncSendContainerState(codecSelfer_containerMapValue100) - yy3 := &yyv1 - yy3.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x codecSelfer100) decMapstringTaskGroupSummary(v *map[string]TaskGroupSummary, d *codec1978.Decoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv1 := *v - yyl1 := r.ReadMapStart() - yybh1 := z.DecBasicHandle() - if yyv1 == nil { - yyrl1, _ := z.DecInferLen(yyl1, yybh1.MaxInitLen, 64) - yyv1 = make(map[string]TaskGroupSummary, yyrl1) - *v = yyv1 - } - var yymk1 string - var yymv1 TaskGroupSummary - var yymg1 bool - if yybh1.MapValueReset { - yymg1 = true - } - if yyl1 > 0 { - for yyj1 := 0; yyj1 < yyl1; yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey100) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yyv2 := &yymk1 - yym3 := z.DecBinary() - _ = yym3 - if false { - } else { - *((*string)(yyv2)) = r.DecodeString() - } - } - - if yymg1 { - yymv1 = yyv1[yymk1] - } else { - yymv1 = TaskGroupSummary{} - } - z.DecSendContainerState(codecSelfer_containerMapValue100) - if r.TryDecodeAsNil() { - yymv1 = TaskGroupSummary{} - } else { - yyv4 := &yymv1 - yyv4.CodecDecodeSelf(d) - } - - if yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } else if yyl1 < 0 { - for yyj1 := 0; !r.CheckBreak(); yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey100) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yyv5 := &yymk1 - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*string)(yyv5)) = r.DecodeString() - } - } - - if yymg1 { - yymv1 = yyv1[yymk1] - } else { - yymv1 = TaskGroupSummary{} - } - z.DecSendContainerState(codecSelfer_containerMapValue100) - if r.TryDecodeAsNil() { - yymv1 = TaskGroupSummary{} - } else { - yyv7 := &yymv1 - yyv7.CodecDecodeSelf(d) - } - - if yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } // else len==0: TODO: Should we clear map entries? - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x codecSelfer100) encSlicePtrtoTask(v []*Task, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd100) -} - -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 if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]*Task, yyrl1) - } - } else { - yyv1 = make([]*Task, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = Task{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(Task) - } - yyw2 := yyv1[yyj1] - yyw2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, nil) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = Task{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(Task) - } - yyw3 := yyv1[yyj1] - yyw3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, nil) // var yyz1 *Task - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = Task{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(Task) - } - yyw4 := yyv1[yyj1] - yyw4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []*Task{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -func (x codecSelfer100) encMapstringSlicestring(v map[string][]string, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeMapStart(len(v)) - for yyk1, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerMapKey100) - yym2 := z.EncBinary() - _ = yym2 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(yyk1)) - } - z.EncSendContainerState(codecSelfer_containerMapValue100) - if yyv1 == nil { - r.EncodeNil() - } else { - yym3 := z.EncBinary() - _ = yym3 - if false { - } else { - z.F.EncSliceStringV(yyv1, false, e) - } - } - } - z.EncSendContainerState(codecSelfer_containerMapEnd100) -} - -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 bool - if yybh1.MapValueReset { - yymg1 = true - } - if yyl1 > 0 { - for yyj1 := 0; yyj1 < yyl1; yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey100) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yyv2 := &yymk1 - yym3 := z.DecBinary() - _ = yym3 - if false { - } else { - *((*string)(yyv2)) = r.DecodeString() - } - } - - if yymg1 { - yymv1 = yyv1[yymk1] - } else { - yymv1 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue100) - if r.TryDecodeAsNil() { - yymv1 = nil - } else { - yyv4 := &yymv1 - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - z.F.DecSliceStringX(yyv4, false, d) - } - } - - if yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } else if yyl1 < 0 { - for yyj1 := 0; !r.CheckBreak(); yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey100) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yyv6 := &yymk1 - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - - if yymg1 { - yymv1 = yyv1[yymk1] - } else { - yymv1 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue100) - if r.TryDecodeAsNil() { - yymv1 = nil - } else { - yyv8 := &yymv1 - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - z.F.DecSliceStringX(yyv8, false, d) - } - } - - if yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } // else len==0: TODO: Should we clear map entries? - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x codecSelfer100) encSlicePtrtoServiceCheck(v []*ServiceCheck, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd100) -} - -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 if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]*ServiceCheck, yyrl1) - } - } else { - yyv1 = make([]*ServiceCheck, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = ServiceCheck{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(ServiceCheck) - } - yyw2 := yyv1[yyj1] - yyw2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, nil) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = ServiceCheck{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(ServiceCheck) - } - yyw3 := yyv1[yyj1] - yyw3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, nil) // var yyz1 *ServiceCheck - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = ServiceCheck{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(ServiceCheck) - } - yyw4 := yyv1[yyj1] - yyw4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []*ServiceCheck{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -func (x codecSelfer100) encSlicePtrtoService(v []*Service, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd100) -} - -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 if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]*Service, yyrl1) - } - } else { - yyv1 = make([]*Service, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = Service{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(Service) - } - yyw2 := yyv1[yyj1] - yyw2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, nil) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = Service{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(Service) - } - yyw3 := yyv1[yyj1] - yyw3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, nil) // var yyz1 *Service - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = Service{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(Service) - } - yyw4 := yyv1[yyj1] - yyw4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []*Service{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -func (x codecSelfer100) encSlicePtrtoTemplate(v []*Template, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd100) -} - -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 if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]*Template, yyrl1) - } - } else { - yyv1 = make([]*Template, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = Template{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(Template) - } - yyw2 := yyv1[yyj1] - yyw2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, nil) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = Template{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(Template) - } - yyw3 := yyv1[yyj1] - yyw3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, nil) // var yyz1 *Template - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = Template{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(Template) - } - yyw4 := yyv1[yyj1] - yyw4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []*Template{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -func (x codecSelfer100) encSlicePtrtoTaskArtifact(v []*TaskArtifact, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd100) -} - -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 if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]*TaskArtifact, yyrl1) - } - } else { - yyv1 = make([]*TaskArtifact, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = TaskArtifact{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(TaskArtifact) - } - yyw2 := yyv1[yyj1] - yyw2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, nil) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = TaskArtifact{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(TaskArtifact) - } - yyw3 := yyv1[yyj1] - yyw3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, nil) // var yyz1 *TaskArtifact - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = TaskArtifact{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(TaskArtifact) - } - yyw4 := yyv1[yyj1] - yyw4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []*TaskArtifact{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -func (x codecSelfer100) encSlicePtrtoTaskEvent(v []*TaskEvent, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd100) -} - -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 if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]*TaskEvent, yyrl1) - } - } else { - yyv1 = make([]*TaskEvent, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = TaskEvent{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(TaskEvent) - } - yyw2 := yyv1[yyj1] - yyw2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, nil) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = TaskEvent{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(TaskEvent) - } - yyw3 := yyv1[yyj1] - yyw3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, nil) // var yyz1 *TaskEvent - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = TaskEvent{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(TaskEvent) - } - yyw4 := yyv1[yyj1] - yyw4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []*TaskEvent{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -func (x codecSelfer100) encMapstringPtrtoDeploymentState(v map[string]*DeploymentState, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeMapStart(len(v)) - for yyk1, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerMapKey100) - yym2 := z.EncBinary() - _ = yym2 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(yyk1)) - } - z.EncSendContainerState(codecSelfer_containerMapValue100) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerMapEnd100) -} - -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, yyms1, yymok1 bool - if yybh1.MapValueReset { - yymg1 = true - } - if yyl1 > 0 { - for yyj1 := 0; yyj1 < yyl1; yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey100) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yyv2 := &yymk1 - yym3 := z.DecBinary() - _ = yym3 - if false { - } else { - *((*string)(yyv2)) = r.DecodeString() - } - } - - yyms1 = true - if yymg1 { - yymv1, yymok1 = yyv1[yymk1] - if yymok1 { - yyms1 = false - } - } else { - yymv1 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue100) - if r.TryDecodeAsNil() { - if yymv1 != nil { - *yymv1 = DeploymentState{} - } - } else { - if yymv1 == nil { - yymv1 = new(DeploymentState) - } - yymv1.CodecDecodeSelf(d) - } - - if yyms1 && yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } else if yyl1 < 0 { - for yyj1 := 0; !r.CheckBreak(); yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey100) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yyv5 := &yymk1 - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*string)(yyv5)) = r.DecodeString() - } - } - - yyms1 = true - if yymg1 { - yymv1, yymok1 = yyv1[yymk1] - if yymok1 { - yyms1 = false - } - } else { - yymv1 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue100) - if r.TryDecodeAsNil() { - if yymv1 != nil { - *yymv1 = DeploymentState{} - } - } else { - if yymv1 == nil { - yymv1 = new(DeploymentState) - } - yymv1.CodecDecodeSelf(d) - } - - if yyms1 && yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } // else len==0: TODO: Should we clear map entries? - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x codecSelfer100) encMapstringPtrtoResources(v map[string]*Resources, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeMapStart(len(v)) - for yyk1, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerMapKey100) - yym2 := z.EncBinary() - _ = yym2 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(yyk1)) - } - z.EncSendContainerState(codecSelfer_containerMapValue100) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerMapEnd100) -} - -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, yyms1, yymok1 bool - if yybh1.MapValueReset { - yymg1 = true - } - if yyl1 > 0 { - for yyj1 := 0; yyj1 < yyl1; yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey100) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yyv2 := &yymk1 - yym3 := z.DecBinary() - _ = yym3 - if false { - } else { - *((*string)(yyv2)) = r.DecodeString() - } - } - - yyms1 = true - if yymg1 { - yymv1, yymok1 = yyv1[yymk1] - if yymok1 { - yyms1 = false - } - } else { - yymv1 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue100) - if r.TryDecodeAsNil() { - if yymv1 != nil { - *yymv1 = Resources{} - } - } else { - if yymv1 == nil { - yymv1 = new(Resources) - } - yymv1.CodecDecodeSelf(d) - } - - if yyms1 && yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } else if yyl1 < 0 { - for yyj1 := 0; !r.CheckBreak(); yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey100) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yyv5 := &yymk1 - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*string)(yyv5)) = r.DecodeString() - } - } - - yyms1 = true - if yymg1 { - yymv1, yymok1 = yyv1[yymk1] - if yymok1 { - yyms1 = false - } - } else { - yymv1 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue100) - if r.TryDecodeAsNil() { - if yymv1 != nil { - *yymv1 = Resources{} - } - } else { - if yymv1 == nil { - yymv1 = new(Resources) - } - yymv1.CodecDecodeSelf(d) - } - - if yyms1 && yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } // else len==0: TODO: Should we clear map entries? - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x codecSelfer100) encMapstringPtrtoTaskState(v map[string]*TaskState, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeMapStart(len(v)) - for yyk1, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerMapKey100) - yym2 := z.EncBinary() - _ = yym2 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(yyk1)) - } - z.EncSendContainerState(codecSelfer_containerMapValue100) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerMapEnd100) -} - -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, yyms1, yymok1 bool - if yybh1.MapValueReset { - yymg1 = true - } - if yyl1 > 0 { - for yyj1 := 0; yyj1 < yyl1; yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey100) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yyv2 := &yymk1 - yym3 := z.DecBinary() - _ = yym3 - if false { - } else { - *((*string)(yyv2)) = r.DecodeString() - } - } - - yyms1 = true - if yymg1 { - yymv1, yymok1 = yyv1[yymk1] - if yymok1 { - yyms1 = false - } - } else { - yymv1 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue100) - if r.TryDecodeAsNil() { - if yymv1 != nil { - *yymv1 = TaskState{} - } - } else { - if yymv1 == nil { - yymv1 = new(TaskState) - } - yymv1.CodecDecodeSelf(d) - } - - if yyms1 && yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } else if yyl1 < 0 { - for yyj1 := 0; !r.CheckBreak(); yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey100) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yyv5 := &yymk1 - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*string)(yyv5)) = r.DecodeString() - } - } - - yyms1 = true - if yymg1 { - yymv1, yymok1 = yyv1[yymk1] - if yymok1 { - yyms1 = false - } - } else { - yymv1 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue100) - if r.TryDecodeAsNil() { - if yymv1 != nil { - *yymv1 = TaskState{} - } - } else { - if yymv1 == nil { - yymv1 = new(TaskState) - } - yymv1.CodecDecodeSelf(d) - } - - if yyms1 && yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } // else len==0: TODO: Should we clear map entries? - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x codecSelfer100) encMapstringSlicePtrtoAllocation(v map[string][]*Allocation, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeMapStart(len(v)) - for yyk1, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerMapKey100) - yym2 := z.EncBinary() - _ = yym2 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(yyk1)) - } - z.EncSendContainerState(codecSelfer_containerMapValue100) - if yyv1 == nil { - r.EncodeNil() - } else { - yym3 := z.EncBinary() - _ = yym3 - if false { - } else { - h.encSlicePtrtoAllocation(([]*Allocation)(yyv1), e) - } - } - } - z.EncSendContainerState(codecSelfer_containerMapEnd100) -} - -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 bool - if yybh1.MapValueReset { - yymg1 = true - } - if yyl1 > 0 { - for yyj1 := 0; yyj1 < yyl1; yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey100) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yyv2 := &yymk1 - yym3 := z.DecBinary() - _ = yym3 - if false { - } else { - *((*string)(yyv2)) = r.DecodeString() - } - } - - if yymg1 { - yymv1 = yyv1[yymk1] - } else { - yymv1 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue100) - if r.TryDecodeAsNil() { - yymv1 = nil - } else { - yyv4 := &yymv1 - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decSlicePtrtoAllocation((*[]*Allocation)(yyv4), d) - } - } - - if yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } else if yyl1 < 0 { - for yyj1 := 0; !r.CheckBreak(); yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey100) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yyv6 := &yymk1 - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - - if yymg1 { - yymv1 = yyv1[yymk1] - } else { - yymv1 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue100) - if r.TryDecodeAsNil() { - yymv1 = nil - } else { - yyv8 := &yymv1 - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - h.decSlicePtrtoAllocation((*[]*Allocation)(yyv8), d) - } - } - - if yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } // else len==0: TODO: Should we clear map entries? - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x codecSelfer100) encMapstringPtrtoDesiredUpdates(v map[string]*DesiredUpdates, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeMapStart(len(v)) - for yyk1, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerMapKey100) - yym2 := z.EncBinary() - _ = yym2 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(yyk1)) - } - z.EncSendContainerState(codecSelfer_containerMapValue100) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerMapEnd100) -} - -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, yyms1, yymok1 bool - if yybh1.MapValueReset { - yymg1 = true - } - if yyl1 > 0 { - for yyj1 := 0; yyj1 < yyl1; yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey100) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yyv2 := &yymk1 - yym3 := z.DecBinary() - _ = yym3 - if false { - } else { - *((*string)(yyv2)) = r.DecodeString() - } - } - - yyms1 = true - if yymg1 { - yymv1, yymok1 = yyv1[yymk1] - if yymok1 { - yyms1 = false - } - } else { - yymv1 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue100) - if r.TryDecodeAsNil() { - if yymv1 != nil { - *yymv1 = DesiredUpdates{} - } - } else { - if yymv1 == nil { - yymv1 = new(DesiredUpdates) - } - yymv1.CodecDecodeSelf(d) - } - - if yyms1 && yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } else if yyl1 < 0 { - for yyj1 := 0; !r.CheckBreak(); yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey100) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yyv5 := &yymk1 - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*string)(yyv5)) = r.DecodeString() - } - } - - yyms1 = true - if yymg1 { - yymv1, yymok1 = yyv1[yymk1] - if yymok1 { - yyms1 = false - } - } else { - yymv1 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue100) - if r.TryDecodeAsNil() { - if yymv1 != nil { - *yymv1 = DesiredUpdates{} - } - } else { - if yymv1 == nil { - yymv1 = new(DesiredUpdates) - } - yymv1.CodecDecodeSelf(d) - } - - if yyms1 && yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } // else len==0: TODO: Should we clear map entries? - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x codecSelfer100) encSlicePtrtoACLPolicyListStub(v []*ACLPolicyListStub, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd100) -} - -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 if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]*ACLPolicyListStub, yyrl1) - } - } else { - yyv1 = make([]*ACLPolicyListStub, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = ACLPolicyListStub{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(ACLPolicyListStub) - } - yyw2 := yyv1[yyj1] - yyw2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, nil) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = ACLPolicyListStub{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(ACLPolicyListStub) - } - yyw3 := yyv1[yyj1] - yyw3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, nil) // var yyz1 *ACLPolicyListStub - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = ACLPolicyListStub{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(ACLPolicyListStub) - } - yyw4 := yyv1[yyj1] - yyw4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []*ACLPolicyListStub{} - 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.EncodeMapStart(len(v)) - for yyk1, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerMapKey100) - yym2 := z.EncBinary() - _ = yym2 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(yyk1)) - } - z.EncSendContainerState(codecSelfer_containerMapValue100) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerMapEnd100) -} - -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, yyms1, yymok1 bool - if yybh1.MapValueReset { - yymg1 = true - } - if yyl1 > 0 { - for yyj1 := 0; yyj1 < yyl1; yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey100) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yyv2 := &yymk1 - yym3 := z.DecBinary() - _ = yym3 - if false { - } else { - *((*string)(yyv2)) = r.DecodeString() - } - } - - yyms1 = true - if yymg1 { - yymv1, yymok1 = yyv1[yymk1] - if yymok1 { - yyms1 = false - } - } else { - yymv1 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue100) - if r.TryDecodeAsNil() { - if yymv1 != nil { - *yymv1 = ACLPolicy{} - } - } else { - if yymv1 == nil { - yymv1 = new(ACLPolicy) - } - yymv1.CodecDecodeSelf(d) - } - - if yyms1 && yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } else if yyl1 < 0 { - for yyj1 := 0; !r.CheckBreak(); yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey100) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yyv5 := &yymk1 - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*string)(yyv5)) = r.DecodeString() - } - } - - yyms1 = true - if yymg1 { - yymv1, yymok1 = yyv1[yymk1] - if yymok1 { - yyms1 = false - } - } else { - yymv1 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue100) - if r.TryDecodeAsNil() { - if yymv1 != nil { - *yymv1 = ACLPolicy{} - } - } else { - if yymv1 == nil { - yymv1 = new(ACLPolicy) - } - yymv1.CodecDecodeSelf(d) - } - - if yyms1 && yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } // else len==0: TODO: Should we clear map entries? - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x codecSelfer100) encSlicePtrtoACLPolicy(v []*ACLPolicy, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd100) -} - -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 if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]*ACLPolicy, yyrl1) - } - } else { - yyv1 = make([]*ACLPolicy, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = ACLPolicy{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(ACLPolicy) - } - yyw2 := yyv1[yyj1] - yyw2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, nil) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = ACLPolicy{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(ACLPolicy) - } - yyw3 := yyv1[yyj1] - yyw3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, nil) // var yyz1 *ACLPolicy - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = ACLPolicy{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(ACLPolicy) - } - yyw4 := yyv1[yyj1] - yyw4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []*ACLPolicy{} - 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.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd100) -} - -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 if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]*ACLTokenListStub, yyrl1) - } - } else { - yyv1 = make([]*ACLTokenListStub, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = ACLTokenListStub{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(ACLTokenListStub) - } - yyw2 := yyv1[yyj1] - yyw2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, nil) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = ACLTokenListStub{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(ACLTokenListStub) - } - yyw3 := yyv1[yyj1] - yyw3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, nil) // var yyz1 *ACLTokenListStub - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = ACLTokenListStub{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(ACLTokenListStub) - } - yyw4 := yyv1[yyj1] - yyw4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []*ACLTokenListStub{} - 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.EncodeMapStart(len(v)) - for yyk1, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerMapKey100) - yym2 := z.EncBinary() - _ = yym2 - if false { - } else { - r.EncodeString(codecSelferC_UTF8100, string(yyk1)) - } - z.EncSendContainerState(codecSelfer_containerMapValue100) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerMapEnd100) -} - -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, yyms1, yymok1 bool - if yybh1.MapValueReset { - yymg1 = true - } - if yyl1 > 0 { - for yyj1 := 0; yyj1 < yyl1; yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey100) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yyv2 := &yymk1 - yym3 := z.DecBinary() - _ = yym3 - if false { - } else { - *((*string)(yyv2)) = r.DecodeString() - } - } - - yyms1 = true - if yymg1 { - yymv1, yymok1 = yyv1[yymk1] - if yymok1 { - yyms1 = false - } - } else { - yymv1 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue100) - if r.TryDecodeAsNil() { - if yymv1 != nil { - *yymv1 = ACLToken{} - } - } else { - if yymv1 == nil { - yymv1 = new(ACLToken) - } - yymv1.CodecDecodeSelf(d) - } - - if yyms1 && yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } else if yyl1 < 0 { - for yyj1 := 0; !r.CheckBreak(); yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey100) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yyv5 := &yymk1 - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*string)(yyv5)) = r.DecodeString() - } - } - - yyms1 = true - if yymg1 { - yymv1, yymok1 = yyv1[yymk1] - if yymok1 { - yyms1 = false - } - } else { - yymv1 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue100) - if r.TryDecodeAsNil() { - if yymv1 != nil { - *yymv1 = ACLToken{} - } - } else { - if yymv1 == nil { - yymv1 = new(ACLToken) - } - yymv1.CodecDecodeSelf(d) - } - - if yyms1 && yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } // else len==0: TODO: Should we clear map entries? - z.DecSendContainerState(codecSelfer_containerMapEnd100) -} - -func (x codecSelfer100) encSlicePtrtoACLToken(v []*ACLToken, e *codec1978.Encoder) { - var h codecSelfer100 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem100) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd100) -} - -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 if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]*ACLToken, yyrl1) - } - } else { - yyv1 = make([]*ACLToken, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = ACLToken{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(ACLToken) - } - yyw2 := yyv1[yyj1] - yyw2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, nil) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = ACLToken{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(ACLToken) - } - yyw3 := yyv1[yyj1] - yyw3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, nil) // var yyz1 *ACLToken - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = ACLToken{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(ACLToken) - } - yyw4 := yyv1[yyj1] - yyw4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []*ACLToken{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} diff --git a/nomad/structs/structs_ent.generated.go b/nomad/structs/structs_ent.generated.go deleted file mode 100644 index 535a70845e0..00000000000 --- a/nomad/structs/structs_ent.generated.go +++ /dev/null @@ -1,11587 +0,0 @@ -// +build ent - -// ************************************************************ -// DO NOT EDIT. -// THIS FILE IS AUTO-GENERATED BY codecgen. -// ************************************************************ - -package structs - -import ( - "errors" - "fmt" - codec1978 "github.com/ugorji/go/codec" - "reflect" - "runtime" - time "time" -) - -const ( - // ----- content types ---- - codecSelferC_UTF8102 = 1 - codecSelferC_RAW102 = 0 - // ----- value types used ---- - codecSelferValueTypeArray102 = 10 - codecSelferValueTypeMap102 = 9 - // ----- containerStateValues ---- - codecSelfer_containerMapKey102 = 2 - codecSelfer_containerMapValue102 = 3 - codecSelfer_containerMapEnd102 = 4 - codecSelfer_containerArrayElem102 = 6 - codecSelfer_containerArrayEnd102 = 7 -) - -var ( - codecSelferBitsize102 = uint8(reflect.TypeOf(uint(0)).Bits()) - codecSelferOnlyMapOrArrayEncodeToStructErr102 = errors.New(`only encoded map or array can be decoded into a struct`) -) - -type codecSelfer102 struct{} - -func init() { - if codec1978.GenVersion != 5 { - _, file, _, _ := runtime.Caller(0) - err := fmt.Errorf("codecgen version mismatch: current: %v, need %v. Re-generate file: %v", - 5, codec1978.GenVersion, file) - panic(err) - } - if false { // reference the types, but skip this branch at build/run time - var v0 time.Duration - _ = v0 - } -} - -func (x *SentinelPolicy) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(8) - } else { - yynn2 = 8 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Name)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Name")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Name)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Description)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Description")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Description)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Scope)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Scope")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Scope)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.EnforcementLevel)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("EnforcementLevel")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.EnforcementLevel)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Policy)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Policy")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Policy)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - if x.Hash == nil { - r.EncodeNil() - } else { - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW102, []byte(x.Hash)) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Hash")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - if x.Hash == nil { - r.EncodeNil() - } else { - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW102, []byte(x.Hash)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("CreateIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("ModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd102) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd102) - } - } - } -} - -func (x *SentinelPolicy) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap102 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd102) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray102 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr102) - } - } -} - -func (x *SentinelPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey102) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue102) - switch yys3 { - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv4 := &x.Name - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Description": - if r.TryDecodeAsNil() { - x.Description = "" - } else { - yyv6 := &x.Description - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Scope": - if r.TryDecodeAsNil() { - x.Scope = "" - } else { - yyv8 := &x.Scope - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "EnforcementLevel": - if r.TryDecodeAsNil() { - x.EnforcementLevel = "" - } else { - yyv10 := &x.EnforcementLevel - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - case "Policy": - if r.TryDecodeAsNil() { - x.Policy = "" - } else { - yyv12 := &x.Policy - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*string)(yyv12)) = r.DecodeString() - } - } - case "Hash": - if r.TryDecodeAsNil() { - x.Hash = nil - } else { - yyv14 := &x.Hash - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *yyv14 = r.DecodeBytes(*(*[]byte)(yyv14), false, false) - } - } - case "CreateIndex": - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv16 := &x.CreateIndex - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*uint64)(yyv16)) = uint64(r.DecodeUint(64)) - } - } - case "ModifyIndex": - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv18 := &x.ModifyIndex - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*uint64)(yyv18)) = uint64(r.DecodeUint(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd102) -} - -func (x *SentinelPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj20 int - var yyb20 bool - var yyhl20 bool = l >= 0 - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv21 := &x.Name - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Description = "" - } else { - yyv23 := &x.Description - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Scope = "" - } else { - yyv25 := &x.Scope - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*string)(yyv25)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.EnforcementLevel = "" - } else { - yyv27 := &x.EnforcementLevel - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*string)(yyv27)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Policy = "" - } else { - yyv29 := &x.Policy - yym30 := z.DecBinary() - _ = yym30 - if false { - } else { - *((*string)(yyv29)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Hash = nil - } else { - yyv31 := &x.Hash - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *yyv31 = r.DecodeBytes(*(*[]byte)(yyv31), false, false) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv33 := &x.CreateIndex - yym34 := z.DecBinary() - _ = yym34 - if false { - } else { - *((*uint64)(yyv33)) = uint64(r.DecodeUint(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv35 := &x.ModifyIndex - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - *((*uint64)(yyv35)) = uint64(r.DecodeUint(64)) - } - } - for { - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - z.DecStructFieldNotFound(yyj20-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd102) -} - -func (x *SentinelPolicyListStub) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [7]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(7) - } else { - yynn2 = 7 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Name)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Name")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Name)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Description)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Description")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Description)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Scope)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Scope")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Scope)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.EnforcementLevel)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("EnforcementLevel")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.EnforcementLevel)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - if x.Hash == nil { - r.EncodeNil() - } else { - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW102, []byte(x.Hash)) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Hash")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - if x.Hash == nil { - r.EncodeNil() - } else { - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW102, []byte(x.Hash)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("CreateIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("ModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd102) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd102) - } - } - } -} - -func (x *SentinelPolicyListStub) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap102 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd102) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray102 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr102) - } - } -} - -func (x *SentinelPolicyListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey102) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue102) - switch yys3 { - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv4 := &x.Name - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Description": - if r.TryDecodeAsNil() { - x.Description = "" - } else { - yyv6 := &x.Description - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Scope": - if r.TryDecodeAsNil() { - x.Scope = "" - } else { - yyv8 := &x.Scope - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "EnforcementLevel": - if r.TryDecodeAsNil() { - x.EnforcementLevel = "" - } else { - yyv10 := &x.EnforcementLevel - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - case "Hash": - if r.TryDecodeAsNil() { - x.Hash = nil - } else { - yyv12 := &x.Hash - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *yyv12 = r.DecodeBytes(*(*[]byte)(yyv12), false, false) - } - } - case "CreateIndex": - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv14 := &x.CreateIndex - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*uint64)(yyv14)) = uint64(r.DecodeUint(64)) - } - } - case "ModifyIndex": - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv16 := &x.ModifyIndex - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*uint64)(yyv16)) = uint64(r.DecodeUint(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd102) -} - -func (x *SentinelPolicyListStub) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv19 := &x.Name - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Description = "" - } else { - yyv21 := &x.Description - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Scope = "" - } else { - yyv23 := &x.Scope - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.EnforcementLevel = "" - } else { - yyv25 := &x.EnforcementLevel - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*string)(yyv25)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Hash = nil - } else { - yyv27 := &x.Hash - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *yyv27 = r.DecodeBytes(*(*[]byte)(yyv27), false, false) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv29 := &x.CreateIndex - yym30 := z.DecBinary() - _ = yym30 - if false { - } else { - *((*uint64)(yyv29)) = uint64(r.DecodeUint(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv31 := &x.ModifyIndex - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*uint64)(yyv31)) = uint64(r.DecodeUint(64)) - } - } - for { - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - z.DecStructFieldNotFound(yyj18-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd102) -} - -func (x *SentinelPolicyListRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [7]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(7) - } else { - yynn2 = 7 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd102) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd102) - } - } - } -} - -func (x *SentinelPolicyListRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap102 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd102) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray102 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr102) - } - } -} - -func (x *SentinelPolicyListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey102) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue102) - switch yys3 { - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv4 := &x.Region - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv6 := &x.Namespace - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv8 := &x.MinQueryIndex - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv10 := &x.MaxQueryTime - yym11 := z.DecBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.DecExt(yyv10) { - } else { - *((*int64)(yyv10)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv12 := &x.AllowStale - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*bool)(yyv12)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv14 := &x.Prefix - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*string)(yyv14)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv16 := &x.AuthToken - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd102) -} - -func (x *SentinelPolicyListRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv19 := &x.Region - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv21 := &x.Namespace - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv23 := &x.MinQueryIndex - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*uint64)(yyv23)) = uint64(r.DecodeUint(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv25 := &x.MaxQueryTime - yym26 := z.DecBinary() - _ = yym26 - if false { - } else if z.HasExtensions() && z.DecExt(yyv25) { - } else { - *((*int64)(yyv25)) = int64(r.DecodeInt(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv27 := &x.AllowStale - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*bool)(yyv27)) = r.DecodeBool() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv29 := &x.Prefix - yym30 := z.DecBinary() - _ = yym30 - if false { - } else { - *((*string)(yyv29)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv31 := &x.AuthToken - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*string)(yyv31)) = r.DecodeString() - } - } - for { - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - z.DecStructFieldNotFound(yyj18-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd102) -} - -func (x *SentinelPolicySpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(8) - } else { - yynn2 = 8 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Name)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Name")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Name)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd102) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd102) - } - } - } -} - -func (x *SentinelPolicySpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap102 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd102) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray102 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr102) - } - } -} - -func (x *SentinelPolicySpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey102) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue102) - switch yys3 { - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv4 := &x.Name - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv10 := &x.MinQueryIndex - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv12 := &x.MaxQueryTime - yym13 := z.DecBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.DecExt(yyv12) { - } else { - *((*int64)(yyv12)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv14 := &x.AllowStale - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*bool)(yyv14)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv16 := &x.Prefix - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv18 := &x.AuthToken - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*string)(yyv18)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd102) -} - -func (x *SentinelPolicySpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj20 int - var yyb20 bool - var yyhl20 bool = l >= 0 - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv21 := &x.Name - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv23 := &x.Region - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv25 := &x.Namespace - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*string)(yyv25)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv27 := &x.MinQueryIndex - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*uint64)(yyv27)) = uint64(r.DecodeUint(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv29 := &x.MaxQueryTime - yym30 := z.DecBinary() - _ = yym30 - if false { - } else if z.HasExtensions() && z.DecExt(yyv29) { - } else { - *((*int64)(yyv29)) = int64(r.DecodeInt(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv31 := &x.AllowStale - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*bool)(yyv31)) = r.DecodeBool() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv33 := &x.Prefix - yym34 := z.DecBinary() - _ = yym34 - if false { - } else { - *((*string)(yyv33)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv35 := &x.AuthToken - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - *((*string)(yyv35)) = r.DecodeString() - } - } - for { - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - z.DecStructFieldNotFound(yyj20-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd102) -} - -func (x *SentinelPolicySetRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(8) - } else { - yynn2 = 8 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - if x.Names == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - z.F.EncSliceStringV(x.Names, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Names")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - if x.Names == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - z.F.EncSliceStringV(x.Names, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd102) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd102) - } - } - } -} - -func (x *SentinelPolicySetRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap102 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd102) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray102 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr102) - } - } -} - -func (x *SentinelPolicySetRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey102) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue102) - switch yys3 { - case "Names": - if r.TryDecodeAsNil() { - x.Names = nil - } else { - yyv4 := &x.Names - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - z.F.DecSliceStringX(yyv4, false, d) - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv10 := &x.MinQueryIndex - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv12 := &x.MaxQueryTime - yym13 := z.DecBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.DecExt(yyv12) { - } else { - *((*int64)(yyv12)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv14 := &x.AllowStale - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*bool)(yyv14)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv16 := &x.Prefix - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv18 := &x.AuthToken - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*string)(yyv18)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd102) -} - -func (x *SentinelPolicySetRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj20 int - var yyb20 bool - var yyhl20 bool = l >= 0 - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Names = nil - } else { - yyv21 := &x.Names - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - z.F.DecSliceStringX(yyv21, false, d) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv23 := &x.Region - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv25 := &x.Namespace - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*string)(yyv25)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv27 := &x.MinQueryIndex - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*uint64)(yyv27)) = uint64(r.DecodeUint(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv29 := &x.MaxQueryTime - yym30 := z.DecBinary() - _ = yym30 - if false { - } else if z.HasExtensions() && z.DecExt(yyv29) { - } else { - *((*int64)(yyv29)) = int64(r.DecodeInt(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv31 := &x.AllowStale - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*bool)(yyv31)) = r.DecodeBool() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv33 := &x.Prefix - yym34 := z.DecBinary() - _ = yym34 - if false { - } else { - *((*string)(yyv33)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv35 := &x.AuthToken - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - *((*string)(yyv35)) = r.DecodeString() - } - } - for { - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - z.DecStructFieldNotFound(yyj20-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd102) -} - -func (x *SentinelPolicyListResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - if x.Policies == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encSlicePtrtoSentinelPolicyListStub(([]*SentinelPolicyListStub)(x.Policies), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Policies")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - if x.Policies == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encSlicePtrtoSentinelPolicyListStub(([]*SentinelPolicyListStub)(x.Policies), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd102) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd102) - } - } - } -} - -func (x *SentinelPolicyListResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap102 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd102) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray102 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr102) - } - } -} - -func (x *SentinelPolicyListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey102) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue102) - switch yys3 { - case "Policies": - if r.TryDecodeAsNil() { - x.Policies = nil - } else { - yyv4 := &x.Policies - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decSlicePtrtoSentinelPolicyListStub((*[]*SentinelPolicyListStub)(yyv4), d) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv6 := &x.Index - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv8 := &x.LastContact - yym9 := z.DecBinary() - _ = yym9 - if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else { - *((*int64)(yyv8)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv10 := &x.KnownLeader - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*bool)(yyv10)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd102) -} - -func (x *SentinelPolicyListResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Policies = nil - } else { - yyv13 := &x.Policies - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePtrtoSentinelPolicyListStub((*[]*SentinelPolicyListStub)(yyv13), d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv15 := &x.Index - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv17 := &x.LastContact - yym18 := z.DecBinary() - _ = yym18 - if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else { - *((*int64)(yyv17)) = int64(r.DecodeInt(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv19 := &x.KnownLeader - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*bool)(yyv19)) = r.DecodeBool() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd102) -} - -func (x *SingleSentinelPolicyResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - if x.Policy == nil { - r.EncodeNil() - } else { - x.Policy.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Policy")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - if x.Policy == nil { - r.EncodeNil() - } else { - x.Policy.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd102) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd102) - } - } - } -} - -func (x *SingleSentinelPolicyResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap102 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd102) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray102 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr102) - } - } -} - -func (x *SingleSentinelPolicyResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey102) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue102) - switch yys3 { - case "Policy": - if r.TryDecodeAsNil() { - if x.Policy != nil { - x.Policy = nil - } - } else { - if x.Policy == nil { - x.Policy = new(SentinelPolicy) - } - x.Policy.CodecDecodeSelf(d) - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv5 := &x.Index - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*uint64)(yyv5)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv7 := &x.LastContact - yym8 := z.DecBinary() - _ = yym8 - if false { - } else if z.HasExtensions() && z.DecExt(yyv7) { - } else { - *((*int64)(yyv7)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv9 := &x.KnownLeader - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - *((*bool)(yyv9)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd102) -} - -func (x *SingleSentinelPolicyResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - if x.Policy != nil { - x.Policy = nil - } - } else { - if x.Policy == nil { - x.Policy = new(SentinelPolicy) - } - x.Policy.CodecDecodeSelf(d) - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv13 := &x.Index - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*uint64)(yyv13)) = uint64(r.DecodeUint(64)) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv15 := &x.LastContact - yym16 := z.DecBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.DecExt(yyv15) { - } else { - *((*int64)(yyv15)) = int64(r.DecodeInt(64)) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv17 := &x.KnownLeader - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*bool)(yyv17)) = r.DecodeBool() - } - } - for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - z.DecStructFieldNotFound(yyj11-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd102) -} - -func (x *SentinelPolicySetResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - if x.Policies == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encMapstringPtrtoSentinelPolicy((map[string]*SentinelPolicy)(x.Policies), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Policies")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - if x.Policies == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encMapstringPtrtoSentinelPolicy((map[string]*SentinelPolicy)(x.Policies), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd102) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd102) - } - } - } -} - -func (x *SentinelPolicySetResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap102 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd102) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray102 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr102) - } - } -} - -func (x *SentinelPolicySetResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey102) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue102) - switch yys3 { - case "Policies": - if r.TryDecodeAsNil() { - x.Policies = nil - } else { - yyv4 := &x.Policies - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decMapstringPtrtoSentinelPolicy((*map[string]*SentinelPolicy)(yyv4), d) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv6 := &x.Index - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv8 := &x.LastContact - yym9 := z.DecBinary() - _ = yym9 - if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else { - *((*int64)(yyv8)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv10 := &x.KnownLeader - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*bool)(yyv10)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd102) -} - -func (x *SentinelPolicySetResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Policies = nil - } else { - yyv13 := &x.Policies - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decMapstringPtrtoSentinelPolicy((*map[string]*SentinelPolicy)(yyv13), d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv15 := &x.Index - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv17 := &x.LastContact - yym18 := z.DecBinary() - _ = yym18 - if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else { - *((*int64)(yyv17)) = int64(r.DecodeInt(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv19 := &x.KnownLeader - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*bool)(yyv19)) = r.DecodeBool() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd102) -} - -func (x *SentinelPolicyDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - if x.Names == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - z.F.EncSliceStringV(x.Names, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Names")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - if x.Names == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - z.F.EncSliceStringV(x.Names, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd102) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd102) - } - } - } -} - -func (x *SentinelPolicyDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap102 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd102) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray102 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr102) - } - } -} - -func (x *SentinelPolicyDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey102) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue102) - switch yys3 { - case "Names": - if r.TryDecodeAsNil() { - x.Names = nil - } else { - yyv4 := &x.Names - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - z.F.DecSliceStringX(yyv4, false, d) - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv10 := &x.AuthToken - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd102) -} - -func (x *SentinelPolicyDeleteRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Names = nil - } else { - yyv13 := &x.Names - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - z.F.DecSliceStringX(yyv13, false, d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv15 := &x.Region - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv17 := &x.Namespace - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv19 := &x.AuthToken - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd102) -} - -func (x *SentinelPolicyUpsertRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - if x.Policies == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encSlicePtrtoSentinelPolicy(([]*SentinelPolicy)(x.Policies), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Policies")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - if x.Policies == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encSlicePtrtoSentinelPolicy(([]*SentinelPolicy)(x.Policies), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd102) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd102) - } - } - } -} - -func (x *SentinelPolicyUpsertRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap102 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd102) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray102 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr102) - } - } -} - -func (x *SentinelPolicyUpsertRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey102) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue102) - switch yys3 { - case "Policies": - if r.TryDecodeAsNil() { - x.Policies = nil - } else { - yyv4 := &x.Policies - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decSlicePtrtoSentinelPolicy((*[]*SentinelPolicy)(yyv4), d) - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv10 := &x.AuthToken - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd102) -} - -func (x *SentinelPolicyUpsertRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Policies = nil - } else { - yyv13 := &x.Policies - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePtrtoSentinelPolicy((*[]*SentinelPolicy)(yyv13), d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv15 := &x.Region - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv17 := &x.Namespace - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv19 := &x.AuthToken - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd102) -} - -func (x *QuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(6) - } else { - yynn2 = 6 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Name)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Name")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Name)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Description)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Description")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Description)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - if x.Limits == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - h.encSlicePtrtoQuotaLimit(([]*QuotaLimit)(x.Limits), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Limits")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - if x.Limits == nil { - r.EncodeNil() - } else { - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - h.encSlicePtrtoQuotaLimit(([]*QuotaLimit)(x.Limits), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - if x.Hash == nil { - r.EncodeNil() - } else { - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW102, []byte(x.Hash)) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Hash")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - if x.Hash == nil { - r.EncodeNil() - } else { - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW102, []byte(x.Hash)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("CreateIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("ModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd102) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd102) - } - } - } -} - -func (x *QuotaSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap102 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd102) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray102 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr102) - } - } -} - -func (x *QuotaSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey102) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue102) - switch yys3 { - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv4 := &x.Name - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Description": - if r.TryDecodeAsNil() { - x.Description = "" - } else { - yyv6 := &x.Description - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Limits": - if r.TryDecodeAsNil() { - x.Limits = nil - } else { - yyv8 := &x.Limits - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - h.decSlicePtrtoQuotaLimit((*[]*QuotaLimit)(yyv8), d) - } - } - case "Hash": - if r.TryDecodeAsNil() { - x.Hash = nil - } else { - yyv10 := &x.Hash - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *yyv10 = r.DecodeBytes(*(*[]byte)(yyv10), false, false) - } - } - case "CreateIndex": - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv12 := &x.CreateIndex - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*uint64)(yyv12)) = uint64(r.DecodeUint(64)) - } - } - case "ModifyIndex": - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv14 := &x.ModifyIndex - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*uint64)(yyv14)) = uint64(r.DecodeUint(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd102) -} - -func (x *QuotaSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj16 int - var yyb16 bool - var yyhl16 bool = l >= 0 - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv17 := &x.Name - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Description = "" - } else { - yyv19 := &x.Description - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Limits = nil - } else { - yyv21 := &x.Limits - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - h.decSlicePtrtoQuotaLimit((*[]*QuotaLimit)(yyv21), d) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Hash = nil - } else { - yyv23 := &x.Hash - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *yyv23 = r.DecodeBytes(*(*[]byte)(yyv23), false, false) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv25 := &x.CreateIndex - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*uint64)(yyv25)) = uint64(r.DecodeUint(64)) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv27 := &x.ModifyIndex - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*uint64)(yyv27)) = uint64(r.DecodeUint(64)) - } - } - for { - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - z.DecStructFieldNotFound(yyj16-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd102) -} - -func (x *QuotaLimit) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [3]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(3) - } else { - yynn2 = 3 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - if x.RegionLimit == nil { - r.EncodeNil() - } else { - x.RegionLimit.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("RegionLimit")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - if x.RegionLimit == nil { - r.EncodeNil() - } else { - x.RegionLimit.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - if x.Hash == nil { - r.EncodeNil() - } else { - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW102, []byte(x.Hash)) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Hash")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - if x.Hash == nil { - r.EncodeNil() - } else { - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW102, []byte(x.Hash)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd102) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd102) - } - } - } -} - -func (x *QuotaLimit) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap102 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd102) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray102 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr102) - } - } -} - -func (x *QuotaLimit) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey102) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue102) - switch yys3 { - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv4 := &x.Region - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "RegionLimit": - if r.TryDecodeAsNil() { - if x.RegionLimit != nil { - x.RegionLimit = nil - } - } else { - if x.RegionLimit == nil { - x.RegionLimit = new(Resources) - } - x.RegionLimit.CodecDecodeSelf(d) - } - case "Hash": - if r.TryDecodeAsNil() { - x.Hash = nil - } else { - yyv7 := &x.Hash - yym8 := z.DecBinary() - _ = yym8 - if false { - } else { - *yyv7 = r.DecodeBytes(*(*[]byte)(yyv7), false, false) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd102) -} - -func (x *QuotaLimit) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l - } else { - yyb9 = r.CheckBreak() - } - if yyb9 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv10 := &x.Region - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l - } else { - yyb9 = r.CheckBreak() - } - if yyb9 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - if x.RegionLimit != nil { - x.RegionLimit = nil - } - } else { - if x.RegionLimit == nil { - x.RegionLimit = new(Resources) - } - x.RegionLimit.CodecDecodeSelf(d) - } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l - } else { - yyb9 = r.CheckBreak() - } - if yyb9 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Hash = nil - } else { - yyv13 := &x.Hash - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *yyv13 = r.DecodeBytes(*(*[]byte)(yyv13), false, false) - } - } - for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l - } else { - yyb9 = r.CheckBreak() - } - if yyb9 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - z.DecStructFieldNotFound(yyj9-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd102) -} - -func (x *QuotaUsage) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else if !yym1 && z.IsJSONHandle() { - z.EncJSONMarshal(x) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Name)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Name")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Name)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - if x.Used == nil { - r.EncodeNil() - } else { - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - h.encMapstringPtrtoQuotaLimit((map[string]*QuotaLimit)(x.Used), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Used")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - if x.Used == nil { - r.EncodeNil() - } else { - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - h.encMapstringPtrtoQuotaLimit((map[string]*QuotaLimit)(x.Used), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("CreateIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("ModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd102) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd102) - } - } - } -} - -func (x *QuotaUsage) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap102 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd102) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray102 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr102) - } - } -} - -func (x *QuotaUsage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey102) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue102) - switch yys3 { - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv4 := &x.Name - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Used": - if r.TryDecodeAsNil() { - x.Used = nil - } else { - yyv6 := &x.Used - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - h.decMapstringPtrtoQuotaLimit((*map[string]*QuotaLimit)(yyv6), d) - } - } - case "CreateIndex": - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv8 := &x.CreateIndex - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) - } - } - case "ModifyIndex": - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv10 := &x.ModifyIndex - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd102) -} - -func (x *QuotaUsage) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv13 := &x.Name - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*string)(yyv13)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Used = nil - } else { - yyv15 := &x.Used - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - h.decMapstringPtrtoQuotaLimit((*map[string]*QuotaLimit)(yyv15), d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv17 := &x.CreateIndex - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*uint64)(yyv17)) = uint64(r.DecodeUint(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv19 := &x.ModifyIndex - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*uint64)(yyv19)) = uint64(r.DecodeUint(64)) - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd102) -} - -func (x *QuotaSpecListRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [7]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(7) - } else { - yynn2 = 7 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd102) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd102) - } - } - } -} - -func (x *QuotaSpecListRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap102 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd102) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray102 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr102) - } - } -} - -func (x *QuotaSpecListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey102) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue102) - switch yys3 { - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv4 := &x.Region - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv6 := &x.Namespace - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv8 := &x.MinQueryIndex - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv10 := &x.MaxQueryTime - yym11 := z.DecBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.DecExt(yyv10) { - } else { - *((*int64)(yyv10)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv12 := &x.AllowStale - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*bool)(yyv12)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv14 := &x.Prefix - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*string)(yyv14)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv16 := &x.AuthToken - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd102) -} - -func (x *QuotaSpecListRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv19 := &x.Region - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv21 := &x.Namespace - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv23 := &x.MinQueryIndex - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*uint64)(yyv23)) = uint64(r.DecodeUint(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv25 := &x.MaxQueryTime - yym26 := z.DecBinary() - _ = yym26 - if false { - } else if z.HasExtensions() && z.DecExt(yyv25) { - } else { - *((*int64)(yyv25)) = int64(r.DecodeInt(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv27 := &x.AllowStale - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*bool)(yyv27)) = r.DecodeBool() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv29 := &x.Prefix - yym30 := z.DecBinary() - _ = yym30 - if false { - } else { - *((*string)(yyv29)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv31 := &x.AuthToken - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*string)(yyv31)) = r.DecodeString() - } - } - for { - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - z.DecStructFieldNotFound(yyj18-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd102) -} - -func (x *QuotaSpecSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(8) - } else { - yynn2 = 8 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Name)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Name")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Name)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd102) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd102) - } - } - } -} - -func (x *QuotaSpecSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap102 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd102) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray102 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr102) - } - } -} - -func (x *QuotaSpecSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey102) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue102) - switch yys3 { - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv4 := &x.Name - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv10 := &x.MinQueryIndex - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv12 := &x.MaxQueryTime - yym13 := z.DecBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.DecExt(yyv12) { - } else { - *((*int64)(yyv12)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv14 := &x.AllowStale - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*bool)(yyv14)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv16 := &x.Prefix - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv18 := &x.AuthToken - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*string)(yyv18)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd102) -} - -func (x *QuotaSpecSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj20 int - var yyb20 bool - var yyhl20 bool = l >= 0 - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv21 := &x.Name - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv23 := &x.Region - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv25 := &x.Namespace - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*string)(yyv25)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv27 := &x.MinQueryIndex - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*uint64)(yyv27)) = uint64(r.DecodeUint(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv29 := &x.MaxQueryTime - yym30 := z.DecBinary() - _ = yym30 - if false { - } else if z.HasExtensions() && z.DecExt(yyv29) { - } else { - *((*int64)(yyv29)) = int64(r.DecodeInt(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv31 := &x.AllowStale - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*bool)(yyv31)) = r.DecodeBool() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv33 := &x.Prefix - yym34 := z.DecBinary() - _ = yym34 - if false { - } else { - *((*string)(yyv33)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv35 := &x.AuthToken - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - *((*string)(yyv35)) = r.DecodeString() - } - } - for { - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - z.DecStructFieldNotFound(yyj20-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd102) -} - -func (x *QuotaSpecSetRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(8) - } else { - yynn2 = 8 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - if x.Names == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - z.F.EncSliceStringV(x.Names, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Names")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - if x.Names == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - z.F.EncSliceStringV(x.Names, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd102) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd102) - } - } - } -} - -func (x *QuotaSpecSetRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap102 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd102) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray102 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr102) - } - } -} - -func (x *QuotaSpecSetRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey102) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue102) - switch yys3 { - case "Names": - if r.TryDecodeAsNil() { - x.Names = nil - } else { - yyv4 := &x.Names - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - z.F.DecSliceStringX(yyv4, false, d) - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv10 := &x.MinQueryIndex - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv12 := &x.MaxQueryTime - yym13 := z.DecBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.DecExt(yyv12) { - } else { - *((*int64)(yyv12)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv14 := &x.AllowStale - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*bool)(yyv14)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv16 := &x.Prefix - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv18 := &x.AuthToken - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*string)(yyv18)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd102) -} - -func (x *QuotaSpecSetRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj20 int - var yyb20 bool - var yyhl20 bool = l >= 0 - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Names = nil - } else { - yyv21 := &x.Names - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - z.F.DecSliceStringX(yyv21, false, d) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv23 := &x.Region - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv25 := &x.Namespace - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*string)(yyv25)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv27 := &x.MinQueryIndex - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*uint64)(yyv27)) = uint64(r.DecodeUint(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv29 := &x.MaxQueryTime - yym30 := z.DecBinary() - _ = yym30 - if false { - } else if z.HasExtensions() && z.DecExt(yyv29) { - } else { - *((*int64)(yyv29)) = int64(r.DecodeInt(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv31 := &x.AllowStale - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*bool)(yyv31)) = r.DecodeBool() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv33 := &x.Prefix - yym34 := z.DecBinary() - _ = yym34 - if false { - } else { - *((*string)(yyv33)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv35 := &x.AuthToken - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - *((*string)(yyv35)) = r.DecodeString() - } - } - for { - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - z.DecStructFieldNotFound(yyj20-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd102) -} - -func (x *QuotaSpecListResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - if x.Quotas == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encSlicePtrtoQuotaSpec(([]*QuotaSpec)(x.Quotas), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Quotas")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - if x.Quotas == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encSlicePtrtoQuotaSpec(([]*QuotaSpec)(x.Quotas), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd102) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd102) - } - } - } -} - -func (x *QuotaSpecListResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap102 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd102) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray102 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr102) - } - } -} - -func (x *QuotaSpecListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey102) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue102) - switch yys3 { - case "Quotas": - if r.TryDecodeAsNil() { - x.Quotas = nil - } else { - yyv4 := &x.Quotas - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decSlicePtrtoQuotaSpec((*[]*QuotaSpec)(yyv4), d) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv6 := &x.Index - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv8 := &x.LastContact - yym9 := z.DecBinary() - _ = yym9 - if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else { - *((*int64)(yyv8)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv10 := &x.KnownLeader - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*bool)(yyv10)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd102) -} - -func (x *QuotaSpecListResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Quotas = nil - } else { - yyv13 := &x.Quotas - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePtrtoQuotaSpec((*[]*QuotaSpec)(yyv13), d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv15 := &x.Index - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv17 := &x.LastContact - yym18 := z.DecBinary() - _ = yym18 - if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else { - *((*int64)(yyv17)) = int64(r.DecodeInt(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv19 := &x.KnownLeader - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*bool)(yyv19)) = r.DecodeBool() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd102) -} - -func (x *SingleQuotaSpecResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - if x.Quota == nil { - r.EncodeNil() - } else { - x.Quota.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Quota")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - if x.Quota == nil { - r.EncodeNil() - } else { - x.Quota.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd102) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd102) - } - } - } -} - -func (x *SingleQuotaSpecResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap102 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd102) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray102 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr102) - } - } -} - -func (x *SingleQuotaSpecResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey102) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue102) - switch yys3 { - case "Quota": - if r.TryDecodeAsNil() { - if x.Quota != nil { - x.Quota = nil - } - } else { - if x.Quota == nil { - x.Quota = new(QuotaSpec) - } - x.Quota.CodecDecodeSelf(d) - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv5 := &x.Index - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*uint64)(yyv5)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv7 := &x.LastContact - yym8 := z.DecBinary() - _ = yym8 - if false { - } else if z.HasExtensions() && z.DecExt(yyv7) { - } else { - *((*int64)(yyv7)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv9 := &x.KnownLeader - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - *((*bool)(yyv9)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd102) -} - -func (x *SingleQuotaSpecResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - if x.Quota != nil { - x.Quota = nil - } - } else { - if x.Quota == nil { - x.Quota = new(QuotaSpec) - } - x.Quota.CodecDecodeSelf(d) - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv13 := &x.Index - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*uint64)(yyv13)) = uint64(r.DecodeUint(64)) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv15 := &x.LastContact - yym16 := z.DecBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.DecExt(yyv15) { - } else { - *((*int64)(yyv15)) = int64(r.DecodeInt(64)) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv17 := &x.KnownLeader - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*bool)(yyv17)) = r.DecodeBool() - } - } - for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - z.DecStructFieldNotFound(yyj11-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd102) -} - -func (x *QuotaSpecSetResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - if x.Quotas == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encMapstringPtrtoQuotaSpec((map[string]*QuotaSpec)(x.Quotas), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Quotas")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - if x.Quotas == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encMapstringPtrtoQuotaSpec((map[string]*QuotaSpec)(x.Quotas), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd102) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd102) - } - } - } -} - -func (x *QuotaSpecSetResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap102 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd102) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray102 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr102) - } - } -} - -func (x *QuotaSpecSetResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey102) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue102) - switch yys3 { - case "Quotas": - if r.TryDecodeAsNil() { - x.Quotas = nil - } else { - yyv4 := &x.Quotas - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decMapstringPtrtoQuotaSpec((*map[string]*QuotaSpec)(yyv4), d) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv6 := &x.Index - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv8 := &x.LastContact - yym9 := z.DecBinary() - _ = yym9 - if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else { - *((*int64)(yyv8)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv10 := &x.KnownLeader - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*bool)(yyv10)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd102) -} - -func (x *QuotaSpecSetResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Quotas = nil - } else { - yyv13 := &x.Quotas - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decMapstringPtrtoQuotaSpec((*map[string]*QuotaSpec)(yyv13), d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv15 := &x.Index - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv17 := &x.LastContact - yym18 := z.DecBinary() - _ = yym18 - if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else { - *((*int64)(yyv17)) = int64(r.DecodeInt(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv19 := &x.KnownLeader - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*bool)(yyv19)) = r.DecodeBool() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd102) -} - -func (x *QuotaSpecDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - if x.Names == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - z.F.EncSliceStringV(x.Names, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Names")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - if x.Names == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - z.F.EncSliceStringV(x.Names, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd102) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd102) - } - } - } -} - -func (x *QuotaSpecDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap102 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd102) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray102 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr102) - } - } -} - -func (x *QuotaSpecDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey102) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue102) - switch yys3 { - case "Names": - if r.TryDecodeAsNil() { - x.Names = nil - } else { - yyv4 := &x.Names - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - z.F.DecSliceStringX(yyv4, false, d) - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv10 := &x.AuthToken - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd102) -} - -func (x *QuotaSpecDeleteRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Names = nil - } else { - yyv13 := &x.Names - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - z.F.DecSliceStringX(yyv13, false, d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv15 := &x.Region - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv17 := &x.Namespace - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv19 := &x.AuthToken - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd102) -} - -func (x *QuotaSpecUpsertRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - if x.Quotas == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encSlicePtrtoQuotaSpec(([]*QuotaSpec)(x.Quotas), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Quotas")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - if x.Quotas == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encSlicePtrtoQuotaSpec(([]*QuotaSpec)(x.Quotas), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd102) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd102) - } - } - } -} - -func (x *QuotaSpecUpsertRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap102 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd102) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray102 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr102) - } - } -} - -func (x *QuotaSpecUpsertRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey102) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue102) - switch yys3 { - case "Quotas": - if r.TryDecodeAsNil() { - x.Quotas = nil - } else { - yyv4 := &x.Quotas - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decSlicePtrtoQuotaSpec((*[]*QuotaSpec)(yyv4), d) - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv10 := &x.AuthToken - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd102) -} - -func (x *QuotaSpecUpsertRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Quotas = nil - } else { - yyv13 := &x.Quotas - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePtrtoQuotaSpec((*[]*QuotaSpec)(yyv13), d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv15 := &x.Region - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv17 := &x.Namespace - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv19 := &x.AuthToken - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd102) -} - -func (x *QuotaUsageListRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [7]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(7) - } else { - yynn2 = 7 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd102) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd102) - } - } - } -} - -func (x *QuotaUsageListRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap102 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd102) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray102 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr102) - } - } -} - -func (x *QuotaUsageListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey102) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue102) - switch yys3 { - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv4 := &x.Region - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv6 := &x.Namespace - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv8 := &x.MinQueryIndex - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv10 := &x.MaxQueryTime - yym11 := z.DecBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.DecExt(yyv10) { - } else { - *((*int64)(yyv10)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv12 := &x.AllowStale - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*bool)(yyv12)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv14 := &x.Prefix - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*string)(yyv14)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv16 := &x.AuthToken - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd102) -} - -func (x *QuotaUsageListRequest) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv19 := &x.Region - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv21 := &x.Namespace - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv23 := &x.MinQueryIndex - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*uint64)(yyv23)) = uint64(r.DecodeUint(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv25 := &x.MaxQueryTime - yym26 := z.DecBinary() - _ = yym26 - if false { - } else if z.HasExtensions() && z.DecExt(yyv25) { - } else { - *((*int64)(yyv25)) = int64(r.DecodeInt(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv27 := &x.AllowStale - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*bool)(yyv27)) = r.DecodeBool() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv29 := &x.Prefix - yym30 := z.DecBinary() - _ = yym30 - if false { - } else { - *((*string)(yyv29)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv31 := &x.AuthToken - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*string)(yyv31)) = r.DecodeString() - } - } - for { - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - z.DecStructFieldNotFound(yyj18-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd102) -} - -func (x *QuotaUsageSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(8) - } else { - yynn2 = 8 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Name)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Name")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Name)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd102) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd102) - } - } - } -} - -func (x *QuotaUsageSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap102 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd102) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray102 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr102) - } - } -} - -func (x *QuotaUsageSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey102) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue102) - switch yys3 { - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv4 := &x.Name - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv10 := &x.MinQueryIndex - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv12 := &x.MaxQueryTime - yym13 := z.DecBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.DecExt(yyv12) { - } else { - *((*int64)(yyv12)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv14 := &x.AllowStale - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*bool)(yyv14)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv16 := &x.Prefix - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv18 := &x.AuthToken - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*string)(yyv18)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd102) -} - -func (x *QuotaUsageSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj20 int - var yyb20 bool - var yyhl20 bool = l >= 0 - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv21 := &x.Name - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv23 := &x.Region - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv25 := &x.Namespace - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*string)(yyv25)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv27 := &x.MinQueryIndex - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*uint64)(yyv27)) = uint64(r.DecodeUint(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv29 := &x.MaxQueryTime - yym30 := z.DecBinary() - _ = yym30 - if false { - } else if z.HasExtensions() && z.DecExt(yyv29) { - } else { - *((*int64)(yyv29)) = int64(r.DecodeInt(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv31 := &x.AllowStale - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*bool)(yyv31)) = r.DecodeBool() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv33 := &x.Prefix - yym34 := z.DecBinary() - _ = yym34 - if false { - } else { - *((*string)(yyv33)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv35 := &x.AuthToken - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - *((*string)(yyv35)) = r.DecodeString() - } - } - for { - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - z.DecStructFieldNotFound(yyj20-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd102) -} - -func (x *QuotaUsageListResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - if x.Usages == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encSlicePtrtoQuotaUsage(([]*QuotaUsage)(x.Usages), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Usages")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - if x.Usages == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encSlicePtrtoQuotaUsage(([]*QuotaUsage)(x.Usages), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd102) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd102) - } - } - } -} - -func (x *QuotaUsageListResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap102 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd102) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray102 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr102) - } - } -} - -func (x *QuotaUsageListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey102) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue102) - switch yys3 { - case "Usages": - if r.TryDecodeAsNil() { - x.Usages = nil - } else { - yyv4 := &x.Usages - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decSlicePtrtoQuotaUsage((*[]*QuotaUsage)(yyv4), d) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv6 := &x.Index - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv8 := &x.LastContact - yym9 := z.DecBinary() - _ = yym9 - if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else { - *((*int64)(yyv8)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv10 := &x.KnownLeader - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*bool)(yyv10)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd102) -} - -func (x *QuotaUsageListResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Usages = nil - } else { - yyv13 := &x.Usages - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePtrtoQuotaUsage((*[]*QuotaUsage)(yyv13), d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv15 := &x.Index - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv17 := &x.LastContact - yym18 := z.DecBinary() - _ = yym18 - if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else { - *((*int64)(yyv17)) = int64(r.DecodeInt(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv19 := &x.KnownLeader - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*bool)(yyv19)) = r.DecodeBool() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd102) -} - -func (x *SingleQuotaUsageResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - if x.Usage == nil { - r.EncodeNil() - } else { - x.Usage.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Usage")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - if x.Usage == nil { - r.EncodeNil() - } else { - x.Usage.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey102) - r.EncodeString(codecSelferC_UTF8102, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue102) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd102) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd102) - } - } - } -} - -func (x *SingleQuotaUsageResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap102 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd102) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray102 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr102) - } - } -} - -func (x *SingleQuotaUsageResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey102) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue102) - switch yys3 { - case "Usage": - if r.TryDecodeAsNil() { - if x.Usage != nil { - x.Usage = nil - } - } else { - if x.Usage == nil { - x.Usage = new(QuotaUsage) - } - x.Usage.CodecDecodeSelf(d) - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv5 := &x.Index - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*uint64)(yyv5)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv7 := &x.LastContact - yym8 := z.DecBinary() - _ = yym8 - if false { - } else if z.HasExtensions() && z.DecExt(yyv7) { - } else { - *((*int64)(yyv7)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv9 := &x.KnownLeader - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - *((*bool)(yyv9)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd102) -} - -func (x *SingleQuotaUsageResponse) 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 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - if x.Usage != nil { - x.Usage = nil - } - } else { - if x.Usage == nil { - x.Usage = new(QuotaUsage) - } - x.Usage.CodecDecodeSelf(d) - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv13 := &x.Index - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*uint64)(yyv13)) = uint64(r.DecodeUint(64)) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv15 := &x.LastContact - yym16 := z.DecBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.DecExt(yyv15) { - } else { - *((*int64)(yyv15)) = int64(r.DecodeInt(64)) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd102) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv17 := &x.KnownLeader - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*bool)(yyv17)) = r.DecodeBool() - } - } - for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem102) - z.DecStructFieldNotFound(yyj11-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd102) -} - -func (x codecSelfer102) encSlicePtrtoSentinelPolicyListStub(v []*SentinelPolicyListStub, e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd102) -} - -func (x codecSelfer102) decSlicePtrtoSentinelPolicyListStub(v *[]*SentinelPolicyListStub, 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 = []*SentinelPolicyListStub{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]*SentinelPolicyListStub, yyrl1) - } - } else { - yyv1 = make([]*SentinelPolicyListStub, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = SentinelPolicyListStub{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(SentinelPolicyListStub) - } - yyw2 := yyv1[yyj1] - yyw2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, nil) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = SentinelPolicyListStub{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(SentinelPolicyListStub) - } - yyw3 := yyv1[yyj1] - yyw3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, nil) // var yyz1 *SentinelPolicyListStub - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = SentinelPolicyListStub{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(SentinelPolicyListStub) - } - yyw4 := yyv1[yyj1] - yyw4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []*SentinelPolicyListStub{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -func (x codecSelfer102) encMapstringPtrtoSentinelPolicy(v map[string]*SentinelPolicy, e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeMapStart(len(v)) - for yyk1, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerMapKey102) - yym2 := z.EncBinary() - _ = yym2 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(yyk1)) - } - z.EncSendContainerState(codecSelfer_containerMapValue102) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerMapEnd102) -} - -func (x codecSelfer102) decMapstringPtrtoSentinelPolicy(v *map[string]*SentinelPolicy, 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]*SentinelPolicy, yyrl1) - *v = yyv1 - } - var yymk1 string - var yymv1 *SentinelPolicy - var yymg1, yyms1, yymok1 bool - if yybh1.MapValueReset { - yymg1 = true - } - if yyl1 > 0 { - for yyj1 := 0; yyj1 < yyl1; yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey102) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yyv2 := &yymk1 - yym3 := z.DecBinary() - _ = yym3 - if false { - } else { - *((*string)(yyv2)) = r.DecodeString() - } - } - - yyms1 = true - if yymg1 { - yymv1, yymok1 = yyv1[yymk1] - if yymok1 { - yyms1 = false - } - } else { - yymv1 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue102) - if r.TryDecodeAsNil() { - if yymv1 != nil { - *yymv1 = SentinelPolicy{} - } - } else { - if yymv1 == nil { - yymv1 = new(SentinelPolicy) - } - yymv1.CodecDecodeSelf(d) - } - - if yyms1 && yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } else if yyl1 < 0 { - for yyj1 := 0; !r.CheckBreak(); yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey102) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yyv5 := &yymk1 - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*string)(yyv5)) = r.DecodeString() - } - } - - yyms1 = true - if yymg1 { - yymv1, yymok1 = yyv1[yymk1] - if yymok1 { - yyms1 = false - } - } else { - yymv1 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue102) - if r.TryDecodeAsNil() { - if yymv1 != nil { - *yymv1 = SentinelPolicy{} - } - } else { - if yymv1 == nil { - yymv1 = new(SentinelPolicy) - } - yymv1.CodecDecodeSelf(d) - } - - if yyms1 && yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } // else len==0: TODO: Should we clear map entries? - z.DecSendContainerState(codecSelfer_containerMapEnd102) -} - -func (x codecSelfer102) encSlicePtrtoSentinelPolicy(v []*SentinelPolicy, e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd102) -} - -func (x codecSelfer102) decSlicePtrtoSentinelPolicy(v *[]*SentinelPolicy, 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 = []*SentinelPolicy{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]*SentinelPolicy, yyrl1) - } - } else { - yyv1 = make([]*SentinelPolicy, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = SentinelPolicy{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(SentinelPolicy) - } - yyw2 := yyv1[yyj1] - yyw2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, nil) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = SentinelPolicy{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(SentinelPolicy) - } - yyw3 := yyv1[yyj1] - yyw3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, nil) // var yyz1 *SentinelPolicy - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = SentinelPolicy{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(SentinelPolicy) - } - yyw4 := yyv1[yyj1] - yyw4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []*SentinelPolicy{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -func (x codecSelfer102) encSlicePtrtoQuotaLimit(v []*QuotaLimit, e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd102) -} - -func (x codecSelfer102) decSlicePtrtoQuotaLimit(v *[]*QuotaLimit, 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 = []*QuotaLimit{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]*QuotaLimit, yyrl1) - } - } else { - yyv1 = make([]*QuotaLimit, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = QuotaLimit{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(QuotaLimit) - } - yyw2 := yyv1[yyj1] - yyw2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, nil) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = QuotaLimit{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(QuotaLimit) - } - yyw3 := yyv1[yyj1] - yyw3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, nil) // var yyz1 *QuotaLimit - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = QuotaLimit{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(QuotaLimit) - } - yyw4 := yyv1[yyj1] - yyw4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []*QuotaLimit{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -func (x codecSelfer102) encMapstringPtrtoQuotaLimit(v map[string]*QuotaLimit, e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeMapStart(len(v)) - for yyk1, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerMapKey102) - yym2 := z.EncBinary() - _ = yym2 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(yyk1)) - } - z.EncSendContainerState(codecSelfer_containerMapValue102) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerMapEnd102) -} - -func (x codecSelfer102) decMapstringPtrtoQuotaLimit(v *map[string]*QuotaLimit, 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]*QuotaLimit, yyrl1) - *v = yyv1 - } - var yymk1 string - var yymv1 *QuotaLimit - var yymg1, yyms1, yymok1 bool - if yybh1.MapValueReset { - yymg1 = true - } - if yyl1 > 0 { - for yyj1 := 0; yyj1 < yyl1; yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey102) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yyv2 := &yymk1 - yym3 := z.DecBinary() - _ = yym3 - if false { - } else { - *((*string)(yyv2)) = r.DecodeString() - } - } - - yyms1 = true - if yymg1 { - yymv1, yymok1 = yyv1[yymk1] - if yymok1 { - yyms1 = false - } - } else { - yymv1 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue102) - if r.TryDecodeAsNil() { - if yymv1 != nil { - *yymv1 = QuotaLimit{} - } - } else { - if yymv1 == nil { - yymv1 = new(QuotaLimit) - } - yymv1.CodecDecodeSelf(d) - } - - if yyms1 && yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } else if yyl1 < 0 { - for yyj1 := 0; !r.CheckBreak(); yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey102) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yyv5 := &yymk1 - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*string)(yyv5)) = r.DecodeString() - } - } - - yyms1 = true - if yymg1 { - yymv1, yymok1 = yyv1[yymk1] - if yymok1 { - yyms1 = false - } - } else { - yymv1 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue102) - if r.TryDecodeAsNil() { - if yymv1 != nil { - *yymv1 = QuotaLimit{} - } - } else { - if yymv1 == nil { - yymv1 = new(QuotaLimit) - } - yymv1.CodecDecodeSelf(d) - } - - if yyms1 && yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } // else len==0: TODO: Should we clear map entries? - z.DecSendContainerState(codecSelfer_containerMapEnd102) -} - -func (x codecSelfer102) encSlicePtrtoQuotaSpec(v []*QuotaSpec, e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd102) -} - -func (x codecSelfer102) decSlicePtrtoQuotaSpec(v *[]*QuotaSpec, 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 = []*QuotaSpec{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]*QuotaSpec, yyrl1) - } - } else { - yyv1 = make([]*QuotaSpec, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = QuotaSpec{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(QuotaSpec) - } - yyw2 := yyv1[yyj1] - yyw2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, nil) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = QuotaSpec{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(QuotaSpec) - } - yyw3 := yyv1[yyj1] - yyw3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, nil) // var yyz1 *QuotaSpec - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = QuotaSpec{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(QuotaSpec) - } - yyw4 := yyv1[yyj1] - yyw4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []*QuotaSpec{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -func (x codecSelfer102) encMapstringPtrtoQuotaSpec(v map[string]*QuotaSpec, e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeMapStart(len(v)) - for yyk1, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerMapKey102) - yym2 := z.EncBinary() - _ = yym2 - if false { - } else { - r.EncodeString(codecSelferC_UTF8102, string(yyk1)) - } - z.EncSendContainerState(codecSelfer_containerMapValue102) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerMapEnd102) -} - -func (x codecSelfer102) decMapstringPtrtoQuotaSpec(v *map[string]*QuotaSpec, 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]*QuotaSpec, yyrl1) - *v = yyv1 - } - var yymk1 string - var yymv1 *QuotaSpec - var yymg1, yyms1, yymok1 bool - if yybh1.MapValueReset { - yymg1 = true - } - if yyl1 > 0 { - for yyj1 := 0; yyj1 < yyl1; yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey102) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yyv2 := &yymk1 - yym3 := z.DecBinary() - _ = yym3 - if false { - } else { - *((*string)(yyv2)) = r.DecodeString() - } - } - - yyms1 = true - if yymg1 { - yymv1, yymok1 = yyv1[yymk1] - if yymok1 { - yyms1 = false - } - } else { - yymv1 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue102) - if r.TryDecodeAsNil() { - if yymv1 != nil { - *yymv1 = QuotaSpec{} - } - } else { - if yymv1 == nil { - yymv1 = new(QuotaSpec) - } - yymv1.CodecDecodeSelf(d) - } - - if yyms1 && yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } else if yyl1 < 0 { - for yyj1 := 0; !r.CheckBreak(); yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey102) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yyv5 := &yymk1 - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*string)(yyv5)) = r.DecodeString() - } - } - - yyms1 = true - if yymg1 { - yymv1, yymok1 = yyv1[yymk1] - if yymok1 { - yyms1 = false - } - } else { - yymv1 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue102) - if r.TryDecodeAsNil() { - if yymv1 != nil { - *yymv1 = QuotaSpec{} - } - } else { - if yymv1 == nil { - yymv1 = new(QuotaSpec) - } - yymv1.CodecDecodeSelf(d) - } - - if yyms1 && yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } // else len==0: TODO: Should we clear map entries? - z.DecSendContainerState(codecSelfer_containerMapEnd102) -} - -func (x codecSelfer102) encSlicePtrtoQuotaUsage(v []*QuotaUsage, e *codec1978.Encoder) { - var h codecSelfer102 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem102) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd102) -} - -func (x codecSelfer102) decSlicePtrtoQuotaUsage(v *[]*QuotaUsage, 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 = []*QuotaUsage{} - yyc1 = true - } else if len(yyv1) != 0 { - yyv1 = yyv1[:0] - yyc1 = true - } - } else if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]*QuotaUsage, yyrl1) - } - } else { - yyv1 = make([]*QuotaUsage, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = QuotaUsage{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(QuotaUsage) - } - yyw2 := yyv1[yyj1] - yyw2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, nil) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = QuotaUsage{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(QuotaUsage) - } - yyw3 := yyv1[yyj1] - yyw3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, nil) // var yyz1 *QuotaUsage - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = QuotaUsage{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(QuotaUsage) - } - yyw4 := yyv1[yyj1] - yyw4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []*QuotaUsage{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} diff --git a/nomad/structs/structs_pro.generated.go b/nomad/structs/structs_pro.generated.go deleted file mode 100644 index 35cc2c8736a..00000000000 --- a/nomad/structs/structs_pro.generated.go +++ /dev/null @@ -1,4069 +0,0 @@ -// +build pro ent - -// ************************************************************ -// DO NOT EDIT. -// THIS FILE IS AUTO-GENERATED BY codecgen. -// ************************************************************ - -package structs - -import ( - "errors" - "fmt" - codec1978 "github.com/ugorji/go/codec" - "reflect" - "runtime" - time "time" -) - -const ( - // ----- content types ---- - codecSelferC_UTF8103 = 1 - codecSelferC_RAW103 = 0 - // ----- value types used ---- - codecSelferValueTypeArray103 = 10 - codecSelferValueTypeMap103 = 9 - // ----- containerStateValues ---- - codecSelfer_containerMapKey103 = 2 - codecSelfer_containerMapValue103 = 3 - codecSelfer_containerMapEnd103 = 4 - codecSelfer_containerArrayElem103 = 6 - codecSelfer_containerArrayEnd103 = 7 -) - -var ( - codecSelferBitsize103 = uint8(reflect.TypeOf(uint(0)).Bits()) - codecSelferOnlyMapOrArrayEncodeToStructErr103 = errors.New(`only encoded map or array can be decoded into a struct`) -) - -type codecSelfer103 struct{} - -func init() { - if codec1978.GenVersion != 5 { - _, file, _, _ := runtime.Caller(0) - err := fmt.Errorf("codecgen version mismatch: current: %v, need %v. Re-generate file: %v", - 5, codec1978.GenVersion, file) - panic(err) - } - if false { // reference the types, but skip this branch at build/run time - var v0 time.Duration - _ = v0 - } -} - -func (x *Namespace) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(6) - } else { - yynn2 = 6 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Name)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("Name")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Name)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Description)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("Description")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Description)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Quota)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("Quota")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Quota)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - if x.Hash == nil { - r.EncodeNil() - } else { - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW103, []byte(x.Hash)) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("Hash")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - if x.Hash == nil { - r.EncodeNil() - } else { - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeStringBytes(codecSelferC_RAW103, []byte(x.Hash)) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("CreateIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeUint(uint64(x.CreateIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("ModifyIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeUint(uint64(x.ModifyIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd103) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd103) - } - } - } -} - -func (x *Namespace) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap103 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd103) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray103 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr103) - } - } -} - -func (x *Namespace) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey103) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue103) - switch yys3 { - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv4 := &x.Name - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Description": - if r.TryDecodeAsNil() { - x.Description = "" - } else { - yyv6 := &x.Description - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Quota": - if r.TryDecodeAsNil() { - x.Quota = "" - } else { - yyv8 := &x.Quota - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "Hash": - if r.TryDecodeAsNil() { - x.Hash = nil - } else { - yyv10 := &x.Hash - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *yyv10 = r.DecodeBytes(*(*[]byte)(yyv10), false, false) - } - } - case "CreateIndex": - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv12 := &x.CreateIndex - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*uint64)(yyv12)) = uint64(r.DecodeUint(64)) - } - } - case "ModifyIndex": - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv14 := &x.ModifyIndex - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*uint64)(yyv14)) = uint64(r.DecodeUint(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd103) -} - -func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj16 int - var yyb16 bool - var yyhl16 bool = l >= 0 - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv17 := &x.Name - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.Description = "" - } else { - yyv19 := &x.Description - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.Quota = "" - } else { - yyv21 := &x.Quota - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.Hash = nil - } else { - yyv23 := &x.Hash - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *yyv23 = r.DecodeBytes(*(*[]byte)(yyv23), false, false) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.CreateIndex = 0 - } else { - yyv25 := &x.CreateIndex - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*uint64)(yyv25)) = uint64(r.DecodeUint(64)) - } - } - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.ModifyIndex = 0 - } else { - yyv27 := &x.ModifyIndex - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*uint64)(yyv27)) = uint64(r.DecodeUint(64)) - } - } - for { - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = r.CheckBreak() - } - if yyb16 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - z.DecStructFieldNotFound(yyj16-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd103) -} - -func (x *NamespaceListRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [7]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(7) - } else { - yynn2 = 7 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd103) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd103) - } - } - } -} - -func (x *NamespaceListRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap103 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd103) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray103 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr103) - } - } -} - -func (x *NamespaceListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey103) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue103) - switch yys3 { - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv4 := &x.Region - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv6 := &x.Namespace - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv8 := &x.MinQueryIndex - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*uint64)(yyv8)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv10 := &x.MaxQueryTime - yym11 := z.DecBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.DecExt(yyv10) { - } else { - *((*int64)(yyv10)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv12 := &x.AllowStale - yym13 := z.DecBinary() - _ = yym13 - if false { - } else { - *((*bool)(yyv12)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv14 := &x.Prefix - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*string)(yyv14)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv16 := &x.AuthToken - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd103) -} - -func (x *NamespaceListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj18 int - var yyb18 bool - var yyhl18 bool = l >= 0 - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv19 := &x.Region - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv21 := &x.Namespace - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv23 := &x.MinQueryIndex - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*uint64)(yyv23)) = uint64(r.DecodeUint(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv25 := &x.MaxQueryTime - yym26 := z.DecBinary() - _ = yym26 - if false { - } else if z.HasExtensions() && z.DecExt(yyv25) { - } else { - *((*int64)(yyv25)) = int64(r.DecodeInt(64)) - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv27 := &x.AllowStale - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*bool)(yyv27)) = r.DecodeBool() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv29 := &x.Prefix - yym30 := z.DecBinary() - _ = yym30 - if false { - } else { - *((*string)(yyv29)) = r.DecodeString() - } - } - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv31 := &x.AuthToken - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*string)(yyv31)) = r.DecodeString() - } - } - for { - yyj18++ - if yyhl18 { - yyb18 = yyj18 > l - } else { - yyb18 = r.CheckBreak() - } - if yyb18 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - z.DecStructFieldNotFound(yyj18-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd103) -} - -func (x *NamespaceListResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - if x.Namespaces == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encSlicePtrtoNamespace(([]*Namespace)(x.Namespaces), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("Namespaces")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - if x.Namespaces == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encSlicePtrtoNamespace(([]*Namespace)(x.Namespaces), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd103) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd103) - } - } - } -} - -func (x *NamespaceListResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap103 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd103) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray103 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr103) - } - } -} - -func (x *NamespaceListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey103) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue103) - switch yys3 { - case "Namespaces": - if r.TryDecodeAsNil() { - x.Namespaces = nil - } else { - yyv4 := &x.Namespaces - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decSlicePtrtoNamespace((*[]*Namespace)(yyv4), d) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv6 := &x.Index - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv8 := &x.LastContact - yym9 := z.DecBinary() - _ = yym9 - if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else { - *((*int64)(yyv8)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv10 := &x.KnownLeader - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*bool)(yyv10)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd103) -} - -func (x *NamespaceListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj12 int - var yyb12 bool - var yyhl12 bool = l >= 0 - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.Namespaces = nil - } else { - yyv13 := &x.Namespaces - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePtrtoNamespace((*[]*Namespace)(yyv13), d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv15 := &x.Index - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv17 := &x.LastContact - yym18 := z.DecBinary() - _ = yym18 - if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else { - *((*int64)(yyv17)) = int64(r.DecodeInt(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv19 := &x.KnownLeader - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*bool)(yyv19)) = r.DecodeBool() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd103) -} - -func (x *NamespaceSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(8) - } else { - yynn2 = 8 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Name)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("Name")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Name)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd103) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd103) - } - } - } -} - -func (x *NamespaceSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap103 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd103) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray103 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr103) - } - } -} - -func (x *NamespaceSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey103) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue103) - switch yys3 { - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv4 := &x.Name - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - *((*string)(yyv4)) = r.DecodeString() - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv10 := &x.MinQueryIndex - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv12 := &x.MaxQueryTime - yym13 := z.DecBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.DecExt(yyv12) { - } else { - *((*int64)(yyv12)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv14 := &x.AllowStale - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*bool)(yyv14)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv16 := &x.Prefix - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv18 := &x.AuthToken - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*string)(yyv18)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd103) -} - -func (x *NamespaceSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj20 int - var yyb20 bool - var yyhl20 bool = l >= 0 - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - yyv21 := &x.Name - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - *((*string)(yyv21)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv23 := &x.Region - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv25 := &x.Namespace - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*string)(yyv25)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv27 := &x.MinQueryIndex - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*uint64)(yyv27)) = uint64(r.DecodeUint(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv29 := &x.MaxQueryTime - yym30 := z.DecBinary() - _ = yym30 - if false { - } else if z.HasExtensions() && z.DecExt(yyv29) { - } else { - *((*int64)(yyv29)) = int64(r.DecodeInt(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv31 := &x.AllowStale - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*bool)(yyv31)) = r.DecodeBool() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv33 := &x.Prefix - yym34 := z.DecBinary() - _ = yym34 - if false { - } else { - *((*string)(yyv33)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv35 := &x.AuthToken - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - *((*string)(yyv35)) = r.DecodeString() - } - } - for { - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - z.DecStructFieldNotFound(yyj20-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd103) -} - -func (x *SingleNamespaceResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - if x.Namespace == nil { - r.EncodeNil() - } else { - x.Namespace.CodecEncodeSelf(e) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - if x.Namespace == nil { - r.EncodeNil() - } else { - x.Namespace.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd103) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd103) - } - } - } -} - -func (x *SingleNamespaceResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap103 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd103) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray103 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr103) - } - } -} - -func (x *SingleNamespaceResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey103) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue103) - switch yys3 { - case "Namespace": - if r.TryDecodeAsNil() { - if 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.Index = 0 - } else { - yyv5 := &x.Index - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*uint64)(yyv5)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv7 := &x.LastContact - yym8 := z.DecBinary() - _ = yym8 - if false { - } else if z.HasExtensions() && z.DecExt(yyv7) { - } else { - *((*int64)(yyv7)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv9 := &x.KnownLeader - yym10 := z.DecBinary() - _ = yym10 - if false { - } else { - *((*bool)(yyv9)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd103) -} - -func (x *SingleNamespaceResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj11 int - var yyb11 bool - var yyhl11 bool = l >= 0 - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - if x.Namespace != nil { - x.Namespace = nil - } - } else { - if x.Namespace == nil { - x.Namespace = new(Namespace) - } - x.Namespace.CodecDecodeSelf(d) - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv13 := &x.Index - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - *((*uint64)(yyv13)) = uint64(r.DecodeUint(64)) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv15 := &x.LastContact - yym16 := z.DecBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.DecExt(yyv15) { - } else { - *((*int64)(yyv15)) = int64(r.DecodeInt(64)) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv17 := &x.KnownLeader - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*bool)(yyv17)) = r.DecodeBool() - } - } - for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - z.DecStructFieldNotFound(yyj11-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd103) -} - -func (x *NamespaceSetRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [8]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(8) - } else { - yynn2 = 8 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - if x.Namespaces == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - z.F.EncSliceStringV(x.Namespaces, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("Namespaces")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - if x.Namespaces == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - z.F.EncSliceStringV(x.Namespaces, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("MinQueryIndex")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeUint(uint64(x.MinQueryIndex)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym16 := z.EncBinary() - _ = yym16 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("MaxQueryTime")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym17 := z.EncBinary() - _ = yym17 - if false { - } else if z.HasExtensions() && z.EncExt(x.MaxQueryTime) { - } else { - r.EncodeInt(int64(x.MaxQueryTime)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("AllowStale")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym20 := z.EncBinary() - _ = yym20 - if false { - } else { - r.EncodeBool(bool(x.AllowStale)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym22 := z.EncBinary() - _ = yym22 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Prefix)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("Prefix")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym23 := z.EncBinary() - _ = yym23 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Prefix)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym25 := z.EncBinary() - _ = yym25 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym26 := z.EncBinary() - _ = yym26 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd103) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd103) - } - } - } -} - -func (x *NamespaceSetRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap103 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd103) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray103 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr103) - } - } -} - -func (x *NamespaceSetRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey103) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue103) - switch yys3 { - case "Namespaces": - if r.TryDecodeAsNil() { - x.Namespaces = nil - } else { - yyv4 := &x.Namespaces - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - z.F.DecSliceStringX(yyv4, false, d) - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "MinQueryIndex": - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv10 := &x.MinQueryIndex - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*uint64)(yyv10)) = uint64(r.DecodeUint(64)) - } - } - case "MaxQueryTime": - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv12 := &x.MaxQueryTime - yym13 := z.DecBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.DecExt(yyv12) { - } else { - *((*int64)(yyv12)) = int64(r.DecodeInt(64)) - } - } - case "AllowStale": - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv14 := &x.AllowStale - yym15 := z.DecBinary() - _ = yym15 - if false { - } else { - *((*bool)(yyv14)) = r.DecodeBool() - } - } - case "Prefix": - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv16 := &x.Prefix - yym17 := z.DecBinary() - _ = yym17 - if false { - } else { - *((*string)(yyv16)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv18 := &x.AuthToken - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - *((*string)(yyv18)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd103) -} - -func (x *NamespaceSetRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj20 int - var yyb20 bool - var yyhl20 bool = l >= 0 - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.Namespaces = nil - } else { - yyv21 := &x.Namespaces - yym22 := z.DecBinary() - _ = yym22 - if false { - } else { - z.F.DecSliceStringX(yyv21, false, d) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv23 := &x.Region - yym24 := z.DecBinary() - _ = yym24 - if false { - } else { - *((*string)(yyv23)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv25 := &x.Namespace - yym26 := z.DecBinary() - _ = yym26 - if false { - } else { - *((*string)(yyv25)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.MinQueryIndex = 0 - } else { - yyv27 := &x.MinQueryIndex - yym28 := z.DecBinary() - _ = yym28 - if false { - } else { - *((*uint64)(yyv27)) = uint64(r.DecodeUint(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.MaxQueryTime = 0 - } else { - yyv29 := &x.MaxQueryTime - yym30 := z.DecBinary() - _ = yym30 - if false { - } else if z.HasExtensions() && z.DecExt(yyv29) { - } else { - *((*int64)(yyv29)) = int64(r.DecodeInt(64)) - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.AllowStale = false - } else { - yyv31 := &x.AllowStale - yym32 := z.DecBinary() - _ = yym32 - if false { - } else { - *((*bool)(yyv31)) = r.DecodeBool() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.Prefix = "" - } else { - yyv33 := &x.Prefix - yym34 := z.DecBinary() - _ = yym34 - if false { - } else { - *((*string)(yyv33)) = r.DecodeString() - } - } - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv35 := &x.AuthToken - yym36 := z.DecBinary() - _ = yym36 - if false { - } else { - *((*string)(yyv35)) = r.DecodeString() - } - } - for { - yyj20++ - if yyhl20 { - yyb20 = yyj20 > l - } else { - yyb20 = r.CheckBreak() - } - if yyb20 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - z.DecStructFieldNotFound(yyj20-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd103) -} - -func (x *NamespaceSetResponse) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - if x.Namespaces == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encMapstringPtrtoNamespace((map[string]*Namespace)(x.Namespaces), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("Namespaces")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - if x.Namespaces == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encMapstringPtrtoNamespace((map[string]*Namespace)(x.Namespaces), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("Index")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeUint(uint64(x.Index)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("LastContact")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else if z.HasExtensions() && z.EncExt(x.LastContact) { - } else { - r.EncodeInt(int64(x.LastContact)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("KnownLeader")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeBool(bool(x.KnownLeader)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd103) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd103) - } - } - } -} - -func (x *NamespaceSetResponse) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap103 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd103) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray103 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr103) - } - } -} - -func (x *NamespaceSetResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey103) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue103) - switch yys3 { - case "Namespaces": - if r.TryDecodeAsNil() { - x.Namespaces = nil - } else { - yyv4 := &x.Namespaces - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decMapstringPtrtoNamespace((*map[string]*Namespace)(yyv4), d) - } - } - case "Index": - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv6 := &x.Index - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*uint64)(yyv6)) = uint64(r.DecodeUint(64)) - } - } - case "LastContact": - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv8 := &x.LastContact - yym9 := z.DecBinary() - _ = yym9 - if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { - } else { - *((*int64)(yyv8)) = int64(r.DecodeInt(64)) - } - } - case "KnownLeader": - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv10 := &x.KnownLeader - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*bool)(yyv10)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd103) -} - -func (x *NamespaceSetResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj12 int - var yyb12 bool - var yyhl12 bool = l >= 0 - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.Namespaces = nil - } else { - yyv13 := &x.Namespaces - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decMapstringPtrtoNamespace((*map[string]*Namespace)(yyv13), d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.Index = 0 - } else { - yyv15 := &x.Index - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*uint64)(yyv15)) = uint64(r.DecodeUint(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.LastContact = 0 - } else { - yyv17 := &x.LastContact - yym18 := z.DecBinary() - _ = yym18 - if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { - } else { - *((*int64)(yyv17)) = int64(r.DecodeInt(64)) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.KnownLeader = false - } else { - yyv19 := &x.KnownLeader - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*bool)(yyv19)) = r.DecodeBool() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd103) -} - -func (x *NamespaceDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - if x.Namespaces == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - z.F.EncSliceStringV(x.Namespaces, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("Namespaces")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - if x.Namespaces == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - z.F.EncSliceStringV(x.Namespaces, false, e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd103) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd103) - } - } - } -} - -func (x *NamespaceDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap103 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd103) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray103 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr103) - } - } -} - -func (x *NamespaceDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey103) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue103) - switch yys3 { - case "Namespaces": - if r.TryDecodeAsNil() { - x.Namespaces = nil - } else { - yyv4 := &x.Namespaces - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - z.F.DecSliceStringX(yyv4, false, d) - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv10 := &x.AuthToken - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd103) -} - -func (x *NamespaceDeleteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj12 int - var yyb12 bool - var yyhl12 bool = l >= 0 - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.Namespaces = nil - } else { - yyv13 := &x.Namespaces - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - z.F.DecSliceStringX(yyv13, false, d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv15 := &x.Region - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv17 := &x.Namespace - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv19 := &x.AuthToken - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd103) -} - -func (x *NamespaceUpsertRequest) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool - _, _, _ = yysep2, yyq2, yy2arr2 - const yyr2 bool = false - var yynn2 int - if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) - } else { - yynn2 = 4 - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.EncodeMapStart(yynn2) - yynn2 = 0 - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - if x.Namespaces == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encSlicePtrtoNamespace(([]*Namespace)(x.Namespaces), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("Namespaces")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - if x.Namespaces == nil { - r.EncodeNil() - } else { - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - h.encSlicePtrtoNamespace(([]*Namespace)(x.Namespaces), e) - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym7 := z.EncBinary() - _ = yym7 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Region)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("Region")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym8 := z.EncBinary() - _ = yym8 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Region)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Namespace)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("Namespace")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym11 := z.EncBinary() - _ = yym11 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.Namespace)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.AuthToken)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey103) - r.EncodeString(codecSelferC_UTF8103, string("AuthToken")) - z.EncSendContainerState(codecSelfer_containerMapValue103) - yym14 := z.EncBinary() - _ = yym14 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(x.AuthToken)) - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayEnd103) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd103) - } - } - } -} - -func (x *NamespaceUpsertRequest) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap103 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd103) - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray103 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr103) - } - } -} - -func (x *NamespaceUpsertRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3Slc - var yyhl3 bool = l >= 0 - for yyj3 := 0; ; yyj3++ { - if yyhl3 { - if yyj3 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey103) - yys3Slc = r.DecodeBytes(yys3Slc, true, true) - yys3 := string(yys3Slc) - z.DecSendContainerState(codecSelfer_containerMapValue103) - switch yys3 { - case "Namespaces": - if r.TryDecodeAsNil() { - x.Namespaces = nil - } else { - yyv4 := &x.Namespaces - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decSlicePtrtoNamespace((*[]*Namespace)(yyv4), d) - } - } - case "Region": - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv6 := &x.Region - yym7 := z.DecBinary() - _ = yym7 - if false { - } else { - *((*string)(yyv6)) = r.DecodeString() - } - } - case "Namespace": - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv8 := &x.Namespace - yym9 := z.DecBinary() - _ = yym9 - if false { - } else { - *((*string)(yyv8)) = r.DecodeString() - } - } - case "AuthToken": - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv10 := &x.AuthToken - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - z.DecSendContainerState(codecSelfer_containerMapEnd103) -} - -func (x *NamespaceUpsertRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj12 int - var yyb12 bool - var yyhl12 bool = l >= 0 - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.Namespaces = nil - } else { - yyv13 := &x.Namespaces - yym14 := z.DecBinary() - _ = yym14 - if false { - } else { - h.decSlicePtrtoNamespace((*[]*Namespace)(yyv13), d) - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.Region = "" - } else { - yyv15 := &x.Region - yym16 := z.DecBinary() - _ = yym16 - if false { - } else { - *((*string)(yyv15)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.Namespace = "" - } else { - yyv17 := &x.Namespace - yym18 := z.DecBinary() - _ = yym18 - if false { - } else { - *((*string)(yyv17)) = r.DecodeString() - } - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd103) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - if r.TryDecodeAsNil() { - x.AuthToken = "" - } else { - yyv19 := &x.AuthToken - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() - } - } - for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem103) - z.DecStructFieldNotFound(yyj12-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd103) -} - -func (x codecSelfer103) encSlicePtrtoNamespace(v []*Namespace, e *codec1978.Encoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem103) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerArrayEnd103) -} - -func (x codecSelfer103) decSlicePtrtoNamespace(v *[]*Namespace, d *codec1978.Decoder) { - var h codecSelfer103 - 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 if yyl1 > 0 { - var yyrr1, yyrl1 int - var yyrt1 bool - _, _ = yyrl1, yyrt1 - yyrr1 = yyl1 // len(yyv1) - if yyl1 > cap(yyv1) { - - yyrg1 := len(yyv1) > 0 - yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1 { - if yyrl1 <= cap(yyv1) { - yyv1 = yyv1[:yyrl1] - } else { - yyv1 = make([]*Namespace, yyrl1) - } - } else { - yyv1 = make([]*Namespace, yyrl1) - } - yyc1 = true - yyrr1 = len(yyv1) - if yyrg1 { - copy(yyv1, yyv21) - } - } else if yyl1 != len(yyv1) { - yyv1 = yyv1[:yyl1] - yyc1 = true - } - yyj1 := 0 - for ; yyj1 < yyrr1; yyj1++ { - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = Namespace{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(Namespace) - } - yyw2 := yyv1[yyj1] - yyw2.CodecDecodeSelf(d) - } - - } - if yyrt1 { - for ; yyj1 < yyl1; yyj1++ { - yyv1 = append(yyv1, nil) - yyh1.ElemContainerState(yyj1) - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = Namespace{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(Namespace) - } - yyw3 := yyv1[yyj1] - yyw3.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1 := 0 - for ; !r.CheckBreak(); yyj1++ { - - if yyj1 >= len(yyv1) { - yyv1 = append(yyv1, nil) // var yyz1 *Namespace - yyc1 = true - } - yyh1.ElemContainerState(yyj1) - if yyj1 < len(yyv1) { - if r.TryDecodeAsNil() { - if yyv1[yyj1] != nil { - *yyv1[yyj1] = Namespace{} - } - } else { - if yyv1[yyj1] == nil { - yyv1[yyj1] = new(Namespace) - } - yyw4 := yyv1[yyj1] - yyw4.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1 < len(yyv1) { - yyv1 = yyv1[:yyj1] - yyc1 = true - } else if yyj1 == 0 && yyv1 == nil { - yyv1 = []*Namespace{} - yyc1 = true - } - } - yyh1.End() - if yyc1 { - *v = yyv1 - } -} - -func (x codecSelfer103) encMapstringPtrtoNamespace(v map[string]*Namespace, e *codec1978.Encoder) { - var h codecSelfer103 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeMapStart(len(v)) - for yyk1, yyv1 := range v { - z.EncSendContainerState(codecSelfer_containerMapKey103) - yym2 := z.EncBinary() - _ = yym2 - if false { - } else { - r.EncodeString(codecSelferC_UTF8103, string(yyk1)) - } - z.EncSendContainerState(codecSelfer_containerMapValue103) - if yyv1 == nil { - r.EncodeNil() - } else { - yyv1.CodecEncodeSelf(e) - } - } - z.EncSendContainerState(codecSelfer_containerMapEnd103) -} - -func (x codecSelfer103) decMapstringPtrtoNamespace(v *map[string]*Namespace, d *codec1978.Decoder) { - var h codecSelfer103 - 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, yyms1, yymok1 bool - if yybh1.MapValueReset { - yymg1 = true - } - if yyl1 > 0 { - for yyj1 := 0; yyj1 < yyl1; yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey103) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yyv2 := &yymk1 - yym3 := z.DecBinary() - _ = yym3 - if false { - } else { - *((*string)(yyv2)) = r.DecodeString() - } - } - - yyms1 = true - if yymg1 { - yymv1, yymok1 = yyv1[yymk1] - if yymok1 { - yyms1 = false - } - } else { - yymv1 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue103) - if r.TryDecodeAsNil() { - if yymv1 != nil { - *yymv1 = Namespace{} - } - } else { - if yymv1 == nil { - yymv1 = new(Namespace) - } - yymv1.CodecDecodeSelf(d) - } - - if yyms1 && yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } else if yyl1 < 0 { - for yyj1 := 0; !r.CheckBreak(); yyj1++ { - z.DecSendContainerState(codecSelfer_containerMapKey103) - if r.TryDecodeAsNil() { - yymk1 = "" - } else { - yyv5 := &yymk1 - yym6 := z.DecBinary() - _ = yym6 - if false { - } else { - *((*string)(yyv5)) = r.DecodeString() - } - } - - yyms1 = true - if yymg1 { - yymv1, yymok1 = yyv1[yymk1] - if yymok1 { - yyms1 = false - } - } else { - yymv1 = nil - } - z.DecSendContainerState(codecSelfer_containerMapValue103) - if r.TryDecodeAsNil() { - if yymv1 != nil { - *yymv1 = Namespace{} - } - } else { - if yymv1 == nil { - yymv1 = new(Namespace) - } - yymv1.CodecDecodeSelf(d) - } - - if yyms1 && yyv1 != nil { - yyv1[yymk1] = yymv1 - } - } - } // else len==0: TODO: Should we clear map entries? - z.DecSendContainerState(codecSelfer_containerMapEnd103) -} diff --git a/vendor/github.com/hashicorp/consul/agent/consul/autopilot_ent/promotion_ent.go b/vendor/github.com/hashicorp/consul/agent/consul/autopilot_ent/promotion_ent.go new file mode 100644 index 00000000000..c3bc2f46ec1 --- /dev/null +++ b/vendor/github.com/hashicorp/consul/agent/consul/autopilot_ent/promotion_ent.go @@ -0,0 +1,256 @@ +package autopilot_ent + +import ( + "fmt" + "log" + "time" + + "github.com/hashicorp/consul/agent/consul/autopilot" + "github.com/hashicorp/go-version" + "github.com/hashicorp/raft" +) + +const UpgradeWarnInterval = 30 * time.Second + +// autopilotServer is a structure for consolidating autopilot-relevant server information +// for making decisions about promoting non-voters. +type autopilotServer struct { + raft.Server + health *autopilot.ServerHealth + version *version.Version + designatedNonVoter bool + redundancyZone string +} + +// AdvancedPromoter handles the advanced promotion logic for supporting enterprise +// features like redundancy zones and upgrade migrations. +type AdvancedPromoter struct { + logger *log.Logger + delegate autopilot.Delegate + + // nodeMetaFunc is a function that returns the node meta tag/values for + // a given raft server ID. + nodeMetaFunc func(raft.ServerID) (map[string]string, error) + + // lastUpgradeTagWarning is the time since the last tag warning. + lastUpgradeTagWarning time.Time +} + +func NewAdvancedPromoter(logger *log.Logger, delegate autopilot.Delegate, nodeMetaFunc func(raft.ServerID) (map[string]string, error)) *AdvancedPromoter { + return &AdvancedPromoter{ + logger: logger, + delegate: delegate, + nodeMetaFunc: nodeMetaFunc, + } +} + +// PromoteNonVoters returns promotion info, taking into account redundancy and +// non-voter tags, and carries out any demotions required for upgrade migrations. +func (a *AdvancedPromoter) PromoteNonVoters(conf *autopilot.Config, health autopilot.OperatorHealthReply) ([]raft.Server, error) { + future := a.delegate.Raft().GetConfiguration() + if err := future.Error(); err != nil { + return nil, fmt.Errorf("failed to get raft configuration: %v", err) + } + raftServers := future.Configuration().Servers + + servers := make(map[raft.ServerID]*autopilotServer) + zoneVoters := make(map[string]struct{}) + now := time.Now() + for _, s := range raftServers { + server := &autopilotServer{} + server.ID = s.ID + server.Address = s.Address + server.Suffrage = s.Suffrage + server.health = health.ServerHealth(string(s.ID)) + + meta, err := a.nodeMetaFunc(s.ID) + if err != nil { + a.logger.Printf("[ERR] autopilot: error getting node metadata for server id %q: %s", s.ID, err) + } else { + if conf.RedundancyZoneTag != "" { + zone := meta[conf.RedundancyZoneTag] + if zone != "" { + if autopilot.IsPotentialVoter(s.Suffrage) && server.health.IsStable(now, conf) { + zoneVoters[zone] = struct{}{} + } + server.redundancyZone = zone + } + } + + if conf.UpgradeVersionTag != "" { + raw := meta[conf.UpgradeVersionTag] + version, err := version.NewVersion(raw) + if err != nil { + a.logger.Printf("[ERR] autopilot: error parsing version for server id %q: %s", s.ID, err) + } else { + server.version = version + } + } + } + + servers[s.ID] = server + } + + // Construct a view of the servers in the cluster + for _, member := range a.delegate.Serf().Members() { + serverInfo, err := a.delegate.IsServer(member) + if err != nil || serverInfo == nil { + continue + } + + server, ok := servers[raft.ServerID(serverInfo.ID)] + if !ok { + continue + } + + _, server.designatedNonVoter = member.Tags["nonvoter"] + if conf.UpgradeVersionTag == "" { + server.version = &serverInfo.Build + } + } + + // Remove servers with a missing version so it's easier to reason about min/max versions + // in the cluster + for id, server := range servers { + if server.version == nil { + delete(servers, id) + } + } + + // If we have some newer-versioned servers, check to see whether we have enough of + // them to begin promoting them and demoting old servers. If we don't have enough servers + // with version info, skip this step. + var migrationInfo migrationInfo + if !conf.DisableUpgradeMigration { + if len(servers) == len(raftServers) { + migrationInfo = computeMigrationInfo(servers) + } else if conf.UpgradeVersionTag != "" { + // If they defined an upgrade tag but didn't set it, log a warning at a throttled rate + if now.Sub(a.lastUpgradeTagWarning) > UpgradeWarnInterval { + a.lastUpgradeTagWarning = now + a.logger.Println("[WARN] autopilot: UpgradeVersionTag %q defined but not set for all "+ + "servers, skipping migration check", conf.UpgradeVersionTag) + } + } + } + + // Find any non-voters eligible for promotion + var promotions []raft.Server + for _, server := range servers { + // Don't promote nodes marked non-voter + if server.designatedNonVoter { + continue + } + + // If this server has been stable and passing for long enough, promote it to a voter + if !autopilot.IsPotentialVoter(server.Suffrage) { + // If there's already a voter in this node's zone, don't promote it + if _, hasVoter := zoneVoters[server.redundancyZone]; hasVoter && server.redundancyZone != "" { + continue + } + + // If this server's version doesn't match desiredVersion, don't promote it + if !conf.DisableUpgradeMigration && !server.version.Equal(migrationInfo.desiredVersion) { + continue + } + + // If stable and not a designated non-voter, add it to the eligible list + if server.health.IsStable(now, conf) { + promotions = append(promotions, server.Server) + // Mark the zone as having a voter so we don't promote more than one + // server in this zone. + if server.redundancyZone != "" { + zoneVoters[server.redundancyZone] = struct{}{} + } + } + } + } + + // If we have servers to promote, return early and skip demoting servers this run + if len(promotions) > 0 { + return promotions, nil + } + + // Check for demotions if an upgrade is happening + if migrationInfo.multipleVersions { + // Limit demotions to one at a time, don't demote if there's a promotion (to avoid + // losing leadership too soon), and don't demote anything until enough servers of the + // desired version have been promoted. + if len(migrationInfo.demotions) > 0 && migrationInfo.desiredVersionVoters >= migrationInfo.oldVoters { + future := a.delegate.Raft().DemoteVoter(migrationInfo.demotions[0].ID, 0, 0) + if err := future.Error(); err != nil { + return nil, fmt.Errorf("failed to demote raft peer: %v", err) + } + } + } + + return nil, nil +} + +// migrationInfo contains info about the versions of the current server cluster +type migrationInfo struct { + // desiredVersion is the Consul version autopilot is currently trying to migrate to, if applicable + desiredVersion *version.Version + + // oldVoters is the count of voting servers not running desiredVersion + oldVoters int + + // desiredVersionVoters is the count of voting servers running desiredVersion + desiredVersionVoters int + + // multipleVersions is true if multiple versions of Consul are present in the cluster, + // which makes us eligible for an upgrade migration scenario + multipleVersions bool + + // demotions is the list of old voting servers that can be demoted after the migration + demotions []raft.Server +} + +// computeMigrationInfo takes the current servers autopilot is managing and returns +// version voter counts, the desired version, and any voter demotions +func computeMigrationInfo(servers map[raft.ServerID]*autopilotServer) migrationInfo { + // Compute the minimum and maximum present versions in the cluster + maxVersion, _ := version.NewVersion("0.0.0") + versionCounts := make(map[string]int) + for _, server := range servers { + if server.version.GreaterThan(maxVersion) { + maxVersion = server.version + } + versionCounts[server.version.String()]++ + } + + // Compute the desired version based on the version with the most servers, + // preferring the higher version in a tie + desiredVersion := maxVersion + desiredVersionCount := versionCounts[maxVersion.String()] + for ver, count := range versionCounts { + if count > desiredVersionCount { + desiredVersion, _ = version.NewVersion(ver) + desiredVersionCount = count + } + } + + // Get any demotions and version voter counts + var demotions []raft.Server + oldVoters := 0 + desiredVersionVoters := 0 + for _, server := range servers { + if server.version != nil && autopilot.IsPotentialVoter(server.Suffrage) { + if !server.version.Equal(desiredVersion) { + // Add old voters to demotions for when we finish promoting new servers + oldVoters++ + demotions = append(demotions, server.Server) + } else { + desiredVersionVoters++ + } + } + } + + return migrationInfo{ + desiredVersion: desiredVersion, + oldVoters: oldVoters, + desiredVersionVoters: desiredVersionVoters, + multipleVersions: desiredVersionCount != len(servers), + demotions: demotions, + } +} diff --git a/vendor/vendor.json b/vendor/vendor.json index 5cac1729541..e1819dee480 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -124,6 +124,7 @@ {"path":"github.com/hashicorp/consul-template/version","checksumSHA1":"NB5+D4AuCNV9Bsqh3YFdPi4AJ6U=","revision":"26d029ad37335b3827a9fde5569b2c5e10dcac8f","revisionTime":"2017-10-31T14:25:17Z"}, {"path":"github.com/hashicorp/consul-template/watch","checksumSHA1":"b4+Y+02pY2Y5620F9ALzKg8Zmdw=","revision":"26d029ad37335b3827a9fde5569b2c5e10dcac8f","revisionTime":"2017-10-31T14:25:17Z"}, {"path":"github.com/hashicorp/consul/agent/consul/autopilot","checksumSHA1":"/nyemJLkxBXKqI9xpLFyTyvOaYY=","revision":"bfeb09983befa337a3b2ebbafb7567913773e40b","revisionTime":"2018-01-23T20:52:17Z"}, + {"path":"github.com/hashicorp/consul/agent/consul/autopilot_ent","checksumSHA1":"CQU6a7RQF/LgvfeyTCf9Z5Ti7nw=","revision":"543ee9c655b6b6e807ac371f2b8a70a223c15e99","revisionTime":"2018-01-26T01:07:28Z"}, {"path":"github.com/hashicorp/consul/api","checksumSHA1":"XLfcIX2qpRr0o26aFMjCOzvw6jo=","revision":"51ea240df8476e02215d53fbfad5838bf0d44d21","revisionTime":"2017-10-16T16:22:40Z"}, {"path":"github.com/hashicorp/consul/command/flags","checksumSHA1":"XTQIYV+DPUVRKpVp0+y/78bWH3I=","revision":"d08ab9fd199434e5220276356ecf9617cfec1eb2","revisionTime":"2017-12-18T20:26:35Z"}, {"path":"github.com/hashicorp/consul/lib","checksumSHA1":"HGljdtVaqi/e3DgIHymLRLfPYhw=","revision":"bcafded4e60982d0b71e730f0b8564d73cb1d715","revisionTime":"2017-10-31T16:39:15Z"}, diff --git a/version/version_ent.go b/version/version_ent.go index 753c9612e46..5db237139f3 100644 --- a/version/version_ent.go +++ b/version/version_ent.go @@ -4,7 +4,7 @@ package version func init() { // The main version number that is being run at the moment. - Version = "0.7.1" + Version = "0.8.0" // 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 diff --git a/version/version_pro.go b/version/version_pro.go index e180124e9cf..be0578a4de3 100644 --- a/version/version_pro.go +++ b/version/version_pro.go @@ -4,7 +4,7 @@ package version func init() { // The main version number that is being run at the moment. - Version = "0.7.1" + Version = "0.8.0" // 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