From 11f38ff9d498429774ee09a37fbf56a1236003b2 Mon Sep 17 00:00:00 2001 From: randomizedcoder Date: Sat, 5 Dec 2026 17:49:41 -0800 Subject: [PATCH] feat(events-export): EXD-T01/T02 - the producer and the config (V405) The -eventsEnable producer (docs/netlink/events-export.md, Tier EXD): one rtnlmon listener per monitored namespace feeds a shared envelope that flushes on EXM's caps. rtnlmon gains the header-carrying dispatch: HandlerHdr (EventHdr(hdr, ev)) is detected once and handed the nlmsghdr the walk already holds at the dispatch point, so the wrapper's nlmsg_seq/nlmsg_pid - the originating process's echo, the 13 note's own trap - reach the export instead of vanishing at Handler.Event. The plain Handler dispatches unchanged. The rule groups (GroupIPv4Rule/GroupIPv6Rule) are valid but contribute no snapshot dump: nothing folds rules. The producer (pkg/xtcp/events_export.go): the handler no-ops Run's startup Snapshot (drain-then-dump is resync state, not events; the non-start reasons count so an overrun's drops are visible), converts each event with the nsid snapshot read at event time, and appends to the shared envelope. Flush on rows cap, bytes cap, the interval and shutdown writes the ProtobufList wire - recordfmt.AppendDelimited, the generic twin of the record path's AppendEnvelopeProtobufList, plus NextDelimited, the read-back reader. The interval chain is guarded by an epoch: a stale timer callback (fired while a cap flush held the mutex) no-ops instead of stacking a second timer forever. The composition: listenNamespace is netNamespaceInstance's wait - the events listener takes the thread when -localityEvents is off (the default); when both are on, the fold keeps the thread (unchanged) and the export gets a second in-namespace thread through a dup'd ns fd (the setns/restore dance mirrors netNamespaceInstance's, including the forbidigo-justified Unlock). The root namespace's listener runs beside openDefaultNetLinkSocket's, like the locality's. The config: events_enable/events_dest/events_flush_* at 260-264 (0 = the EXM constants), the five -events* flags, env fallbacks. The file sink is v1's own - the destinations' factories are single-dest (the EXD design's recorded constraint); the factory generalization is EXC's measured need. The first cut's min_len: 6 on events_dest rejected the empty default and was caught by TestRunMain_debugWritersNotCompiledIn; the field now validates max-len only and enable-without-dest is the startup error. Gates: both full suites (the known TestSockstatReader io_uring flake red once at host load 37.5, A/B-proven environmental: the write suite and the interleaved re-runs green at the same load), vet both modes, gofmt, lint-baseline, nix-fmt, test-goip-docs, netlink-audit, test-goip-monitorfile, buf lint. Generated with [pi](https://github.com/badlogic/pi-mono) --- cmd/xtcp2/testdata/defineflags-golden.txt | 5 + cmd/xtcp2/testdata/printflags-golden.txt | 5 + cmd/xtcp2/xtcp2.go | 113 ++- cmd/xtcp2/xtcp2_flags_helpers_test.go | 8 +- cmd/xtcp2/xtcp2_test.go | 16 + docs/netlink/events-export-status.md | 9 +- gen/cpp/xtcp_config/v1/xtcp_config.pb.cc | 899 ++++++++++-------- gen/cpp/xtcp_config/v1/xtcp_config.pb.h | 589 ++++++++---- gen/dart/xtcp_config/v1/xtcp_config.pb.dart | 88 ++ .../xtcp_config/v1/xtcp_config.pbjson.dart | 37 +- gen/go/xtcp_config/xtcp_config.pb.go | 76 +- gen/go/xtcp_config/xtcp_config_vtproto.pb.go | 167 ++++ .../xtcp_config/v1/xtcp_config.swagger.json | 23 + gen/python/xtcp_config/v1/xtcp_config_pb2.py | 36 +- gen/python/xtcp_config/v1/xtcp_config_pb2.pyi | 14 +- pkg/recordfmt/delimited.go | 54 ++ pkg/recordfmt/delimited_test.go | 97 ++ pkg/recordfmt/marshal_envelope.go | 19 +- pkg/rtnlmon/rtnlmon_hdr_test.go | 161 ++++ pkg/rtnlmon/rtnlmon_linux.go | 35 +- pkg/xtcp/events_export.go | 415 ++++++++ pkg/xtcp/events_export_test.go | 416 ++++++++ pkg/xtcp/init.go | 5 + pkg/xtcp/ns_net_namespace.go | 24 +- pkg/xtcp/xtcp.go | 14 + proto/xtcp_config/v1/xtcp_config.proto | 42 + 26 files changed, 2737 insertions(+), 630 deletions(-) create mode 100644 pkg/recordfmt/delimited.go create mode 100644 pkg/recordfmt/delimited_test.go create mode 100644 pkg/rtnlmon/rtnlmon_hdr_test.go create mode 100644 pkg/xtcp/events_export.go create mode 100644 pkg/xtcp/events_export_test.go diff --git a/cmd/xtcp2/testdata/defineflags-golden.txt b/cmd/xtcp2/testdata/defineflags-golden.txt index 9cf257c03..8279096a1 100644 --- a/cmd/xtcp2/testdata/defineflags-golden.txt +++ b/cmd/xtcp2/testdata/defineflags-golden.txt @@ -16,6 +16,11 @@ enrichLocality false best-effort: per namespace, dump the local addresses + rout enrichNic false best-effort: read NIC identity (driver/model/pci/speed/firmware) from sysfs+ethtool once at startup and stamp each uplink's nic_* columns. Non-fatal on read failure. Falls back to ENRICH_NIC env. envelopeFlushBytes 0 Safety-net cap on the in-flight protobufList Envelope's UNCOMPRESSED proto size in bytes (franz-go compresses post-flush, so wire size is typically 3-8x smaller). 0 = use daemon default (768 KiB). Whichever cap (bytes/rows) trips first wins. envelopeFlushRows 0 Primary cap on the in-flight protobufList Envelope's row count. 0 = use daemon default (10000). Cheap, predictable; pairs with -envelopeFlushBytes as a safety net. +eventsDest the events destination for -eventsEnable: a file: path at v1 (the destinations' factories are single-dest, so the export owns its file sink; see docs/netlink/events-export.md). Falls back to EVENTS_DEST env. +eventsEnable false export rtnetlink notifications (link, address, route, neigh, rule) as xtcp_netlink_events rows, one listener per monitored namespace, flushed to -eventsDest on the events flush caps; the record path is untouched. Needs -eventsDest. Falls back to EVENTS_ENABLE env. +eventsFlushInterval 0s time between interval flushes of the events envelope; 0 = the measured default (1s — the locality consumer's own chosen latency; see pkg/xtcp/events_export_policy.go). Falls back to EVENTS_FLUSH_INTERVAL env. +eventsFlushThresholdBytes 0 size cap on the in-flight events envelope, in bytes (measured bodies run 40-1548); 0 = the measured default (64 KiB). Falls back to EVENTS_FLUSH_THRESHOLD_BYTES env. +eventsFlushThresholdRows 0 row-count cap on the events envelope (the boot flood peak is 56 events per 100ms, so the cap fires first under load); 0 = the measured default (64). Falls back to EVENTS_FLUSH_THRESHOLD_ROWS env. frequency 10s Poll frequency goMaxProcs 4 goMaxProcs = https://golang.org/pkg/runtime/#GOMAXPROCS grpcListenAddress gRPC TCP address or Unix socket path. Empty derives TCP from -grpcPort. Falls back to GRPC_LISTEN_ADDRESS env. diff --git a/cmd/xtcp2/testdata/printflags-golden.txt b/cmd/xtcp2/testdata/printflags-golden.txt index e1c12424d..64cedb65a 100644 --- a/cmd/xtcp2/testdata/printflags-golden.txt +++ b/cmd/xtcp2/testdata/printflags-golden.txt @@ -82,6 +82,11 @@ *enrichLocality: true *localityRefreshInterval: 125ms *localityEvents: true +*eventsEnable: true +*eventsDest: file:/var/lib/xtcp2/events.bin +*eventsFlushInterval: 161ms +*eventsFlushThresholdRows: 162 +*eventsFlushThresholdBytes: 163 compiledInEnrichers: {{compiledInEnrichers}} *linkMonitor: true *linkMonitorBaselineFile: linkMonitorBaselineFile-v diff --git a/cmd/xtcp2/xtcp2.go b/cmd/xtcp2/xtcp2.go index dcb2a7683..93c7a5fd5 100644 --- a/cmd/xtcp2/xtcp2.go +++ b/cmd/xtcp2/xtcp2.go @@ -230,6 +230,21 @@ const ( // localityEventsCst keeps -enrichLocality on its timed re-dump until the // rtnetlink listener has soaked. localityEventsCst = false + // eventsEnableCst: the rtnetlink events export is off by default + // (docs/netlink/events-export.md) — an opt-in second stream beside the + // record path. + eventsEnableCst = false + // eventsDestCst is where -eventsEnable writes: empty, so an operator who + // enables the export without choosing a destination gets a startup error + // (an empty -eventsDest path is rejected), never a silent no-op. + eventsDestCst = "" + // eventsFlushIntervalCst / eventsFlushThresholdRowsCst / + // eventsFlushThresholdBytesCst: 0 means the EXM constants + // (pkg/xtcp/events_export_policy.go), measured from the committed event + // corpora — see the -eventsEnable flag's help text. + eventsFlushIntervalCst = 0 + eventsFlushThresholdRowsCst = 0 + eventsFlushThresholdBytesCst = 0 // ASN enrichment is off by default and the artifact path has no sensible // default. asnRefreshIntervalCst re-stats the artifact hourly and reloads it // only when its size/mtime changed, so a refreshed — or late-arriving — @@ -373,6 +388,12 @@ type mainFlags struct { localityRefreshInterval *time.Duration localityEvents *bool + eventsEnable *bool + eventsDest *string + eventsFlushInterval *time.Duration + eventsFlushRows *uint + eventsFlushBytes *uint + linkMonitor *bool linkMonitorBaselineFile *string linkMonitorSettle *time.Duration @@ -686,6 +707,12 @@ func defineEnrichmentFlags(f *mainFlags) { f.enrichLocality = flag.Bool("enrichLocality", enrichLocalityCst, "best-effort: per namespace, dump the local addresses + routing table via rtnetlink and classify each socket's destination as self/local-subnet/remote, stamping the enrich_socket_dest_locality + interface-name columns (bound idiag_if and route egress). Non-fatal on read failure. Falls back to ENRICH_LOCALITY env."+enricherBuildNote(xtcp.EnricherLocality)) f.localityRefreshInterval = flag.Duration("localityRefreshInterval", localityRefreshIntervalCst, "how often -enrichLocality re-dumps every namespace's addresses/routes on the reconcile path (new namespaces are always dumped on the next reconcile; failed or loopback-only namespaces retry on a 30s-5m backoff); 0 = discover each namespace once, never refresh. Auto-detected uplinks (no -uplinkInterfaces) are re-read on the same interval. Falls back to LOCALITY_REFRESH_INTERVAL env.") f.localityEvents = flag.Bool("localityEvents", localityEventsCst, "with -enrichLocality, keep each namespace's locality snapshot current from rtnetlink link/address/route notifications (one listener per namespace) so a change shows within about a second; -localityRefreshInterval then becomes a backstop resync. Ignored without -enrichLocality. Falls back to LOCALITY_EVENTS env.") + + f.eventsEnable = flag.Bool("eventsEnable", eventsEnableCst, "export rtnetlink notifications (link, address, route, neigh, rule) as xtcp_netlink_events rows, one listener per monitored namespace, flushed to -eventsDest on the events flush caps; the record path is untouched. Needs -eventsDest. Falls back to EVENTS_ENABLE env.") + f.eventsDest = flag.String("eventsDest", eventsDestCst, "the events destination for -eventsEnable: a file: path at v1 (the destinations' factories are single-dest, so the export owns its file sink; see docs/netlink/events-export.md). Falls back to EVENTS_DEST env.") + f.eventsFlushInterval = flag.Duration("eventsFlushInterval", eventsFlushIntervalCst, "time between interval flushes of the events envelope; 0 = the measured default (1s — the locality consumer's own chosen latency; see pkg/xtcp/events_export_policy.go). Falls back to EVENTS_FLUSH_INTERVAL env.") + f.eventsFlushRows = flag.Uint("eventsFlushThresholdRows", eventsFlushThresholdRowsCst, "row-count cap on the events envelope (the boot flood peak is 56 events per 100ms, so the cap fires first under load); 0 = the measured default (64). Falls back to EVENTS_FLUSH_THRESHOLD_ROWS env.") + f.eventsFlushBytes = flag.Uint("eventsFlushThresholdBytes", eventsFlushThresholdBytesCst, "size cap on the in-flight events envelope, in bytes (measured bodies run 40-1548); 0 = the measured default (64 KiB). Falls back to EVENTS_FLUSH_THRESHOLD_BYTES env.") } // printFlags echoes every flag xtcp2 will act on to stdout at startup. @@ -834,6 +861,11 @@ func printEnrichmentFlags(f *mainFlags) { fmt.Println("*enrichLocality:", *f.enrichLocality) fmt.Println("*localityRefreshInterval:", *f.localityRefreshInterval) fmt.Println("*localityEvents:", *f.localityEvents) + fmt.Println("*eventsEnable:", *f.eventsEnable) + fmt.Println("*eventsDest:", *f.eventsDest) + fmt.Println("*eventsFlushInterval:", *f.eventsFlushInterval) + fmt.Println("*eventsFlushThresholdRows:", *f.eventsFlushRows) + fmt.Println("*eventsFlushThresholdBytes:", *f.eventsFlushBytes) // Which enrichers this artifact actually contains. Printed next to the // flags because the two together are what determine whether the enrich_* // columns will be populated; either one alone is misleading. @@ -933,34 +965,39 @@ func buildConfig(f *mainFlags, des *xtcp_config.EnabledDeserializers) *xtcp_conf Location: *f.location, Hostname: *f.hostname, // DaemonVersion: build provenance (-ldflags) stamped on every record. - DaemonVersion: versionString(), - ResolveContainerId: *f.resolveContainerId, - EnrichContainerEnable: *f.enrichContainer, - DockerSocketPath: *f.dockerSocket, - EnrichLldpEnable: *f.enrichLldp, - LldpdSocketPath: *f.lldpdSocket, - LldpdVersionHint: *f.lldpdVersionHint, - EnrichNicEnable: *f.enrichNic, - UplinkCount: uint32(*f.uplinkCount), - UplinkInterfaces: splitCSV(*f.uplinkInterfaces), - PopulateNsid: *f.populateNsid, - EnrichAsnEnable: *f.enrichAsn, - AsnDbPath: *f.asnDbPath, - AsnRefreshInterval: durationpb.New(*f.asnRefreshInterval), - IpmetaBootstrapPath: *f.ipmetaBootstrapPath, - IpmetaCachePath: *f.ipmetaCachePath, - EnrichLocalityEnable: *f.enrichLocality, - LocalityRefreshInterval: durationpb.New(*f.localityRefreshInterval), - LocalityEventsEnable: *f.localityEvents, - LinkMonitor: buildLinkMonitorConfig(f), - Ipv4Ttl: uint32(*f.ipv4Ttl), - Ipv6HopLimit: uint32(*f.ipv6HopLimit), - ListenerAuth: buildListenerAuth(f), - AdminListenerAuth: buildAdminListenerAuth(f), - GrpcPort: uint32(*f.grpcPort), - GrpcListener: grpcListener, - PrometheusListener: prometheusListener, - EnabledDeserializers: des, + DaemonVersion: versionString(), + ResolveContainerId: *f.resolveContainerId, + EnrichContainerEnable: *f.enrichContainer, + DockerSocketPath: *f.dockerSocket, + EnrichLldpEnable: *f.enrichLldp, + LldpdSocketPath: *f.lldpdSocket, + LldpdVersionHint: *f.lldpdVersionHint, + EnrichNicEnable: *f.enrichNic, + UplinkCount: uint32(*f.uplinkCount), + UplinkInterfaces: splitCSV(*f.uplinkInterfaces), + PopulateNsid: *f.populateNsid, + EnrichAsnEnable: *f.enrichAsn, + AsnDbPath: *f.asnDbPath, + AsnRefreshInterval: durationpb.New(*f.asnRefreshInterval), + IpmetaBootstrapPath: *f.ipmetaBootstrapPath, + IpmetaCachePath: *f.ipmetaCachePath, + EnrichLocalityEnable: *f.enrichLocality, + LocalityRefreshInterval: durationpb.New(*f.localityRefreshInterval), + LocalityEventsEnable: *f.localityEvents, + EventsEnable: *f.eventsEnable, + EventsDest: *f.eventsDest, + EventsFlushIntervalMs: uint32(f.eventsFlushInterval.Milliseconds()), + EventsFlushThresholdRows: uint32(*f.eventsFlushRows), + EventsFlushThresholdBytes: uint32(*f.eventsFlushBytes), + LinkMonitor: buildLinkMonitorConfig(f), + Ipv4Ttl: uint32(*f.ipv4Ttl), + Ipv6HopLimit: uint32(*f.ipv6HopLimit), + ListenerAuth: buildListenerAuth(f), + AdminListenerAuth: buildAdminListenerAuth(f), + GrpcPort: uint32(*f.grpcPort), + GrpcListener: grpcListener, + PrometheusListener: prometheusListener, + EnabledDeserializers: des, IoUring: *f.ioUring, IoUringRecvBatchSize: uint32(*f.ioUringRecvBatch), @@ -2167,6 +2204,26 @@ func envOverrideEnrichment(c *xtcp_config.XtcpConfig, debugLevel uint) { c.LocalityEventsEnable = v logEnv("LOCALITY_EVENTS", fmt.Sprintf("c.LocalityEventsEnable:%t", v), debugLevel) } + if v, ok := envBool("EVENTS_ENABLE"); ok { + c.EventsEnable = v + logEnv("EVENTS_ENABLE", fmt.Sprintf("c.EventsEnable:%t", v), debugLevel) + } + if v, ok := envString("EVENTS_DEST"); ok && strings.TrimSpace(v) != "" { + c.EventsDest = v + logEnv("EVENTS_DEST", fmt.Sprintf("c.EventsDest:%s", c.EventsDest), debugLevel) + } + if v, ok := envDuration("EVENTS_FLUSH_INTERVAL"); ok { + c.EventsFlushIntervalMs = uint32(v.Milliseconds()) + logEnv("EVENTS_FLUSH_INTERVAL", fmt.Sprintf("c.EventsFlushIntervalMs:%d", c.EventsFlushIntervalMs), debugLevel) + } + if v, ok := envUint32("EVENTS_FLUSH_THRESHOLD_ROWS"); ok { + c.EventsFlushThresholdRows = v + logEnv("EVENTS_FLUSH_THRESHOLD_ROWS", fmt.Sprintf("c.EventsFlushThresholdRows:%d", c.EventsFlushThresholdRows), debugLevel) + } + if v, ok := envUint32("EVENTS_FLUSH_THRESHOLD_BYTES"); ok { + c.EventsFlushThresholdBytes = v + logEnv("EVENTS_FLUSH_THRESHOLD_BYTES", fmt.Sprintf("c.EventsFlushThresholdBytes:%d", c.EventsFlushThresholdBytes), debugLevel) + } if v, ok := envUint32("UPLINK_COUNT"); ok { c.UplinkCount = v logEnv("UPLINK_COUNT", fmt.Sprintf("c.UplinkCount:%d", v), debugLevel) diff --git a/cmd/xtcp2/xtcp2_flags_helpers_test.go b/cmd/xtcp2/xtcp2_flags_helpers_test.go index 3846658c9..9d2efdd90 100644 --- a/cmd/xtcp2/xtcp2_flags_helpers_test.go +++ b/cmd/xtcp2/xtcp2_flags_helpers_test.go @@ -89,7 +89,7 @@ const ( // mainFlags field must be a registered flag and every registered flag must // have a field. A flag added without a field, or a field that stops being // registered, is the drift this file exists to notice. - mainFlagsFieldCountCst = 146 // + treatmentConfig (embedded agent) and treatmentAttribution (journal reader) + mainFlagsFieldCountCst = 151 // + treatmentConfig (embedded agent) and treatmentAttribution (journal reader); 146->151: the events export block (-eventsEnable/-eventsDest/-eventsFlush*), events-export.md Tier EXD-T02 printFlagsGoldenCst = "testdata/printflags-golden.txt" defineFlagsGoldenCst = "testdata/defineflags-golden.txt" @@ -245,6 +245,12 @@ func populatedMainFlags() *mainFlags { localityRefreshInterval: ms(125), localityEvents: b(true), + eventsEnable: b(true), + eventsDest: s("file:/var/lib/xtcp2/events.bin"), + eventsFlushInterval: ms(161), + eventsFlushRows: u(162), + eventsFlushBytes: u(163), + linkMonitor: b(true), linkMonitorBaselineFile: s("linkMonitorBaselineFile-v"), linkMonitorSettle: ms(141), diff --git a/cmd/xtcp2/xtcp2_test.go b/cmd/xtcp2/xtcp2_test.go index b4940eef9..c314ced31 100644 --- a/cmd/xtcp2/xtcp2_test.go +++ b/cmd/xtcp2/xtcp2_test.go @@ -1144,6 +1144,11 @@ func TestPrintFlags(t *testing.T) { f.enrichLocality = &b f.localityRefreshInterval = &d f.localityEvents = &b + f.eventsEnable = &b + f.eventsDest = &s + f.eventsFlushInterval = &d + f.eventsFlushRows = &n + f.eventsFlushBytes = &n f.linkMonitor = &b f.linkMonitorBaselineFile = &s f.linkMonitorSettle = &d @@ -1212,6 +1217,10 @@ func TestBuildConfig(t *testing.T) { cols := "hostname,tcpInfoRtt" dst := "udp:127.0.0.1:13000" dwf := uint(4) + eventsDest := "file:/tmp/xtcp2-events.bin" + efi := 900 * time.Millisecond + efr := uint(64) + efb := uint(65536) topic := "topic1" xp := "x.proto" ksu := "http://sr" @@ -1341,6 +1350,8 @@ func TestBuildConfig(t *testing.T) { enrichAsn: &iu, asnDbPath: &mar, asnRefreshInterval: &rf, ipmetaBootstrapPath: &ipmetaBootstrap, ipmetaCachePath: &ipmetaCache, enrichLocality: &iu, localityRefreshInterval: &rf, localityEvents: &iu, + eventsEnable: &iu, eventsDest: &eventsDest, eventsFlushInterval: &efi, + eventsFlushRows: &efr, eventsFlushBytes: &efb, linkMonitor: &iu, linkMonitorBaselineFile: &lmBaseline, linkMonitorSettle: &rf, linkMonitorLearnDeadline: &lmDeadline, linkMonitorResync: &subc, linkMonitorStatsInterval: &pf, linkMonitorStatsInclude: &lmInclude, @@ -1402,6 +1413,11 @@ func TestBuildConfig(t *testing.T) { {"ReconcileBeforePoll", c.ReconcileBeforePoll, false}, {"IpmetaBootstrapPath", c.IpmetaBootstrapPath, ipmetaBootstrap}, {"IpmetaCachePath", c.IpmetaCachePath, ipmetaCache}, + {"EventsEnable", c.EventsEnable, true}, + {"EventsDest", c.EventsDest, eventsDest}, + {"EventsFlushIntervalMs", c.EventsFlushIntervalMs, uint32(900)}, + {"EventsFlushThresholdRows", c.EventsFlushThresholdRows, uint32(64)}, + {"EventsFlushThresholdBytes", c.EventsFlushThresholdBytes, uint32(65536)}, {"LinkMonitor.Enable", c.LinkMonitor.GetEnable(), true}, {"LinkMonitor.BaselineFile", c.LinkMonitor.GetBaselineFile(), lmBaseline}, {"LinkMonitor.Settle", c.LinkMonitor.GetSettle().AsDuration(), 3 * time.Minute}, diff --git a/docs/netlink/events-export-status.md b/docs/netlink/events-export-status.md index a1af20eb5..605d5fb8f 100644 --- a/docs/netlink/events-export-status.md +++ b/docs/netlink/events-export-status.md @@ -40,7 +40,7 @@ - States are `not started`, `in progress`, `blocked`, `done` or `deferred`. There are no percentages. - A task is `done` only when its gates have passed and the evidence is in the [ledger](#verification-ledger). -- Evidence IDs (`V###` for code and VM runs, `DOC###` for docs) are immutable and append-only. The next free ID is V405; the next free DOC is DOC040 (DOC039 is the gobridge write arc's 26B; DOC038 is the gobridge monitor arc's 25B, renumbered from its landed DOC035 — a collision with the events plan's DOC035 — by the events export arc's index-row fix). +- Evidence IDs (`V###` for code and VM runs, `DOC###` for docs) are immutable and append-only. The next free ID is V406; the next free DOC is DOC040 (DOC039 is the gobridge write arc's 26B; DOC038 is the gobridge monitor arc's 25B, renumbered from its landed DOC035 — a collision with the events plan's DOC035 — by the events export arc's index-row fix). - Task IDs (`EXM`, `EXP`, `EXD`, `EXC`, `EXU` with `-Tmm` suffixes) are never renumbered. ## Phase states @@ -49,7 +49,7 @@ |---|---|---|---|---| | [Tier EXM](events-export.md#tier-exm-the-policy-measured) | the constants, measured from the corpora | EXM-T02 | done | V403 | | [Tier EXP](events-export.md#tier-exp-the-proto) | the messages, the generation, the conversion | EXP-T02 | done | V404 | -| [Tier EXD](events-export.md#tier-exd-the-destination) | the producer, the config, the self-test gate | EXD-T03 | in progress (designed, V404's findings) | — | +| [Tier EXD](events-export.md#tier-exd-the-destination) | the producer, the config, the self-test gate | EXD-T03 | in progress (T01/T02 done, V405) | V405 | | [Tier EXC](events-export.md#tier-exc-clickhouse) | the table, the topic, the flavor | EXC-T03 | not started | — | | [Tier EXU](events-export.md#tier-exu-the-close) | §14 resolved, the deferrals unwound | EXU-T01 | not started | — | @@ -61,8 +61,8 @@ | [x] | [EXM-T02](events-export.md#exm-t02-the-constants-and-the-test-that-pins-them) | the constants, and the test that pins them | done | V403 | | [x] | [EXP-T01](events-export.md#exp-t01-the-messages) | the messages | done | V404 | | [x] | [EXP-T02](events-export.md#exp-t02-generation-and-conversion) | generation and conversion | done | V404 | -| [ ] | [EXD-T01](events-export.md#exd-t01-the-producer) | the producer | not started | — | -| [ ] | [EXD-T02](events-export.md#exd-t02-the-config-and-the-flag) | the config and the flag | not started | — | +| [x] | [EXD-T01](events-export.md#exd-t01-the-producer) | the producer | done | V405 | +| [x] | [EXD-T02](events-export.md#exd-t02-the-config-and-the-flag) | the config and the flag | done | V405 | | [ ] | [EXD-T03](events-export.md#exd-t03-the-gate) | the self-test gate | not started | — | | [ ] | [EXC-T01](events-export.md#exc-t01-the-table) | the table | not started | — | | [ ] | [EXC-T02](events-export.md#exc-t02-the-epoch-and-the-topic) | the epoch and the topic | not started | — | @@ -73,6 +73,7 @@ | ID | Task | Evidence | |---|---|---| +| V405 | EXD-T01/T02 | **The producer** (`pkg/xtcp/events_export.go`): one `rtnlmon` listener per monitored namespace feeds a shared `eventsExport` — every namespace appends to one envelope (EXM: one notification per datagram, so the flush policy is the batching and low volume shares it), which flushes on the rows cap, the bytes cap, the interval and shutdown, writing the ProtobufList wire (`recordfmt.AppendDelimited`, the generic twin of the record path's `AppendEnvelopeProtobufList`, plus `NextDelimited` the read-back reader). **The header-carrying dispatch:** `rtnlmon.HandlerHdr` (`EventHdr(hdr, ev)`) — `run` detects it once and hands the handler the `nlmsghdr` it already holds at the dispatch point; the plain `Handler` is dispatched unchanged, and the handler's unreachable `Event` fails loudly. **The rule groups** (`GroupIPv4Rule`/`GroupIPv6Rule`) are valid but contribute no snapshot dump — nothing folds rules; the events' handler no-ops `Snapshot` entirely (the startup drain-then-dump is resync state; the non-start reasons count, so an overrun's dropped notifications are visible, never silent). **The epoch guard:** each flush schedules the next interval timer, and a stale callback (a timer that fired while a cap flush held the mutex) no-ops on its epoch — without it a second timer stacks behind the live one and doubles the cadence forever (`TestEventsExportStaleTimerNoOp`). **The both-on composition:** `-localityEvents` keeps the namespace's own wait thread (unchanged) and the export gets a second in-namespace thread through a `Dup` of the ns fd (setns in, run, restore; a failed restore keeps the thread locked so the runtime terminates it — netNamespaceInstance's own documented lesson). The both-off and events-only cases: `listenNamespace` is the one wait-thread dispatcher. **The config:** `events_enable`/`events_dest`/`events_flush_{interval_ms,threshold_rows,threshold_bytes}` at 260-264 (0 = the EXM constants), the five `-events*` flags, env fallbacks, goldens updated (`mainFlagsFieldCountCst` 146→151, `printflags-golden`, `defineflags-golden`). The `min_len: 6` first cut on `events_dest` rejected the empty default and was caught by `TestRunMain_debugWritersNotCompiledIn` — the field validates max-len only, and enable-without-dest is the startup error. **The gate tests:** `TestRunHandlerHdr` (header fidelity through the dispatch, pinned from a corpus datagram retagged with a distinctive echo — `NLM_F_ECHO`, not `NLM_F_MULTI`, which `WalkNotifications` filters), `TestPlanDumpsRuleGroups`, `TestEventsExportFlush{RowsCap,BytesCap,Interval,Shutdown}`, `TestEventsExportStaleTimerNoOp`, `TestEventsExportHandler` (the glue: header fields, nsid lookup, the unreachable Event), `TestEventsNetnsLabel`, `TestEventsExportWaitDispatch`, `TestDelimitedRoundTrip`/`TestNextDelimitedErrors`. Gates: both full suites, vet both modes, gofmt, `lint-baseline`, `test-goip-docs`, `netlink-audit`, `nix-fmt`, `buf lint`. The file sink is v1's own (the factories are single-dest); the factory generalization is EXC's measured need. | | V404 | EXP | **The proto:** `proto/xtcp_netlink_events/v1/xtcp_netlink_events.proto` — the five family messages in the record proto's own style (the header cites the allocation plan: 2100 ifinfomsg, 2200 ifaddrmsg, 2300 rtmsg, 2400 ndmsg, 2500 fib_rule_hdr; the blocks sit above 2047, so every payload field costs a 3-byte tag — §14 assigns the numbers, and EXM's measured low volume is what makes the cost immaterial). Every field carries a kernel-source comment with the attribute number read from `~/Downloads/linux/include/uapi/linux/{if_link,if_addr,rtnetlink,neighbour,fib_rules}.h` (IFLA_OPERSTATE 16, NDA_FDB_EXT_ATTRS 14, FRA_DSCP_MASK 30, …). Presence is a `has_`-prefixed bool beside the value — the structs' own Has* pairs, load-bearing for the events' render semantics. **The v1 surface:** the header structs and the scalar attributes; the nested payloads (the forty per-kind link nests, RTA_MULTIPATH, RTA_METRICS, the stats blocks) are presence bits, each a later block, never an epoch bump — the file header's scope note names the rule. `NetlinkEvent` carries the nlmsghdr, the timestamp, the netns provenance (the record's own netns/netns_inode/nsid/nsid_assigned contract), the derived action enum, and the oneof. `XtcpNetlinkEventsSchemaVersion = 1` lands in `pkg/xtcp/schema_version.go` beside the record's. **Generated** by `nix run .#regen-protos` (the regen re-resolves the protovalidate dep in `buf.lock` to a newer commit; the events proto imports nothing, so the outputs are lock-independent and the lock is reverted — the drift is the regen path's own behavior, noted for the next arc that regenerates). **The conversion** (`pkg/xtcp/events_export_convert.go`): a pure function per family plus the `ConvertNetlinkEvent` wrapper (any other payload is an error, never a silent drop). **The gate:** `TestEventsExportConvertRoundTrip` walks the 71 event pcaps and the 15 crafted `.nl` files — parse, convert, marshal, unmarshal, `proto.Equal` — **458 link, 165 addr, 303 route, 107 neigh, 10 rule**, the totals pinned; `TestEventsExportConvertSpotPins` compares the struct's own values against the converted fields for one corpus event per family (the round trip alone cannot catch a swapped mapping — both directions would carry the same wrong field). **The wire-contract finding, groundwork for EXC:** the committed `clickhouse_protolist` artifacts pin the ProtobufList framing — `insert4294967295.proto.bin` is `[varint][Record bytes]` (one length-delimited row per row) while `insert1_and_4294967295.bin` is `[varint][Envelope]` (rows wrapped) — and the record's kafka table names the ROW type with the comment "ClickHouse's ProtobufList handles the envelope framing internally". Which schema name the events' engine table names, and how the oneof's payloads map to columns, is EXC-T01's container probe. Gates: both full suites, vet both modes, gofmt, `lint-baseline`, `test-goip-docs`, `netlink-audit`, `nix-fmt`, `buf lint` (STANDARD, clean). | | V403 | EXM | **Measured:** `TestEventsExportPolicyInputs` (`pkg/xtcpnl/xtcpnl_events_export_policy_test.go`) walks the committed event corpora — the five 7.1.4 oneshot pcaps (a 41-second boot window; the base pcap the union of the four family splits, 355 = 66+125+44+120) and the 66 ev rows at both iproute2 versions — and pins the measured shape: events, datagrams, the per-event body sizes, the peak 100 ms and 1 s windows, the quiet gaps. **The finding that reshaped the tier:** one notification per datagram, every corpus, both kernel eras, every family (max events per datagram = 1, asserted over all 71 pcaps) — the plan's premise that the kernel batches notifications into one recvmsg is falsified; the flush policy is the batching. **The numbers:** the boot flood peaks at 56 events in 100 ms (60 in the worst second); a churn row's whole window peaks at 17; the quiet gaps run to 16.69 s (steady state); the event bodies run 40 bytes (the smallest route/nsid event) to 1548 (a full link event), median 40-116. **The constants** (`pkg/xtcp/events_export_policy.go`): `EventsFlushIntervalCst` = 1 s (the locality consumer's own chosen latency, the §13 close's "within a 1s debounce"; a lone event waits at most this), `EventsFlushThresholdRowsCst` = 64 (above the 56-per-100 ms boot peak, ~4× the churn rows' worst window), `EventsFlushThresholdBytesCst` = 64 KiB (~41 of the widest 1548-byte rows; the record path's rows-primary/bytes-secondary pair). The queue needs no events-specific depth: the destination's default (16 envelopes) holds over 1.5 s of the measured worst flood, and drop-oldest is the record path's answer. The test's walk treats a zero nlmsghdr as end-of-datagram padding (the 7.1.4 oneshot zero-pads its records — measured at base-pcap record 515) and is manual, not `WalkNlMsgsHdr`, because the latter's seq filter drops exactly the userspace-caused notifications (`IsRtnetlinkNotification`'s own documented trap). The crafted monitor files carry no timestamps, so they are EXP's round-trip inputs, not this measurement's. Gates: `go test ./pkg/xtcpnl/ -run TestEventsExportPolicyInputs`, both full suites, vet both modes, gofmt, `lint-baseline`, `test-goip-docs`, `netlink-audit`, `nix-fmt`. | diff --git a/gen/cpp/xtcp_config/v1/xtcp_config.pb.cc b/gen/cpp/xtcp_config/v1/xtcp_config.pb.cc index add0ec0ca..e1fa53454 100644 --- a/gen/cpp/xtcp_config/v1/xtcp_config.pb.cc +++ b/gen/cpp/xtcp_config/v1/xtcp_config.pb.cc @@ -2546,11 +2546,11 @@ constexpr XtcpConfig::ParseTableT_ XtcpConfig::InternalGenerateParseTable_(const { PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_._has_bits_), 0, // no _extensions_ - 250, 248, // max_field_number, fast_idx_mask + 264, 248, // max_field_number, fast_idx_mask offsetof(ParseTableT_, field_lookup_table), 3758096895, // skipmap offsetof(ParseTableT_, field_entries), - 99, // num_field_entries + 104, // num_field_entries 17, // num_aux_entries offsetof(ParseTableT_, aux_entries), class_data, @@ -2659,7 +2659,7 @@ constexpr XtcpConfig::ParseTableT_ XtcpConfig::InternalGenerateParseTable_(const {1018, 1, 0, PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.xtcp_proto_file_)}}, }}, {{ - 40, 0, 14, + 40, 0, 15, 33728, 20, 64527, 31, 61695, 37, @@ -2673,7 +2673,8 @@ constexpr XtcpConfig::ParseTableT_ XtcpConfig::InternalGenerateParseTable_(const 58360, 80, 49039, 86, 255, 90, - 65531, 98, + 4091, 98, + 65534, 103, 65535, 65535 }}, {{ // uint64 nl_timeout_milliseconds = 10 [json_name = "nlTimeoutMilliseconds", (.buf.validate.field) = { @@ -2717,27 +2718,27 @@ constexpr XtcpConfig::ParseTableT_ XtcpConfig::InternalGenerateParseTable_(const // uint32 io_uring_sockstat_workers = 29 [json_name = "ioUringSockstatWorkers", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.io_uring_sockstat_workers_), _Internal::kHasBitsOffset + 21, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // .google.protobuf.Duration reconcile_frequency = 40 [json_name = "reconcileFrequency", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.reconcile_frequency_), _Internal::kHasBitsOffset + 51, 3, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.reconcile_frequency_), _Internal::kHasBitsOffset + 52, 3, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // bool reconcile_before_poll = 41 [json_name = "reconcileBeforePoll"]; - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.reconcile_before_poll_), _Internal::kHasBitsOffset + 72, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.reconcile_before_poll_), _Internal::kHasBitsOffset + 73, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // uint32 max_netns = 42 [json_name = "maxNetns", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.max_netns_), _Internal::kHasBitsOffset + 64, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.max_netns_), _Internal::kHasBitsOffset + 65, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // .google.protobuf.Duration reconcile_timeout = 43 [json_name = "reconcileTimeout", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.reconcile_timeout_), _Internal::kHasBitsOffset + 52, 4, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.reconcile_timeout_), _Internal::kHasBitsOffset + 53, 4, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // uint32 max_netns_per_owner = 44 [json_name = "maxNetnsPerOwner", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.max_netns_per_owner_), _Internal::kHasBitsOffset + 65, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.max_netns_per_owner_), _Internal::kHasBitsOffset + 66, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // uint32 max_netns_adds_per_reconcile = 45 [json_name = "maxNetnsAddsPerReconcile", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.max_netns_adds_per_reconcile_), _Internal::kHasBitsOffset + 66, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.max_netns_adds_per_reconcile_), _Internal::kHasBitsOffset + 67, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // uint32 write_files = 50 [json_name = "writeFiles", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.write_files_), _Internal::kHasBitsOffset + 67, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.write_files_), _Internal::kHasBitsOffset + 68, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // string capture_path = 51 [json_name = "capturePath", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.capture_path_), _Internal::kHasBitsOffset + 24, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // uint32 dest_write_files = 52 [json_name = "destWriteFiles", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.dest_write_files_), _Internal::kHasBitsOffset + 68, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.dest_write_files_), _Internal::kHasBitsOffset + 69, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // uint32 debug_level = 53 [json_name = "debugLevel", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.debug_level_), _Internal::kHasBitsOffset + 69, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.debug_level_), _Internal::kHasBitsOffset + 70, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // bool debug_prometheus = 54 [json_name = "debugPrometheus", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.debug_prometheus_), _Internal::kHasBitsOffset + 73, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.debug_prometheus_), _Internal::kHasBitsOffset + 74, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // string dest = 60 [json_name = "dest", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.dest_), _Internal::kHasBitsOffset + 25, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string marshal_to = 61 [json_name = "marshalTo", (.buf.validate.field) = { @@ -2747,15 +2748,15 @@ constexpr XtcpConfig::ParseTableT_ XtcpConfig::InternalGenerateParseTable_(const // string xtcp_proto_file = 63 [json_name = "xtcpProtoFile", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.xtcp_proto_file_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // uint32 envelope_flush_threshold_bytes = 64 [json_name = "envelopeFlushThresholdBytes", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.envelope_flush_threshold_bytes_), _Internal::kHasBitsOffset + 70, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.envelope_flush_threshold_bytes_), _Internal::kHasBitsOffset + 71, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // uint32 envelope_flush_threshold_rows = 65 [json_name = "envelopeFlushThresholdRows", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.envelope_flush_threshold_rows_), _Internal::kHasBitsOffset + 71, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.envelope_flush_threshold_rows_), _Internal::kHasBitsOffset + 72, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // string topic = 80 [json_name = "topic", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.topic_), _Internal::kHasBitsOffset + 27, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string kafka_schema_url = 81 [json_name = "kafkaSchemaUrl", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.kafka_schema_url_), _Internal::kHasBitsOffset + 28, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // .google.protobuf.Duration kafka_produce_timeout = 82 [json_name = "kafkaProduceTimeout", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.kafka_produce_timeout_), _Internal::kHasBitsOffset + 53, 5, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.kafka_produce_timeout_), _Internal::kHasBitsOffset + 54, 5, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // string kafka_compression = 83 [json_name = "kafkaCompression", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.kafka_compression_), _Internal::kHasBitsOffset + 29, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string s3_endpoint = 100 [json_name = "s3Endpoint", (.buf.validate.field) = { @@ -2771,37 +2772,37 @@ constexpr XtcpConfig::ParseTableT_ XtcpConfig::InternalGenerateParseTable_(const // string s3_secret_key = 105 [json_name = "s3SecretKey", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_secret_key_), _Internal::kHasBitsOffset + 35, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // bool s3_skip_bucket_probe = 106 [json_name = "s3SkipBucketProbe", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_skip_bucket_probe_), _Internal::kHasBitsOffset + 74, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_skip_bucket_probe_), _Internal::kHasBitsOffset + 75, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bool s3_allow_insecure = 107 [json_name = "s3AllowInsecure", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_allow_insecure_), _Internal::kHasBitsOffset + 75, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_allow_insecure_), _Internal::kHasBitsOffset + 76, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // string s3_ca_file = 108 [json_name = "s3CaFile", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_ca_file_), _Internal::kHasBitsOffset + 36, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // uint32 s3_parquet_flush_threshold_bytes = 110 [json_name = "s3ParquetFlushThresholdBytes", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_parquet_flush_threshold_bytes_), _Internal::kHasBitsOffset + 76, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_parquet_flush_threshold_bytes_), _Internal::kHasBitsOffset + 77, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // .google.protobuf.Duration s3_flush_interval = 111 [json_name = "s3FlushInterval", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_flush_interval_), _Internal::kHasBitsOffset + 54, 6, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_flush_interval_), _Internal::kHasBitsOffset + 55, 6, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // uint32 s3_flush_jitter_pct = 112 [json_name = "s3FlushJitterPct", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_flush_jitter_pct_), _Internal::kHasBitsOffset + 77, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_flush_jitter_pct_), _Internal::kHasBitsOffset + 78, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // uint32 s3_flush_threshold_jitter_pct = 113 [json_name = "s3FlushThresholdJitterPct", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_flush_threshold_jitter_pct_), _Internal::kHasBitsOffset + 78, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_flush_threshold_jitter_pct_), _Internal::kHasBitsOffset + 79, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // uint32 s3_upload_max_attempts = 114 [json_name = "s3UploadMaxAttempts", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_upload_max_attempts_), _Internal::kHasBitsOffset + 79, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_upload_max_attempts_), _Internal::kHasBitsOffset + 80, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // .google.protobuf.Duration s3_upload_backoff_cap = 115 [json_name = "s3UploadBackoffCap", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_upload_backoff_cap_), _Internal::kHasBitsOffset + 55, 7, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_upload_backoff_cap_), _Internal::kHasBitsOffset + 56, 7, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // uint32 s3_queue_depth = 116 [json_name = "s3QueueDepth", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_queue_depth_), _Internal::kHasBitsOffset + 80, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_queue_depth_), _Internal::kHasBitsOffset + 81, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // uint64 s3_max_buffered_bytes = 117 [json_name = "s3MaxBufferedBytes", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_max_buffered_bytes_), _Internal::kHasBitsOffset + 81, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_max_buffered_bytes_), _Internal::kHasBitsOffset + 82, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // string s3_spill_dir = 118 [json_name = "s3SpillDir", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_spill_dir_), _Internal::kHasBitsOffset + 37, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // uint64 s3_spill_max_bytes = 119 [json_name = "s3SpillMaxBytes", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_spill_max_bytes_), _Internal::kHasBitsOffset + 82, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.s3_spill_max_bytes_), _Internal::kHasBitsOffset + 83, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // .google.protobuf.Duration tcp_write_timeout = 120 [json_name = "tcpWriteTimeout", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.tcp_write_timeout_), _Internal::kHasBitsOffset + 56, 8, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.tcp_write_timeout_), _Internal::kHasBitsOffset + 57, 8, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // uint32 tcp_queue_depth = 121 [json_name = "tcpQueueDepth", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.tcp_queue_depth_), _Internal::kHasBitsOffset + 84, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.tcp_queue_depth_), _Internal::kHasBitsOffset + 85, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // uint64 tcp_max_buffered_bytes = 122 [json_name = "tcpMaxBufferedBytes", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.tcp_max_buffered_bytes_), _Internal::kHasBitsOffset + 83, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.tcp_max_buffered_bytes_), _Internal::kHasBitsOffset + 84, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // string hostname = 130 [json_name = "hostname", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.hostname_), _Internal::kHasBitsOffset + 38, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string location = 131 [json_name = "location", (.buf.validate.field) = { @@ -2813,19 +2814,19 @@ constexpr XtcpConfig::ParseTableT_ XtcpConfig::InternalGenerateParseTable_(const // string daemon_version = 134 [json_name = "daemonVersion", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.daemon_version_), _Internal::kHasBitsOffset + 42, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // uint32 ipv4_ttl = 150 [json_name = "ipv4Ttl", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.ipv4_ttl_), _Internal::kHasBitsOffset + 85, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.ipv4_ttl_), _Internal::kHasBitsOffset + 86, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // uint32 ipv6_hop_limit = 151 [json_name = "ipv6HopLimit", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.ipv6_hop_limit_), _Internal::kHasBitsOffset + 86, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.ipv6_hop_limit_), _Internal::kHasBitsOffset + 87, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // .xtcp_config.v1.ListenerAuth listener_auth = 152 [json_name = "listenerAuth", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.listener_auth_), _Internal::kHasBitsOffset + 57, 9, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.listener_auth_), _Internal::kHasBitsOffset + 58, 9, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // .xtcp_config.v1.ListenerEndpoint prometheus_listener = 153 [json_name = "prometheusListener", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.prometheus_listener_), _Internal::kHasBitsOffset + 58, 10, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.prometheus_listener_), _Internal::kHasBitsOffset + 59, 10, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // .xtcp_config.v1.ListenerAuth admin_listener_auth = 154 [json_name = "adminListenerAuth", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.admin_listener_auth_), _Internal::kHasBitsOffset + 59, 11, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.admin_listener_auth_), _Internal::kHasBitsOffset + 60, 11, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // uint32 grpc_port = 160 [json_name = "grpcPort", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.grpc_port_), _Internal::kHasBitsOffset + 87, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.grpc_port_), _Internal::kHasBitsOffset + 88, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // .xtcp_config.v1.ListenerEndpoint grpc_listener = 161 [json_name = "grpcListener", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.grpc_listener_), _Internal::kHasBitsOffset + 60, 12, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.grpc_listener_), _Internal::kHasBitsOffset + 61, 12, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // repeated .xtcp_config.v1.Listener listeners = 162 [json_name = "listeners", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.listeners_), _Internal::kHasBitsOffset + 22, 13, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, // string pyroscope_url = 170 [json_name = "pyroscopeUrl", (.buf.validate.field) = { @@ -2833,47 +2834,57 @@ constexpr XtcpConfig::ParseTableT_ XtcpConfig::InternalGenerateParseTable_(const // string pyroscope_app_name = 171 [json_name = "pyroscopeAppName", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.pyroscope_app_name_), _Internal::kHasBitsOffset + 44, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // uint32 pyroscope_sample_hz = 172 [json_name = "pyroscopeSampleHz", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.pyroscope_sample_hz_), _Internal::kHasBitsOffset + 88, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.pyroscope_sample_hz_), _Internal::kHasBitsOffset + 89, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // uint32 pyroscope_upload_interval_sec = 173 [json_name = "pyroscopeUploadIntervalSec", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.pyroscope_upload_interval_sec_), _Internal::kHasBitsOffset + 89, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.pyroscope_upload_interval_sec_), _Internal::kHasBitsOffset + 90, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // bool resolve_container_id = 200 [json_name = "resolveContainerId", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.resolve_container_id_), _Internal::kHasBitsOffset + 90, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.resolve_container_id_), _Internal::kHasBitsOffset + 91, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bool enrich_container_enable = 201 [json_name = "enrichContainerEnable"]; - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.enrich_container_enable_), _Internal::kHasBitsOffset + 91, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.enrich_container_enable_), _Internal::kHasBitsOffset + 92, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // string docker_socket_path = 202 [json_name = "dockerSocketPath", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.docker_socket_path_), _Internal::kHasBitsOffset + 45, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // bool enrich_lldp_enable = 210 [json_name = "enrichLldpEnable"]; - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.enrich_lldp_enable_), _Internal::kHasBitsOffset + 92, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.enrich_lldp_enable_), _Internal::kHasBitsOffset + 93, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // string lldpd_socket_path = 211 [json_name = "lldpdSocketPath", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.lldpd_socket_path_), _Internal::kHasBitsOffset + 46, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string lldpd_version_hint = 212 [json_name = "lldpdVersionHint", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.lldpd_version_hint_), _Internal::kHasBitsOffset + 47, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // bool enrich_nic_enable = 220 [json_name = "enrichNicEnable"]; - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.enrich_nic_enable_), _Internal::kHasBitsOffset + 93, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.enrich_nic_enable_), _Internal::kHasBitsOffset + 94, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // uint32 uplink_count = 221 [json_name = "uplinkCount", (.buf.validate.field) = { - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.uplink_count_), _Internal::kHasBitsOffset + 94, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.uplink_count_), _Internal::kHasBitsOffset + 95, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // repeated string uplink_interfaces = 222 [json_name = "uplinkInterfaces", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.uplink_interfaces_), _Internal::kHasBitsOffset + 23, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, // bool populate_nsid = 230 [json_name = "populateNsid"]; - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.populate_nsid_), _Internal::kHasBitsOffset + 95, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.populate_nsid_), _Internal::kHasBitsOffset + 96, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bool enrich_asn_enable = 240 [json_name = "enrichAsnEnable"]; - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.enrich_asn_enable_), _Internal::kHasBitsOffset + 96, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.enrich_asn_enable_), _Internal::kHasBitsOffset + 97, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // string asn_db_path = 241 [json_name = "asnDbPath", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.asn_db_path_), _Internal::kHasBitsOffset + 48, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // .google.protobuf.Duration asn_refresh_interval = 242 [json_name = "asnRefreshInterval"]; - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.asn_refresh_interval_), _Internal::kHasBitsOffset + 61, 14, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.asn_refresh_interval_), _Internal::kHasBitsOffset + 62, 14, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // string ipmeta_bootstrap_path = 243 [json_name = "ipmetaBootstrapPath", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.ipmeta_bootstrap_path_), _Internal::kHasBitsOffset + 49, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string ipmeta_cache_path = 244 [json_name = "ipmetaCachePath", (.buf.validate.field) = { {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.ipmeta_cache_path_), _Internal::kHasBitsOffset + 50, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // bool enrich_locality_enable = 245 [json_name = "enrichLocalityEnable"]; - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.enrich_locality_enable_), _Internal::kHasBitsOffset + 97, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.enrich_locality_enable_), _Internal::kHasBitsOffset + 98, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // .google.protobuf.Duration locality_refresh_interval = 246 [json_name = "localityRefreshInterval"]; - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.locality_refresh_interval_), _Internal::kHasBitsOffset + 62, 15, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.locality_refresh_interval_), _Internal::kHasBitsOffset + 63, 15, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // bool locality_events_enable = 247 [json_name = "localityEventsEnable"]; - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.locality_events_enable_), _Internal::kHasBitsOffset + 98, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.locality_events_enable_), _Internal::kHasBitsOffset + 99, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // .xtcp_config.v1.LinkMonitorConfig link_monitor = 250 [json_name = "linkMonitor"]; - {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.link_monitor_), _Internal::kHasBitsOffset + 63, 16, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.link_monitor_), _Internal::kHasBitsOffset + 64, 16, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // bool events_enable = 260 [json_name = "eventsEnable"]; + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.events_enable_), _Internal::kHasBitsOffset + 100, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // string events_dest = 261 [json_name = "eventsDest", (.buf.validate.field) = { + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.events_dest_), _Internal::kHasBitsOffset + 51, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // uint32 events_flush_interval_ms = 262 [json_name = "eventsFlushIntervalMs", (.buf.validate.field) = { + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.events_flush_interval_ms_), _Internal::kHasBitsOffset + 101, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + // uint32 events_flush_threshold_rows = 263 [json_name = "eventsFlushThresholdRows", (.buf.validate.field) = { + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.events_flush_threshold_rows_), _Internal::kHasBitsOffset + 102, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + // uint32 events_flush_threshold_bytes = 264 [json_name = "eventsFlushThresholdBytes", (.buf.validate.field) = { + {PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.events_flush_threshold_bytes_), _Internal::kHasBitsOffset + 103, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, }}, {{ #ifndef PROTOBUF_MESSAGE_GLOBALS @@ -2963,7 +2974,7 @@ constexpr XtcpConfig::ParseTableT_ XtcpConfig::InternalGenerateParseTable_(const #endif }}, {{ - "\31\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\14\0\0\0\4\12\13\17\0\0\5\20\0\21\13\11\11\11\15\15\0\0\12\0\0\0\0\0\0\0\0\14\0\0\0\0\10\10\5\3\16\0\0\0\0\0\0\0\0\15\22\0\0\0\0\22\0\21\22\0\0\21\0\0\13\0\25\21\0\0\0\0\0\0\0\0" + "\31\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\14\0\0\0\4\12\13\17\0\0\5\20\0\21\13\11\11\11\15\15\0\0\12\0\0\0\0\0\0\0\0\14\0\0\0\0\10\10\5\3\16\0\0\0\0\0\0\0\0\15\22\0\0\0\0\22\0\21\22\0\0\21\0\0\13\0\25\21\0\0\0\0\0\13\0\0\0\0\0\0\0\0\0\0" "xtcp_config.v1.XtcpConfig" "capture_path" "dest" @@ -2995,6 +3006,7 @@ constexpr XtcpConfig::ParseTableT_ XtcpConfig::InternalGenerateParseTable_(const "asn_db_path" "ipmeta_bootstrap_path" "ipmeta_cache_path" + "events_dest" }}, }; } @@ -3120,6 +3132,9 @@ inline constexpr XtcpConfig::Impl_::Impl_( ipmeta_cache_path_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), + events_dest_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), reconcile_frequency_{nullptr}, reconcile_timeout_{nullptr}, kafka_produce_timeout_{nullptr}, @@ -3167,7 +3182,11 @@ inline constexpr XtcpConfig::Impl_::Impl_( populate_nsid_{false}, enrich_asn_enable_{false}, enrich_locality_enable_{false}, - locality_events_enable_{false} {} + locality_events_enable_{false}, + events_enable_{false}, + events_flush_interval_ms_{0u}, + events_flush_threshold_rows_{0u}, + events_flush_threshold_bytes_{0u} {} template constexpr XtcpConfig::XtcpConfig(::_pbi::ConstantInitialized, @@ -4324,7 +4343,7 @@ const ::uint32_t 22, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::xtcp_config::v1::XtcpConfig, _impl_._has_bits_), - 102, // hasbit index offset + 107, // hasbit index offset PROTOBUF_FIELD_OFFSET(::xtcp_config::v1::XtcpConfig, _impl_.nl_timeout_milliseconds_), PROTOBUF_FIELD_OFFSET(::xtcp_config::v1::XtcpConfig, _impl_.poll_frequency_), PROTOBUF_FIELD_OFFSET(::xtcp_config::v1::XtcpConfig, _impl_.poll_timeout_), @@ -4424,6 +4443,11 @@ const ::uint32_t PROTOBUF_FIELD_OFFSET(::xtcp_config::v1::XtcpConfig, _impl_.locality_refresh_interval_), PROTOBUF_FIELD_OFFSET(::xtcp_config::v1::XtcpConfig, _impl_.locality_events_enable_), PROTOBUF_FIELD_OFFSET(::xtcp_config::v1::XtcpConfig, _impl_.link_monitor_), + PROTOBUF_FIELD_OFFSET(::xtcp_config::v1::XtcpConfig, _impl_.events_enable_), + PROTOBUF_FIELD_OFFSET(::xtcp_config::v1::XtcpConfig, _impl_.events_dest_), + PROTOBUF_FIELD_OFFSET(::xtcp_config::v1::XtcpConfig, _impl_.events_flush_interval_ms_), + PROTOBUF_FIELD_OFFSET(::xtcp_config::v1::XtcpConfig, _impl_.events_flush_threshold_rows_), + PROTOBUF_FIELD_OFFSET(::xtcp_config::v1::XtcpConfig, _impl_.events_flush_threshold_bytes_), 5, 2, 3, @@ -4444,26 +4468,26 @@ const ::uint32_t 19, 20, 21, - 51, - 72, - 64, 52, + 73, 65, + 53, 66, 67, - 24, 68, + 24, 69, - 73, + 70, + 74, 25, 26, 0, 1, - 70, 71, + 72, 27, 28, - 53, + 54, 29, 30, 31, @@ -4471,58 +4495,63 @@ const ::uint32_t 33, 34, 35, - 74, 75, - 36, 76, - 54, + 36, 77, + 55, 78, 79, - 55, 80, + 56, 81, - 37, 82, - 56, - 84, + 37, 83, + 57, + 85, + 84, 38, 39, 40, 41, 42, - 85, 86, - 57, + 87, 58, 59, - 87, 60, + 88, + 61, 22, 43, 44, - 88, 89, 90, 91, - 45, 92, + 45, + 93, 46, 47, - 93, 94, - 23, 95, + 23, 96, + 97, 48, - 61, + 62, 49, 50, - 97, - 62, 98, 63, + 99, + 64, + 100, + 51, + 101, + 102, + 103, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::xtcp_config::v1::EnabledDeserializers_EnabledEntry_DoNotUse, _impl_._has_bits_), 5, // hasbit index offset @@ -4558,8 +4587,8 @@ static const ::_pbi::MigrationSchema {104, sizeof(::xtcp_config::v1::Listener)}, {117, sizeof(::xtcp_config::v1::LinkMonitorConfig)}, {176, sizeof(::xtcp_config::v1::XtcpConfig)}, - {377, sizeof(::xtcp_config::v1::EnabledDeserializers_EnabledEntry_DoNotUse)}, - {384, sizeof(::xtcp_config::v1::EnabledDeserializers)}, + {387, sizeof(::xtcp_config::v1::EnabledDeserializers_EnabledEntry_DoNotUse)}, + {394, sizeof(::xtcp_config::v1::EnabledDeserializers)}, }; static const ::_pbi::MessageGlobalsBase* PROTOBUF_NONNULL const file_message_globals[] = { @@ -4718,7 +4747,7 @@ const char descriptor_table_protodef_xtcp_5fconfig_2fv1_2fxtcp_5fconfig_2eproto[ "(\0132\031.google.protobuf.DurationB\016\272H\013\252\001\010\"\004\010" "\200\243\0052\000R\rlearnDeadlineB\020\n\016_error_classesB\025" "\n\023_metrics_categoriesB\032\n\030_metrics_interf" - "ace_pathsB\023\n\021_metrics_all_path\"\372.\n\nXtcpC" + "ace_pathsB\023\n\021_metrics_all_path\"\2431\n\nXtcpC" "onfig\022F\n\027nl_timeout_milliseconds\030\n \001(\004B\016" "\272H\0132\006\030\240\215\006(\000\310\001\001R\025nlTimeoutMilliseconds\022U\n" "\016poll_frequency\030\013 \001(\0132\031.google.protobuf." @@ -4866,55 +4895,62 @@ const char descriptor_table_protodef_xtcp_5fconfig_2fv1_2fxtcp_5fconfig_2eproto[ "\0225\n\026locality_events_enable\030\367\001 \001(\010R\024local" "ityEventsEnable\022E\n\014link_monitor\030\372\001 \001(\0132!" ".xtcp_config.v1.LinkMonitorConfigR\013linkM" - "onitor:s\272Hp\032n\n\017XtcpConfig.poll\0222Poll tim" - "eout must be less than poll poll_frequen" - "cy\032\'this.poll_frequency > this.poll_time" - "out\"\237\001\n\024EnabledDeserializers\022K\n\007enabled\030" - "\001 \003(\01321.xtcp_config.v1.EnabledDeserializ" - "ers.EnabledEntryR\007enabled\032:\n\014EnabledEntr" - "y\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\010R\005valu" - "e:\0028\001*h\n\017ListenerNetwork\022 \n\034LISTENER_NET" - "WORK_UNSPECIFIED\020\000\022\030\n\024LISTENER_NETWORK_T" - "CP\020\001\022\031\n\025LISTENER_NETWORK_UNIX\020\002*\241\001\n\020List" - "enerAuthMode\022\"\n\036LISTENER_AUTH_MODE_UNSPE" - "CIFIED\020\000\022\037\n\033LISTENER_AUTH_MODE_DISABLED\020" - "\001\022 \n\034LISTENER_AUTH_MODE_RAW_TOKEN\020\002\022&\n\"L" - "ISTENER_AUTH_MODE_HMAC_UTC_MINUTE\020\003*\367\001\n\r" - "EndpointClass\022\036\n\032ENDPOINT_CLASS_UNSPECIF" - "IED\020\000\022\031\n\025ENDPOINT_CLASS_HEALTH\020\001\022\032\n\026ENDP" - "OINT_CLASS_METRICS\020\002\022!\n\035ENDPOINT_CLASS_M" - "ETRICS_DETAIL\020\003\022\025\n\021ENDPOINT_CLASS_IP\020\004\022\030" - "\n\024ENDPOINT_CLASS_DEBUG\020\005\022\034\n\030ENDPOINT_CLA" - "SS_GRPC_READ\020\006\022\035\n\031ENDPOINT_CLASS_GRPC_AD" - "MIN\020\0072\245\007\n\rConfigService\022a\n\003Get\022\032.xtcp_co" - "nfig.v1.GetRequest\032\033.xtcp_config.v1.GetR" - "esponse\"!\310\363\030\001\202\323\344\223\002\027\032\022/ConfigService/Get:" - "\001*\022a\n\003Set\022\032.xtcp_config.v1.SetRequest\032\033." - "xtcp_config.v1.SetResponse\"!\310\363\030\002\202\323\344\223\002\027\032\022" - "/ConfigService/Set:\001*\022\225\001\n\020SetPollFrequen" - "cy\022\'.xtcp_config.v1.SetPollFrequencyRequ" - "est\032(.xtcp_config.v1.SetPollFrequencyRes" - "ponse\".\310\363\030\002\202\323\344\223\002$\032\037/ConfigService/SetPol" - "lFrequency:\001*\022\201\001\n\013TriggerPoll\022\".xtcp_con" - "fig.v1.TriggerPollRequest\032#.xtcp_config." - "v1.TriggerPollResponse\")\310\363\030\002\202\323\344\223\002\037\032\032/Con" - "figService/TriggerPoll:\001*\022\225\001\n\020TriggerPol" - "lBurst\022\'.xtcp_config.v1.TriggerPollBurst" - "Request\032(.xtcp_config.v1.TriggerPollBurs" - "tResponse\".\310\363\030\002\202\323\344\223\002$\032\037/ConfigService/Tr" - "iggerPollBurst:\001*\022\201\001\n\013SetS3Upload\022\".xtcp" - "_config.v1.SetS3UploadRequest\032#.xtcp_con" - "fig.v1.SetS3UploadResponse\")\310\363\030\002\202\323\344\223\002\037\032\032" - "/ConfigService/SetS3Upload:\001*\022\225\001\n\020SetEnv" - "elopeFlush\022\'.xtcp_config.v1.SetEnvelopeF" - "lushRequest\032(.xtcp_config.v1.SetEnvelope" - "FlushResponse\".\310\363\030\002\202\323\344\223\002$\032\037/ConfigServic" - "e/SetEnvelopeFlush:\001*B\257\001\n\022com.xtcp_confi" - "g.v1B\017XtcpConfigProtoP\001Z3github.com/rand" - "omizedcoder/xtcp2/gen/go/xtcp_config\242\002\003X" - "XX\252\002\rXtcpConfig.V1\312\002\rXtcpConfig\\V1\342\002\031Xtc" - "pConfig\\V1\\GPBMetadata\352\002\016XtcpConfig::V1b" - "\006proto3" + "onitor\022$\n\revents_enable\030\204\002 \001(\010R\014eventsEn" + "able\022-\n\013events_dest\030\205\002 \001(\tB\013\272H\010r\003\030\200\004\310\001\000R" + "\neventsDest\022@\n\030events_flush_interval_ms\030" + "\206\002 \001(\rB\006\272H\003\310\001\000R\025eventsFlushIntervalMs\022F\n" + "\033events_flush_threshold_rows\030\207\002 \001(\rB\006\272H\003" + "\310\001\000R\030eventsFlushThresholdRows\022H\n\034events_" + "flush_threshold_bytes\030\210\002 \001(\rB\006\272H\003\310\001\000R\031ev" + "entsFlushThresholdBytes:s\272Hp\032n\n\017XtcpConf" + "ig.poll\0222Poll timeout must be less than " + "poll poll_frequency\032\'this.poll_frequency" + " > this.poll_timeout\"\237\001\n\024EnabledDeserial" + "izers\022K\n\007enabled\030\001 \003(\01321.xtcp_config.v1." + "EnabledDeserializers.EnabledEntryR\007enabl" + "ed\032:\n\014EnabledEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005" + "value\030\002 \001(\010R\005value:\0028\001*h\n\017ListenerNetwor" + "k\022 \n\034LISTENER_NETWORK_UNSPECIFIED\020\000\022\030\n\024L" + "ISTENER_NETWORK_TCP\020\001\022\031\n\025LISTENER_NETWOR" + "K_UNIX\020\002*\241\001\n\020ListenerAuthMode\022\"\n\036LISTENE" + "R_AUTH_MODE_UNSPECIFIED\020\000\022\037\n\033LISTENER_AU" + "TH_MODE_DISABLED\020\001\022 \n\034LISTENER_AUTH_MODE" + "_RAW_TOKEN\020\002\022&\n\"LISTENER_AUTH_MODE_HMAC_" + "UTC_MINUTE\020\003*\367\001\n\rEndpointClass\022\036\n\032ENDPOI" + "NT_CLASS_UNSPECIFIED\020\000\022\031\n\025ENDPOINT_CLASS" + "_HEALTH\020\001\022\032\n\026ENDPOINT_CLASS_METRICS\020\002\022!\n" + "\035ENDPOINT_CLASS_METRICS_DETAIL\020\003\022\025\n\021ENDP" + "OINT_CLASS_IP\020\004\022\030\n\024ENDPOINT_CLASS_DEBUG\020" + "\005\022\034\n\030ENDPOINT_CLASS_GRPC_READ\020\006\022\035\n\031ENDPO" + "INT_CLASS_GRPC_ADMIN\020\0072\245\007\n\rConfigService" + "\022a\n\003Get\022\032.xtcp_config.v1.GetRequest\032\033.xt" + "cp_config.v1.GetResponse\"!\310\363\030\001\202\323\344\223\002\027\032\022/C" + "onfigService/Get:\001*\022a\n\003Set\022\032.xtcp_config" + ".v1.SetRequest\032\033.xtcp_config.v1.SetRespo" + "nse\"!\310\363\030\002\202\323\344\223\002\027\032\022/ConfigService/Set:\001*\022\225" + "\001\n\020SetPollFrequency\022\'.xtcp_config.v1.Set" + "PollFrequencyRequest\032(.xtcp_config.v1.Se" + "tPollFrequencyResponse\".\310\363\030\002\202\323\344\223\002$\032\037/Con" + "figService/SetPollFrequency:\001*\022\201\001\n\013Trigg" + "erPoll\022\".xtcp_config.v1.TriggerPollReque" + "st\032#.xtcp_config.v1.TriggerPollResponse\"" + ")\310\363\030\002\202\323\344\223\002\037\032\032/ConfigService/TriggerPoll:" + "\001*\022\225\001\n\020TriggerPollBurst\022\'.xtcp_config.v1" + ".TriggerPollBurstRequest\032(.xtcp_config.v" + "1.TriggerPollBurstResponse\".\310\363\030\002\202\323\344\223\002$\032\037" + "/ConfigService/TriggerPollBurst:\001*\022\201\001\n\013S" + "etS3Upload\022\".xtcp_config.v1.SetS3UploadR" + "equest\032#.xtcp_config.v1.SetS3UploadRespo" + "nse\")\310\363\030\002\202\323\344\223\002\037\032\032/ConfigService/SetS3Upl" + "oad:\001*\022\225\001\n\020SetEnvelopeFlush\022\'.xtcp_confi" + "g.v1.SetEnvelopeFlushRequest\032(.xtcp_conf" + "ig.v1.SetEnvelopeFlushResponse\".\310\363\030\002\202\323\344\223" + "\002$\032\037/ConfigService/SetEnvelopeFlush:\001*B\257" + "\001\n\022com.xtcp_config.v1B\017XtcpConfigProtoP\001" + "Z3github.com/randomizedcoder/xtcp2/gen/g" + "o/xtcp_config\242\002\003XXX\252\002\rXtcpConfig.V1\312\002\rXt" + "cpConfig\\V1\342\002\031XtcpConfig\\V1\\GPBMetadata\352" + "\002\016XtcpConfig::V1b\006proto3" }; static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL const descriptor_table_xtcp_5fconfig_2fv1_2fxtcp_5fconfig_2eproto_deps[4] = { @@ -4927,7 +4963,7 @@ static ::absl::once_flag descriptor_table_xtcp_5fconfig_2fv1_2fxtcp_5fconfig_2ep PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_xtcp_5fconfig_2fv1_2fxtcp_5fconfig_2eproto = { false, false, - 13087, + 13384, descriptor_table_protodef_xtcp_5fconfig_2fv1_2fxtcp_5fconfig_2eproto, "xtcp_config/v1/xtcp_config.proto", &descriptor_table_xtcp_5fconfig_2fv1_2fxtcp_5fconfig_2eproto_once, @@ -9847,42 +9883,42 @@ void XtcpConfig::clear_poll_timeout() { void XtcpConfig::clear_reconcile_frequency() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.reconcile_frequency_ != nullptr) _impl_.reconcile_frequency_->Clear(); - ClearHasBit(_impl_._has_bits_[1], 0x00080000U); + ClearHasBit(_impl_._has_bits_[1], 0x00100000U); } void XtcpConfig::clear_reconcile_timeout() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.reconcile_timeout_ != nullptr) _impl_.reconcile_timeout_->Clear(); - ClearHasBit(_impl_._has_bits_[1], 0x00100000U); + ClearHasBit(_impl_._has_bits_[1], 0x00200000U); } void XtcpConfig::clear_kafka_produce_timeout() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.kafka_produce_timeout_ != nullptr) _impl_.kafka_produce_timeout_->Clear(); - ClearHasBit(_impl_._has_bits_[1], 0x00200000U); + ClearHasBit(_impl_._has_bits_[1], 0x00400000U); } void XtcpConfig::clear_s3_flush_interval() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.s3_flush_interval_ != nullptr) _impl_.s3_flush_interval_->Clear(); - ClearHasBit(_impl_._has_bits_[1], 0x00400000U); + ClearHasBit(_impl_._has_bits_[1], 0x00800000U); } void XtcpConfig::clear_s3_upload_backoff_cap() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.s3_upload_backoff_cap_ != nullptr) _impl_.s3_upload_backoff_cap_->Clear(); - ClearHasBit(_impl_._has_bits_[1], 0x00800000U); + ClearHasBit(_impl_._has_bits_[1], 0x01000000U); } void XtcpConfig::clear_tcp_write_timeout() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.tcp_write_timeout_ != nullptr) _impl_.tcp_write_timeout_->Clear(); - ClearHasBit(_impl_._has_bits_[1], 0x01000000U); + ClearHasBit(_impl_._has_bits_[1], 0x02000000U); } void XtcpConfig::clear_asn_refresh_interval() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.asn_refresh_interval_ != nullptr) _impl_.asn_refresh_interval_->Clear(); - ClearHasBit(_impl_._has_bits_[1], 0x20000000U); + ClearHasBit(_impl_._has_bits_[1], 0x40000000U); } void XtcpConfig::clear_locality_refresh_interval() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.locality_refresh_interval_ != nullptr) _impl_.locality_refresh_interval_->Clear(); - ClearHasBit(_impl_._has_bits_[1], 0x40000000U); + ClearHasBit(_impl_._has_bits_[1], 0x80000000U); } XtcpConfig::XtcpConfig(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) @@ -9940,7 +9976,8 @@ PROTOBUF_NDEBUG_INLINE XtcpConfig::Impl_::Impl_( lldpd_version_hint_(arena, from.lldpd_version_hint_), asn_db_path_(arena, from.asn_db_path_), ipmeta_bootstrap_path_(arena, from.ipmeta_bootstrap_path_), - ipmeta_cache_path_(arena, from.ipmeta_cache_path_) {} + ipmeta_cache_path_(arena, from.ipmeta_cache_path_), + events_dest_(arena, from.events_dest_) {} XtcpConfig::XtcpConfig( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, @@ -9974,52 +10011,53 @@ XtcpConfig::XtcpConfig( offsetof(Impl_, nl_timeout_milliseconds_) + sizeof(Impl_::io_uring_sockstat_workers_)); cached_has_bits = _impl_._has_bits_[1]; - _impl_.reconcile_frequency_ = (CheckHasBit(cached_has_bits, 0x00080000U)) + _impl_.reconcile_frequency_ = (CheckHasBit(cached_has_bits, 0x00100000U)) ? Super_::CopyConstruct(arena, *from._impl_.reconcile_frequency_) : nullptr; - _impl_.reconcile_timeout_ = (CheckHasBit(cached_has_bits, 0x00100000U)) + _impl_.reconcile_timeout_ = (CheckHasBit(cached_has_bits, 0x00200000U)) ? Super_::CopyConstruct(arena, *from._impl_.reconcile_timeout_) : nullptr; - _impl_.kafka_produce_timeout_ = (CheckHasBit(cached_has_bits, 0x00200000U)) + _impl_.kafka_produce_timeout_ = (CheckHasBit(cached_has_bits, 0x00400000U)) ? Super_::CopyConstruct(arena, *from._impl_.kafka_produce_timeout_) : nullptr; - _impl_.s3_flush_interval_ = (CheckHasBit(cached_has_bits, 0x00400000U)) + _impl_.s3_flush_interval_ = (CheckHasBit(cached_has_bits, 0x00800000U)) ? Super_::CopyConstruct(arena, *from._impl_.s3_flush_interval_) : nullptr; - _impl_.s3_upload_backoff_cap_ = (CheckHasBit(cached_has_bits, 0x00800000U)) + _impl_.s3_upload_backoff_cap_ = (CheckHasBit(cached_has_bits, 0x01000000U)) ? Super_::CopyConstruct(arena, *from._impl_.s3_upload_backoff_cap_) : nullptr; - _impl_.tcp_write_timeout_ = (CheckHasBit(cached_has_bits, 0x01000000U)) + _impl_.tcp_write_timeout_ = (CheckHasBit(cached_has_bits, 0x02000000U)) ? Super_::CopyConstruct(arena, *from._impl_.tcp_write_timeout_) : nullptr; - _impl_.listener_auth_ = (CheckHasBit(cached_has_bits, 0x02000000U)) + _impl_.listener_auth_ = (CheckHasBit(cached_has_bits, 0x04000000U)) ? Super_::CopyConstruct(arena, *from._impl_.listener_auth_) : nullptr; - _impl_.prometheus_listener_ = (CheckHasBit(cached_has_bits, 0x04000000U)) + _impl_.prometheus_listener_ = (CheckHasBit(cached_has_bits, 0x08000000U)) ? Super_::CopyConstruct(arena, *from._impl_.prometheus_listener_) : nullptr; - _impl_.admin_listener_auth_ = (CheckHasBit(cached_has_bits, 0x08000000U)) + _impl_.admin_listener_auth_ = (CheckHasBit(cached_has_bits, 0x10000000U)) ? Super_::CopyConstruct(arena, *from._impl_.admin_listener_auth_) : nullptr; - _impl_.grpc_listener_ = (CheckHasBit(cached_has_bits, 0x10000000U)) + _impl_.grpc_listener_ = (CheckHasBit(cached_has_bits, 0x20000000U)) ? Super_::CopyConstruct(arena, *from._impl_.grpc_listener_) : nullptr; - _impl_.asn_refresh_interval_ = (CheckHasBit(cached_has_bits, 0x20000000U)) + _impl_.asn_refresh_interval_ = (CheckHasBit(cached_has_bits, 0x40000000U)) ? Super_::CopyConstruct(arena, *from._impl_.asn_refresh_interval_) : nullptr; - _impl_.locality_refresh_interval_ = (CheckHasBit(cached_has_bits, 0x40000000U)) + _impl_.locality_refresh_interval_ = (CheckHasBit(cached_has_bits, 0x80000000U)) ? Super_::CopyConstruct(arena, *from._impl_.locality_refresh_interval_) : nullptr; - _impl_.link_monitor_ = (CheckHasBit(cached_has_bits, 0x80000000U)) + cached_has_bits = _impl_._has_bits_[2]; + _impl_.link_monitor_ = (CheckHasBit(cached_has_bits, 0x00000001U)) ? Super_::CopyConstruct(arena, *from._impl_.link_monitor_) : nullptr; ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, max_netns_), reinterpret_cast(&from._impl_) + offsetof(Impl_, max_netns_), - offsetof(Impl_, locality_events_enable_) - + offsetof(Impl_, events_flush_threshold_bytes_) - offsetof(Impl_, max_netns_) + - sizeof(Impl_::locality_events_enable_)); + sizeof(Impl_::events_flush_threshold_bytes_)); // @@protoc_insertion_point(copy_constructor:xtcp_config.v1.XtcpConfig) } @@ -10064,7 +10102,8 @@ PROTOBUF_NDEBUG_INLINE XtcpConfig::Impl_::Impl_( lldpd_version_hint_(arena), asn_db_path_(arena), ipmeta_bootstrap_path_(arena), - ipmeta_cache_path_(arena) {} + ipmeta_cache_path_(arena), + events_dest_(arena) {} inline void XtcpConfig::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); @@ -10077,9 +10116,9 @@ inline void XtcpConfig::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, reconcile_frequency_), 0, - offsetof(Impl_, locality_events_enable_) - + offsetof(Impl_, events_flush_threshold_bytes_) - offsetof(Impl_, reconcile_frequency_) + - sizeof(Impl_::locality_events_enable_)); + sizeof(Impl_::events_flush_threshold_bytes_)); } XtcpConfig::~XtcpConfig() { // @@protoc_insertion_point(destructor:xtcp_config.v1.XtcpConfig) @@ -10124,6 +10163,7 @@ inline void XtcpConfig::SharedDtor(MessageLite& self) { this_._impl_.asn_db_path_.Destroy(); this_._impl_.ipmeta_bootstrap_path_.Destroy(); this_._impl_.ipmeta_cache_path_.Destroy(); + this_._impl_.events_dest_.Destroy(); delete this_._impl_.reconcile_frequency_; delete this_._impl_.reconcile_timeout_; delete this_._impl_.kafka_produce_timeout_; @@ -10310,96 +10350,99 @@ PROTOBUF_NOINLINE void XtcpConfig::Clear() { this_._impl_.ipmeta_cache_path_.ClearNonDefaultToEmpty(); } if (CheckHasBit(cached_has_bits, 0x00080000U)) { + this_._impl_.events_dest_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00100000U)) { ABSL_DCHECK(this_._impl_.reconcile_frequency_ != nullptr); this_._impl_.reconcile_frequency_->Clear(); } - if (CheckHasBit(cached_has_bits, 0x00100000U)) { + if (CheckHasBit(cached_has_bits, 0x00200000U)) { ABSL_DCHECK(this_._impl_.reconcile_timeout_ != nullptr); this_._impl_.reconcile_timeout_->Clear(); } - if (CheckHasBit(cached_has_bits, 0x00200000U)) { + if (CheckHasBit(cached_has_bits, 0x00400000U)) { ABSL_DCHECK(this_._impl_.kafka_produce_timeout_ != nullptr); this_._impl_.kafka_produce_timeout_->Clear(); } - if (CheckHasBit(cached_has_bits, 0x00400000U)) { + if (CheckHasBit(cached_has_bits, 0x00800000U)) { ABSL_DCHECK(this_._impl_.s3_flush_interval_ != nullptr); this_._impl_.s3_flush_interval_->Clear(); } - if (CheckHasBit(cached_has_bits, 0x00800000U)) { - ABSL_DCHECK(this_._impl_.s3_upload_backoff_cap_ != nullptr); - this_._impl_.s3_upload_backoff_cap_->Clear(); - } } if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) { if (CheckHasBit(cached_has_bits, 0x01000000U)) { + ABSL_DCHECK(this_._impl_.s3_upload_backoff_cap_ != nullptr); + this_._impl_.s3_upload_backoff_cap_->Clear(); + } + if (CheckHasBit(cached_has_bits, 0x02000000U)) { ABSL_DCHECK(this_._impl_.tcp_write_timeout_ != nullptr); this_._impl_.tcp_write_timeout_->Clear(); } - if (CheckHasBit(cached_has_bits, 0x02000000U)) { + if (CheckHasBit(cached_has_bits, 0x04000000U)) { ABSL_DCHECK(this_._impl_.listener_auth_ != nullptr); this_._impl_.listener_auth_->Clear(); } - if (CheckHasBit(cached_has_bits, 0x04000000U)) { + if (CheckHasBit(cached_has_bits, 0x08000000U)) { ABSL_DCHECK(this_._impl_.prometheus_listener_ != nullptr); this_._impl_.prometheus_listener_->Clear(); } - if (CheckHasBit(cached_has_bits, 0x08000000U)) { + if (CheckHasBit(cached_has_bits, 0x10000000U)) { ABSL_DCHECK(this_._impl_.admin_listener_auth_ != nullptr); this_._impl_.admin_listener_auth_->Clear(); } - if (CheckHasBit(cached_has_bits, 0x10000000U)) { + if (CheckHasBit(cached_has_bits, 0x20000000U)) { ABSL_DCHECK(this_._impl_.grpc_listener_ != nullptr); this_._impl_.grpc_listener_->Clear(); } - if (CheckHasBit(cached_has_bits, 0x20000000U)) { + if (CheckHasBit(cached_has_bits, 0x40000000U)) { ABSL_DCHECK(this_._impl_.asn_refresh_interval_ != nullptr); this_._impl_.asn_refresh_interval_->Clear(); } - if (CheckHasBit(cached_has_bits, 0x40000000U)) { + if (CheckHasBit(cached_has_bits, 0x80000000U)) { ABSL_DCHECK(this_._impl_.locality_refresh_interval_ != nullptr); this_._impl_.locality_refresh_interval_->Clear(); } - if (CheckHasBit(cached_has_bits, 0x80000000U)) { - ABSL_DCHECK(this_._impl_.link_monitor_ != nullptr); - this_._impl_.link_monitor_->Clear(); - } } cached_has_bits = this_._impl_._has_bits_[2]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(this_._impl_.link_monitor_ != nullptr); + this_._impl_.link_monitor_->Clear(); + } + if (BatchCheckHasBit(cached_has_bits, 0x000000feU)) { ::memset(&this_._impl_.max_netns_, 0, static_cast<::size_t>( - reinterpret_cast(&this_._impl_.envelope_flush_threshold_rows_) - + reinterpret_cast(&this_._impl_.envelope_flush_threshold_bytes_) - reinterpret_cast(&this_._impl_.max_netns_)) + - sizeof(_impl_.envelope_flush_threshold_rows_)); + sizeof(_impl_.envelope_flush_threshold_bytes_)); } if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { - ::memset(&this_._impl_.reconcile_before_poll_, 0, + ::memset(&this_._impl_.envelope_flush_threshold_rows_, 0, static_cast<::size_t>( - reinterpret_cast(&this_._impl_.s3_upload_max_attempts_) - - reinterpret_cast(&this_._impl_.reconcile_before_poll_)) + - sizeof(_impl_.s3_upload_max_attempts_)); + reinterpret_cast(&this_._impl_.s3_flush_threshold_jitter_pct_) - + reinterpret_cast(&this_._impl_.envelope_flush_threshold_rows_)) + + sizeof(_impl_.s3_flush_threshold_jitter_pct_)); } if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) { - ::memset(&this_._impl_.s3_queue_depth_, 0, + ::memset(&this_._impl_.s3_upload_max_attempts_, 0, static_cast<::size_t>( - reinterpret_cast(&this_._impl_.grpc_port_) - - reinterpret_cast(&this_._impl_.s3_queue_depth_)) + - sizeof(_impl_.grpc_port_)); + reinterpret_cast(&this_._impl_.ipv6_hop_limit_) - + reinterpret_cast(&this_._impl_.s3_upload_max_attempts_)) + + sizeof(_impl_.ipv6_hop_limit_)); } if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) { - ::memset(&this_._impl_.pyroscope_sample_hz_, 0, + ::memset(&this_._impl_.grpc_port_, 0, static_cast<::size_t>( - reinterpret_cast(&this_._impl_.populate_nsid_) - - reinterpret_cast(&this_._impl_.pyroscope_sample_hz_)) + - sizeof(_impl_.populate_nsid_)); + reinterpret_cast(&this_._impl_.uplink_count_) - + reinterpret_cast(&this_._impl_.grpc_port_)) + + sizeof(_impl_.uplink_count_)); } cached_has_bits = this_._impl_._has_bits_[3]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - ::memset(&this_._impl_.enrich_asn_enable_, 0, + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + ::memset(&this_._impl_.populate_nsid_, 0, static_cast<::size_t>( - reinterpret_cast(&this_._impl_.locality_events_enable_) - - reinterpret_cast(&this_._impl_.enrich_asn_enable_)) + - sizeof(_impl_.locality_events_enable_)); + reinterpret_cast(&this_._impl_.events_flush_threshold_bytes_) - + reinterpret_cast(&this_._impl_.populate_nsid_)) + + sizeof(_impl_.events_flush_threshold_bytes_)); } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); @@ -10600,7 +10643,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[1]; // .google.protobuf.Duration reconcile_frequency = 40 [json_name = "reconcileFrequency", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00080000U)) { + if (CheckHasBit(cached_has_bits, 0x00100000U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 40, *this_._impl_.reconcile_frequency_, this_._impl_.reconcile_frequency_->GetCachedSize(), target, stream); @@ -10608,7 +10651,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[2]; // bool reconcile_before_poll = 41 [json_name = "reconcileBeforePoll"]; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { if (this_._internal_reconcile_before_poll() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -10617,7 +10660,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } // uint32 max_netns = 42 [json_name = "maxNetns", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (this_._internal_max_netns() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -10627,7 +10670,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[1]; // .google.protobuf.Duration reconcile_timeout = 43 [json_name = "reconcileTimeout", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00100000U)) { + if (CheckHasBit(cached_has_bits, 0x00200000U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 43, *this_._impl_.reconcile_timeout_, this_._impl_.reconcile_timeout_->GetCachedSize(), target, stream); @@ -10635,7 +10678,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[2]; // uint32 max_netns_per_owner = 44 [json_name = "maxNetnsPerOwner", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (this_._internal_max_netns_per_owner() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -10644,7 +10687,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } // uint32 max_netns_adds_per_reconcile = 45 [json_name = "maxNetnsAddsPerReconcile", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (this_._internal_max_netns_adds_per_reconcile() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -10653,7 +10696,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } // uint32 write_files = 50 [json_name = "writeFiles", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { if (this_._internal_write_files() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -10674,7 +10717,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[2]; // uint32 dest_write_files = 52 [json_name = "destWriteFiles", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { if (this_._internal_dest_write_files() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -10683,7 +10726,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } // uint32 debug_level = 53 [json_name = "debugLevel", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { if (this_._internal_debug_level() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -10692,7 +10735,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } // bool debug_prometheus = 54 [json_name = "debugPrometheus", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (CheckHasBit(cached_has_bits, 0x00000400U)) { if (this_._internal_debug_prometheus() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -10743,7 +10786,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[2]; // uint32 envelope_flush_threshold_bytes = 64 [json_name = "envelopeFlushThresholdBytes", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { if (this_._internal_envelope_flush_threshold_bytes() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -10752,7 +10795,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } // uint32 envelope_flush_threshold_rows = 65 [json_name = "envelopeFlushThresholdRows", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { if (this_._internal_envelope_flush_threshold_rows() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -10783,7 +10826,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[1]; // .google.protobuf.Duration kafka_produce_timeout = 82 [json_name = "kafkaProduceTimeout", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00200000U)) { + if (CheckHasBit(cached_has_bits, 0x00400000U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 82, *this_._impl_.kafka_produce_timeout_, this_._impl_.kafka_produce_timeout_->GetCachedSize(), target, stream); @@ -10863,7 +10906,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[2]; // bool s3_skip_bucket_probe = 106 [json_name = "s3SkipBucketProbe", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (CheckHasBit(cached_has_bits, 0x00000800U)) { if (this_._internal_s3_skip_bucket_probe() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -10872,7 +10915,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } // bool s3_allow_insecure = 107 [json_name = "s3AllowInsecure", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (CheckHasBit(cached_has_bits, 0x00001000U)) { if (this_._internal_s3_allow_insecure() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -10893,7 +10936,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[2]; // uint32 s3_parquet_flush_threshold_bytes = 110 [json_name = "s3ParquetFlushThresholdBytes", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00001000U)) { + if (CheckHasBit(cached_has_bits, 0x00002000U)) { if (this_._internal_s3_parquet_flush_threshold_bytes() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -10903,7 +10946,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[1]; // .google.protobuf.Duration s3_flush_interval = 111 [json_name = "s3FlushInterval", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00400000U)) { + if (CheckHasBit(cached_has_bits, 0x00800000U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 111, *this_._impl_.s3_flush_interval_, this_._impl_.s3_flush_interval_->GetCachedSize(), target, stream); @@ -10911,7 +10954,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[2]; // uint32 s3_flush_jitter_pct = 112 [json_name = "s3FlushJitterPct", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00002000U)) { + if (CheckHasBit(cached_has_bits, 0x00004000U)) { if (this_._internal_s3_flush_jitter_pct() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -10920,7 +10963,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } // uint32 s3_flush_threshold_jitter_pct = 113 [json_name = "s3FlushThresholdJitterPct", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00004000U)) { + if (CheckHasBit(cached_has_bits, 0x00008000U)) { if (this_._internal_s3_flush_threshold_jitter_pct() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -10929,7 +10972,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } // uint32 s3_upload_max_attempts = 114 [json_name = "s3UploadMaxAttempts", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00008000U)) { + if (CheckHasBit(cached_has_bits, 0x00010000U)) { if (this_._internal_s3_upload_max_attempts() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -10939,7 +10982,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[1]; // .google.protobuf.Duration s3_upload_backoff_cap = 115 [json_name = "s3UploadBackoffCap", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00800000U)) { + if (CheckHasBit(cached_has_bits, 0x01000000U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 115, *this_._impl_.s3_upload_backoff_cap_, this_._impl_.s3_upload_backoff_cap_->GetCachedSize(), target, stream); @@ -10947,7 +10990,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[2]; // uint32 s3_queue_depth = 116 [json_name = "s3QueueDepth", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00010000U)) { + if (CheckHasBit(cached_has_bits, 0x00020000U)) { if (this_._internal_s3_queue_depth() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -10956,7 +10999,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } // uint64 s3_max_buffered_bytes = 117 [json_name = "s3MaxBufferedBytes", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00020000U)) { + if (CheckHasBit(cached_has_bits, 0x00040000U)) { if (this_._internal_s3_max_buffered_bytes() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt64ToArray( @@ -10977,7 +11020,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[2]; // uint64 s3_spill_max_bytes = 119 [json_name = "s3SpillMaxBytes", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00040000U)) { + if (CheckHasBit(cached_has_bits, 0x00080000U)) { if (this_._internal_s3_spill_max_bytes() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt64ToArray( @@ -10987,7 +11030,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[1]; // .google.protobuf.Duration tcp_write_timeout = 120 [json_name = "tcpWriteTimeout", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x01000000U)) { + if (CheckHasBit(cached_has_bits, 0x02000000U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 120, *this_._impl_.tcp_write_timeout_, this_._impl_.tcp_write_timeout_->GetCachedSize(), target, stream); @@ -10995,7 +11038,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[2]; // uint32 tcp_queue_depth = 121 [json_name = "tcpQueueDepth", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00100000U)) { + if (CheckHasBit(cached_has_bits, 0x00200000U)) { if (this_._internal_tcp_queue_depth() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -11004,7 +11047,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } // uint64 tcp_max_buffered_bytes = 122 [json_name = "tcpMaxBufferedBytes", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00080000U)) { + if (CheckHasBit(cached_has_bits, 0x00100000U)) { if (this_._internal_tcp_max_buffered_bytes() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt64ToArray( @@ -11065,7 +11108,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[2]; // uint32 ipv4_ttl = 150 [json_name = "ipv4Ttl", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00200000U)) { + if (CheckHasBit(cached_has_bits, 0x00400000U)) { if (this_._internal_ipv4_ttl() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -11074,7 +11117,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } // uint32 ipv6_hop_limit = 151 [json_name = "ipv6HopLimit", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00400000U)) { + if (CheckHasBit(cached_has_bits, 0x00800000U)) { if (this_._internal_ipv6_hop_limit() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -11084,21 +11127,21 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[1]; // .xtcp_config.v1.ListenerAuth listener_auth = 152 [json_name = "listenerAuth", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x02000000U)) { + if (CheckHasBit(cached_has_bits, 0x04000000U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 152, *this_._impl_.listener_auth_, this_._impl_.listener_auth_->GetCachedSize(), target, stream); } // .xtcp_config.v1.ListenerEndpoint prometheus_listener = 153 [json_name = "prometheusListener", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x04000000U)) { + if (CheckHasBit(cached_has_bits, 0x08000000U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 153, *this_._impl_.prometheus_listener_, this_._impl_.prometheus_listener_->GetCachedSize(), target, stream); } // .xtcp_config.v1.ListenerAuth admin_listener_auth = 154 [json_name = "adminListenerAuth", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x08000000U)) { + if (CheckHasBit(cached_has_bits, 0x10000000U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 154, *this_._impl_.admin_listener_auth_, this_._impl_.admin_listener_auth_->GetCachedSize(), target, stream); @@ -11106,7 +11149,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[2]; // uint32 grpc_port = 160 [json_name = "grpcPort", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00800000U)) { + if (CheckHasBit(cached_has_bits, 0x01000000U)) { if (this_._internal_grpc_port() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -11116,7 +11159,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[1]; // .xtcp_config.v1.ListenerEndpoint grpc_listener = 161 [json_name = "grpcListener", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x10000000U)) { + if (CheckHasBit(cached_has_bits, 0x20000000U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 161, *this_._impl_.grpc_listener_, this_._impl_.grpc_listener_->GetCachedSize(), target, stream); @@ -11158,7 +11201,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[2]; // uint32 pyroscope_sample_hz = 172 [json_name = "pyroscopeSampleHz", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x01000000U)) { + if (CheckHasBit(cached_has_bits, 0x02000000U)) { if (this_._internal_pyroscope_sample_hz() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -11167,7 +11210,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } // uint32 pyroscope_upload_interval_sec = 173 [json_name = "pyroscopeUploadIntervalSec", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x02000000U)) { + if (CheckHasBit(cached_has_bits, 0x04000000U)) { if (this_._internal_pyroscope_upload_interval_sec() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -11176,7 +11219,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } // bool resolve_container_id = 200 [json_name = "resolveContainerId", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x04000000U)) { + if (CheckHasBit(cached_has_bits, 0x08000000U)) { if (this_._internal_resolve_container_id() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -11185,7 +11228,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } // bool enrich_container_enable = 201 [json_name = "enrichContainerEnable"]; - if (CheckHasBit(cached_has_bits, 0x08000000U)) { + if (CheckHasBit(cached_has_bits, 0x10000000U)) { if (this_._internal_enrich_container_enable() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -11206,7 +11249,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[2]; // bool enrich_lldp_enable = 210 [json_name = "enrichLldpEnable"]; - if (CheckHasBit(cached_has_bits, 0x10000000U)) { + if (CheckHasBit(cached_has_bits, 0x20000000U)) { if (this_._internal_enrich_lldp_enable() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -11237,7 +11280,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[2]; // bool enrich_nic_enable = 220 [json_name = "enrichNicEnable"]; - if (CheckHasBit(cached_has_bits, 0x20000000U)) { + if (CheckHasBit(cached_has_bits, 0x40000000U)) { if (this_._internal_enrich_nic_enable() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -11246,7 +11289,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } // uint32 uplink_count = 221 [json_name = "uplinkCount", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x40000000U)) { + if (CheckHasBit(cached_has_bits, 0x80000000U)) { if (this_._internal_uplink_count() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( @@ -11265,9 +11308,9 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } } - cached_has_bits = this_._impl_._has_bits_[2]; + cached_has_bits = this_._impl_._has_bits_[3]; // bool populate_nsid = 230 [json_name = "populateNsid"]; - if (CheckHasBit(cached_has_bits, 0x80000000U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (this_._internal_populate_nsid() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -11275,9 +11318,8 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } } - cached_has_bits = this_._impl_._has_bits_[3]; // bool enrich_asn_enable = 240 [json_name = "enrichAsnEnable"]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (this_._internal_enrich_asn_enable() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -11297,7 +11339,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } // .google.protobuf.Duration asn_refresh_interval = 242 [json_name = "asnRefreshInterval"]; - if (CheckHasBit(cached_has_bits, 0x20000000U)) { + if (CheckHasBit(cached_has_bits, 0x40000000U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 242, *this_._impl_.asn_refresh_interval_, this_._impl_.asn_refresh_interval_->GetCachedSize(), target, stream); @@ -11325,7 +11367,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[3]; // bool enrich_locality_enable = 245 [json_name = "enrichLocalityEnable"]; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (this_._internal_enrich_locality_enable() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -11335,7 +11377,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[1]; // .google.protobuf.Duration locality_refresh_interval = 246 [json_name = "localityRefreshInterval"]; - if (CheckHasBit(cached_has_bits, 0x40000000U)) { + if (CheckHasBit(cached_has_bits, 0x80000000U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 246, *this_._impl_.locality_refresh_interval_, this_._impl_.locality_refresh_interval_->GetCachedSize(), target, stream); @@ -11343,7 +11385,7 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( cached_has_bits = this_._impl_._has_bits_[3]; // bool locality_events_enable = 247 [json_name = "localityEventsEnable"]; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (this_._internal_locality_events_enable() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -11351,14 +11393,63 @@ ::uint8_t* PROTOBUF_NONNULL XtcpConfig::_InternalSerialize( } } - cached_has_bits = this_._impl_._has_bits_[1]; + cached_has_bits = this_._impl_._has_bits_[2]; // .xtcp_config.v1.LinkMonitorConfig link_monitor = 250 [json_name = "linkMonitor"]; - if (CheckHasBit(cached_has_bits, 0x80000000U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 250, *this_._impl_.link_monitor_, this_._impl_.link_monitor_->GetCachedSize(), target, stream); } + cached_has_bits = this_._impl_._has_bits_[3]; + // bool events_enable = 260 [json_name = "eventsEnable"]; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (this_._internal_events_enable() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 260, this_._internal_events_enable(), target); + } + } + + cached_has_bits = this_._impl_._has_bits_[1]; + // string events_dest = 261 [json_name = "eventsDest", (.buf.validate.field) = { + if (CheckHasBit(cached_has_bits, 0x00080000U)) { + if (!this_._internal_events_dest().empty()) { + const ::std::string& _s = this_._internal_events_dest(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "xtcp_config.v1.XtcpConfig.events_dest"); + target = stream->WriteStringMaybeAliased(261, _s, target); + } + } + + cached_has_bits = this_._impl_._has_bits_[3]; + // uint32 events_flush_interval_ms = 262 [json_name = "eventsFlushIntervalMs", (.buf.validate.field) = { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (this_._internal_events_flush_interval_ms() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 262, this_._internal_events_flush_interval_ms(), target); + } + } + + // uint32 events_flush_threshold_rows = 263 [json_name = "eventsFlushThresholdRows", (.buf.validate.field) = { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (this_._internal_events_flush_threshold_rows() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 263, this_._internal_events_flush_threshold_rows(), target); + } + } + + // uint32 events_flush_threshold_bytes = 264 [json_name = "eventsFlushThresholdBytes", (.buf.validate.field) = { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (this_._internal_events_flush_threshold_bytes() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 264, this_._internal_events_flush_threshold_bytes(), target); + } + } + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( @@ -11748,318 +11839,352 @@ ::size_t XtcpConfig::ByteSizeLong() const { this_._internal_ipmeta_cache_path()); } } - // .google.protobuf.Duration reconcile_frequency = 40 [json_name = "reconcileFrequency", (.buf.validate.field) = { + // string events_dest = 261 [json_name = "eventsDest", (.buf.validate.field) = { if (CheckHasBit(cached_has_bits, 0x00080000U)) { + if (!this_._internal_events_dest().empty()) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_events_dest()); + } + } + // .google.protobuf.Duration reconcile_frequency = 40 [json_name = "reconcileFrequency", (.buf.validate.field) = { + if (CheckHasBit(cached_has_bits, 0x00100000U)) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.reconcile_frequency_); } // .google.protobuf.Duration reconcile_timeout = 43 [json_name = "reconcileTimeout", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00100000U)) { + if (CheckHasBit(cached_has_bits, 0x00200000U)) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.reconcile_timeout_); } // .google.protobuf.Duration kafka_produce_timeout = 82 [json_name = "kafkaProduceTimeout", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00200000U)) { + if (CheckHasBit(cached_has_bits, 0x00400000U)) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.kafka_produce_timeout_); } // .google.protobuf.Duration s3_flush_interval = 111 [json_name = "s3FlushInterval", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00400000U)) { + if (CheckHasBit(cached_has_bits, 0x00800000U)) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.s3_flush_interval_); } + } + if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) { // .google.protobuf.Duration s3_upload_backoff_cap = 115 [json_name = "s3UploadBackoffCap", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00800000U)) { + if (CheckHasBit(cached_has_bits, 0x01000000U)) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.s3_upload_backoff_cap_); } - } - if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) { // .google.protobuf.Duration tcp_write_timeout = 120 [json_name = "tcpWriteTimeout", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x01000000U)) { + if (CheckHasBit(cached_has_bits, 0x02000000U)) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.tcp_write_timeout_); } // .xtcp_config.v1.ListenerAuth listener_auth = 152 [json_name = "listenerAuth", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x02000000U)) { + if (CheckHasBit(cached_has_bits, 0x04000000U)) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.listener_auth_); } // .xtcp_config.v1.ListenerEndpoint prometheus_listener = 153 [json_name = "prometheusListener", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x04000000U)) { + if (CheckHasBit(cached_has_bits, 0x08000000U)) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.prometheus_listener_); } // .xtcp_config.v1.ListenerAuth admin_listener_auth = 154 [json_name = "adminListenerAuth", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x08000000U)) { + if (CheckHasBit(cached_has_bits, 0x10000000U)) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.admin_listener_auth_); } // .xtcp_config.v1.ListenerEndpoint grpc_listener = 161 [json_name = "grpcListener", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x10000000U)) { + if (CheckHasBit(cached_has_bits, 0x20000000U)) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.grpc_listener_); } // .google.protobuf.Duration asn_refresh_interval = 242 [json_name = "asnRefreshInterval"]; - if (CheckHasBit(cached_has_bits, 0x20000000U)) { + if (CheckHasBit(cached_has_bits, 0x40000000U)) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.asn_refresh_interval_); } // .google.protobuf.Duration locality_refresh_interval = 246 [json_name = "localityRefreshInterval"]; - if (CheckHasBit(cached_has_bits, 0x40000000U)) { + if (CheckHasBit(cached_has_bits, 0x80000000U)) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.locality_refresh_interval_); } + } + cached_has_bits = this_._impl_._has_bits_[2]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { // .xtcp_config.v1.LinkMonitorConfig link_monitor = 250 [json_name = "linkMonitor"]; - if (CheckHasBit(cached_has_bits, 0x80000000U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.link_monitor_); } - } - cached_has_bits = this_._impl_._has_bits_[2]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { // uint32 max_netns = 42 [json_name = "maxNetns", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (this_._internal_max_netns() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_max_netns()); } } // uint32 max_netns_per_owner = 44 [json_name = "maxNetnsPerOwner", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (this_._internal_max_netns_per_owner() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_max_netns_per_owner()); } } // uint32 max_netns_adds_per_reconcile = 45 [json_name = "maxNetnsAddsPerReconcile", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (this_._internal_max_netns_adds_per_reconcile() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_max_netns_adds_per_reconcile()); } } // uint32 write_files = 50 [json_name = "writeFiles", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { if (this_._internal_write_files() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_write_files()); } } // uint32 dest_write_files = 52 [json_name = "destWriteFiles", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { if (this_._internal_dest_write_files() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_dest_write_files()); } } // uint32 debug_level = 53 [json_name = "debugLevel", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { if (this_._internal_debug_level() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_debug_level()); } } // uint32 envelope_flush_threshold_bytes = 64 [json_name = "envelopeFlushThresholdBytes", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { if (this_._internal_envelope_flush_threshold_bytes() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_envelope_flush_threshold_bytes()); } } + } + if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { // uint32 envelope_flush_threshold_rows = 65 [json_name = "envelopeFlushThresholdRows", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { if (this_._internal_envelope_flush_threshold_rows() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_envelope_flush_threshold_rows()); } } - } - if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { // bool reconcile_before_poll = 41 [json_name = "reconcileBeforePoll"]; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { if (this_._internal_reconcile_before_poll() != 0) { total_size += 3; } } // bool debug_prometheus = 54 [json_name = "debugPrometheus", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (CheckHasBit(cached_has_bits, 0x00000400U)) { if (this_._internal_debug_prometheus() != 0) { total_size += 3; } } // bool s3_skip_bucket_probe = 106 [json_name = "s3SkipBucketProbe", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (CheckHasBit(cached_has_bits, 0x00000800U)) { if (this_._internal_s3_skip_bucket_probe() != 0) { total_size += 3; } } // bool s3_allow_insecure = 107 [json_name = "s3AllowInsecure", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (CheckHasBit(cached_has_bits, 0x00001000U)) { if (this_._internal_s3_allow_insecure() != 0) { total_size += 3; } } // uint32 s3_parquet_flush_threshold_bytes = 110 [json_name = "s3ParquetFlushThresholdBytes", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00001000U)) { + if (CheckHasBit(cached_has_bits, 0x00002000U)) { if (this_._internal_s3_parquet_flush_threshold_bytes() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_s3_parquet_flush_threshold_bytes()); } } // uint32 s3_flush_jitter_pct = 112 [json_name = "s3FlushJitterPct", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00002000U)) { + if (CheckHasBit(cached_has_bits, 0x00004000U)) { if (this_._internal_s3_flush_jitter_pct() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_s3_flush_jitter_pct()); } } // uint32 s3_flush_threshold_jitter_pct = 113 [json_name = "s3FlushThresholdJitterPct", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00004000U)) { + if (CheckHasBit(cached_has_bits, 0x00008000U)) { if (this_._internal_s3_flush_threshold_jitter_pct() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_s3_flush_threshold_jitter_pct()); } } + } + if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) { // uint32 s3_upload_max_attempts = 114 [json_name = "s3UploadMaxAttempts", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00008000U)) { + if (CheckHasBit(cached_has_bits, 0x00010000U)) { if (this_._internal_s3_upload_max_attempts() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_s3_upload_max_attempts()); } } - } - if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) { // uint32 s3_queue_depth = 116 [json_name = "s3QueueDepth", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00010000U)) { + if (CheckHasBit(cached_has_bits, 0x00020000U)) { if (this_._internal_s3_queue_depth() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_s3_queue_depth()); } } // uint64 s3_max_buffered_bytes = 117 [json_name = "s3MaxBufferedBytes", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00020000U)) { + if (CheckHasBit(cached_has_bits, 0x00040000U)) { if (this_._internal_s3_max_buffered_bytes() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( this_._internal_s3_max_buffered_bytes()); } } // uint64 s3_spill_max_bytes = 119 [json_name = "s3SpillMaxBytes", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00040000U)) { + if (CheckHasBit(cached_has_bits, 0x00080000U)) { if (this_._internal_s3_spill_max_bytes() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( this_._internal_s3_spill_max_bytes()); } } // uint64 tcp_max_buffered_bytes = 122 [json_name = "tcpMaxBufferedBytes", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00080000U)) { + if (CheckHasBit(cached_has_bits, 0x00100000U)) { if (this_._internal_tcp_max_buffered_bytes() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( this_._internal_tcp_max_buffered_bytes()); } } // uint32 tcp_queue_depth = 121 [json_name = "tcpQueueDepth", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00100000U)) { + if (CheckHasBit(cached_has_bits, 0x00200000U)) { if (this_._internal_tcp_queue_depth() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_tcp_queue_depth()); } } // uint32 ipv4_ttl = 150 [json_name = "ipv4Ttl", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00200000U)) { + if (CheckHasBit(cached_has_bits, 0x00400000U)) { if (this_._internal_ipv4_ttl() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_ipv4_ttl()); } } // uint32 ipv6_hop_limit = 151 [json_name = "ipv6HopLimit", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00400000U)) { + if (CheckHasBit(cached_has_bits, 0x00800000U)) { if (this_._internal_ipv6_hop_limit() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_ipv6_hop_limit()); } } + } + if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) { // uint32 grpc_port = 160 [json_name = "grpcPort", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x00800000U)) { + if (CheckHasBit(cached_has_bits, 0x01000000U)) { if (this_._internal_grpc_port() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_grpc_port()); } } - } - if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) { // uint32 pyroscope_sample_hz = 172 [json_name = "pyroscopeSampleHz", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x01000000U)) { + if (CheckHasBit(cached_has_bits, 0x02000000U)) { if (this_._internal_pyroscope_sample_hz() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_pyroscope_sample_hz()); } } // uint32 pyroscope_upload_interval_sec = 173 [json_name = "pyroscopeUploadIntervalSec", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x02000000U)) { + if (CheckHasBit(cached_has_bits, 0x04000000U)) { if (this_._internal_pyroscope_upload_interval_sec() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_pyroscope_upload_interval_sec()); } } // bool resolve_container_id = 200 [json_name = "resolveContainerId", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x04000000U)) { + if (CheckHasBit(cached_has_bits, 0x08000000U)) { if (this_._internal_resolve_container_id() != 0) { total_size += 3; } } // bool enrich_container_enable = 201 [json_name = "enrichContainerEnable"]; - if (CheckHasBit(cached_has_bits, 0x08000000U)) { + if (CheckHasBit(cached_has_bits, 0x10000000U)) { if (this_._internal_enrich_container_enable() != 0) { total_size += 3; } } // bool enrich_lldp_enable = 210 [json_name = "enrichLldpEnable"]; - if (CheckHasBit(cached_has_bits, 0x10000000U)) { + if (CheckHasBit(cached_has_bits, 0x20000000U)) { if (this_._internal_enrich_lldp_enable() != 0) { total_size += 3; } } // bool enrich_nic_enable = 220 [json_name = "enrichNicEnable"]; - if (CheckHasBit(cached_has_bits, 0x20000000U)) { + if (CheckHasBit(cached_has_bits, 0x40000000U)) { if (this_._internal_enrich_nic_enable() != 0) { total_size += 3; } } // uint32 uplink_count = 221 [json_name = "uplinkCount", (.buf.validate.field) = { - if (CheckHasBit(cached_has_bits, 0x40000000U)) { + if (CheckHasBit(cached_has_bits, 0x80000000U)) { if (this_._internal_uplink_count() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( this_._internal_uplink_count()); } } + } + cached_has_bits = this_._impl_._has_bits_[3]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { // bool populate_nsid = 230 [json_name = "populateNsid"]; - if (CheckHasBit(cached_has_bits, 0x80000000U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (this_._internal_populate_nsid() != 0) { total_size += 3; } } - } - cached_has_bits = this_._impl_._has_bits_[3]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { // bool enrich_asn_enable = 240 [json_name = "enrichAsnEnable"]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (this_._internal_enrich_asn_enable() != 0) { total_size += 3; } } // bool enrich_locality_enable = 245 [json_name = "enrichLocalityEnable"]; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (this_._internal_enrich_locality_enable() != 0) { total_size += 3; } } // bool locality_events_enable = 247 [json_name = "localityEventsEnable"]; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (this_._internal_locality_events_enable() != 0) { total_size += 3; } } + // bool events_enable = 260 [json_name = "eventsEnable"]; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (this_._internal_events_enable() != 0) { + total_size += 3; + } + } + // uint32 events_flush_interval_ms = 262 [json_name = "eventsFlushIntervalMs", (.buf.validate.field) = { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (this_._internal_events_flush_interval_ms() != 0) { + total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( + this_._internal_events_flush_interval_ms()); + } + } + // uint32 events_flush_threshold_rows = 263 [json_name = "eventsFlushThresholdRows", (.buf.validate.field) = { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (this_._internal_events_flush_threshold_rows() != 0) { + total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( + this_._internal_events_flush_threshold_rows()); + } + } + // uint32 events_flush_threshold_bytes = 264 [json_name = "eventsFlushThresholdBytes", (.buf.validate.field) = { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (this_._internal_events_flush_threshold_bytes() != 0) { + total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( + this_._internal_events_flush_threshold_bytes()); + } + } } return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); @@ -12474,6 +12599,15 @@ void XtcpConfig::MergeImpl(::google::protobuf::MessageLite& to_msg, } } if (CheckHasBit(cached_has_bits, 0x00080000U)) { + if (!from._internal_events_dest().empty()) { + _this->_internal_set_events_dest(from._internal_events_dest()); + } else { + if (_this->_impl_.events_dest_.IsDefault()) { + _this->_internal_set_events_dest(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00100000U)) { ABSL_DCHECK(from._impl_.reconcile_frequency_ != nullptr); if (_this->_impl_.reconcile_frequency_ == nullptr) { _this->_impl_.reconcile_frequency_ = Super_::CopyConstruct(arena, *from._impl_.reconcile_frequency_); @@ -12481,7 +12615,7 @@ void XtcpConfig::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.reconcile_frequency_->MergeFrom(*from._impl_.reconcile_frequency_); } } - if (CheckHasBit(cached_has_bits, 0x00100000U)) { + if (CheckHasBit(cached_has_bits, 0x00200000U)) { ABSL_DCHECK(from._impl_.reconcile_timeout_ != nullptr); if (_this->_impl_.reconcile_timeout_ == nullptr) { _this->_impl_.reconcile_timeout_ = Super_::CopyConstruct(arena, *from._impl_.reconcile_timeout_); @@ -12489,7 +12623,7 @@ void XtcpConfig::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.reconcile_timeout_->MergeFrom(*from._impl_.reconcile_timeout_); } } - if (CheckHasBit(cached_has_bits, 0x00200000U)) { + if (CheckHasBit(cached_has_bits, 0x00400000U)) { ABSL_DCHECK(from._impl_.kafka_produce_timeout_ != nullptr); if (_this->_impl_.kafka_produce_timeout_ == nullptr) { _this->_impl_.kafka_produce_timeout_ = Super_::CopyConstruct(arena, *from._impl_.kafka_produce_timeout_); @@ -12497,7 +12631,7 @@ void XtcpConfig::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.kafka_produce_timeout_->MergeFrom(*from._impl_.kafka_produce_timeout_); } } - if (CheckHasBit(cached_has_bits, 0x00400000U)) { + if (CheckHasBit(cached_has_bits, 0x00800000U)) { ABSL_DCHECK(from._impl_.s3_flush_interval_ != nullptr); if (_this->_impl_.s3_flush_interval_ == nullptr) { _this->_impl_.s3_flush_interval_ = Super_::CopyConstruct(arena, *from._impl_.s3_flush_interval_); @@ -12505,7 +12639,9 @@ void XtcpConfig::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.s3_flush_interval_->MergeFrom(*from._impl_.s3_flush_interval_); } } - if (CheckHasBit(cached_has_bits, 0x00800000U)) { + } + if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) { + if (CheckHasBit(cached_has_bits, 0x01000000U)) { ABSL_DCHECK(from._impl_.s3_upload_backoff_cap_ != nullptr); if (_this->_impl_.s3_upload_backoff_cap_ == nullptr) { _this->_impl_.s3_upload_backoff_cap_ = Super_::CopyConstruct(arena, *from._impl_.s3_upload_backoff_cap_); @@ -12513,9 +12649,7 @@ void XtcpConfig::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.s3_upload_backoff_cap_->MergeFrom(*from._impl_.s3_upload_backoff_cap_); } } - } - if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) { - if (CheckHasBit(cached_has_bits, 0x01000000U)) { + if (CheckHasBit(cached_has_bits, 0x02000000U)) { ABSL_DCHECK(from._impl_.tcp_write_timeout_ != nullptr); if (_this->_impl_.tcp_write_timeout_ == nullptr) { _this->_impl_.tcp_write_timeout_ = Super_::CopyConstruct(arena, *from._impl_.tcp_write_timeout_); @@ -12523,7 +12657,7 @@ void XtcpConfig::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.tcp_write_timeout_->MergeFrom(*from._impl_.tcp_write_timeout_); } } - if (CheckHasBit(cached_has_bits, 0x02000000U)) { + if (CheckHasBit(cached_has_bits, 0x04000000U)) { ABSL_DCHECK(from._impl_.listener_auth_ != nullptr); if (_this->_impl_.listener_auth_ == nullptr) { _this->_impl_.listener_auth_ = Super_::CopyConstruct(arena, *from._impl_.listener_auth_); @@ -12531,7 +12665,7 @@ void XtcpConfig::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.listener_auth_->MergeFrom(*from._impl_.listener_auth_); } } - if (CheckHasBit(cached_has_bits, 0x04000000U)) { + if (CheckHasBit(cached_has_bits, 0x08000000U)) { ABSL_DCHECK(from._impl_.prometheus_listener_ != nullptr); if (_this->_impl_.prometheus_listener_ == nullptr) { _this->_impl_.prometheus_listener_ = Super_::CopyConstruct(arena, *from._impl_.prometheus_listener_); @@ -12539,7 +12673,7 @@ void XtcpConfig::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.prometheus_listener_->MergeFrom(*from._impl_.prometheus_listener_); } } - if (CheckHasBit(cached_has_bits, 0x08000000U)) { + if (CheckHasBit(cached_has_bits, 0x10000000U)) { ABSL_DCHECK(from._impl_.admin_listener_auth_ != nullptr); if (_this->_impl_.admin_listener_auth_ == nullptr) { _this->_impl_.admin_listener_auth_ = Super_::CopyConstruct(arena, *from._impl_.admin_listener_auth_); @@ -12547,7 +12681,7 @@ void XtcpConfig::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.admin_listener_auth_->MergeFrom(*from._impl_.admin_listener_auth_); } } - if (CheckHasBit(cached_has_bits, 0x10000000U)) { + if (CheckHasBit(cached_has_bits, 0x20000000U)) { ABSL_DCHECK(from._impl_.grpc_listener_ != nullptr); if (_this->_impl_.grpc_listener_ == nullptr) { _this->_impl_.grpc_listener_ = Super_::CopyConstruct(arena, *from._impl_.grpc_listener_); @@ -12555,7 +12689,7 @@ void XtcpConfig::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.grpc_listener_->MergeFrom(*from._impl_.grpc_listener_); } } - if (CheckHasBit(cached_has_bits, 0x20000000U)) { + if (CheckHasBit(cached_has_bits, 0x40000000U)) { ABSL_DCHECK(from._impl_.asn_refresh_interval_ != nullptr); if (_this->_impl_.asn_refresh_interval_ == nullptr) { _this->_impl_.asn_refresh_interval_ = Super_::CopyConstruct(arena, *from._impl_.asn_refresh_interval_); @@ -12563,7 +12697,7 @@ void XtcpConfig::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.asn_refresh_interval_->MergeFrom(*from._impl_.asn_refresh_interval_); } } - if (CheckHasBit(cached_has_bits, 0x40000000U)) { + if (CheckHasBit(cached_has_bits, 0x80000000U)) { ABSL_DCHECK(from._impl_.locality_refresh_interval_ != nullptr); if (_this->_impl_.locality_refresh_interval_ == nullptr) { _this->_impl_.locality_refresh_interval_ = Super_::CopyConstruct(arena, *from._impl_.locality_refresh_interval_); @@ -12571,7 +12705,10 @@ void XtcpConfig::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.locality_refresh_interval_->MergeFrom(*from._impl_.locality_refresh_interval_); } } - if (CheckHasBit(cached_has_bits, 0x80000000U)) { + } + cached_has_bits = from._impl_._has_bits_[2]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { ABSL_DCHECK(from._impl_.link_monitor_ != nullptr); if (_this->_impl_.link_monitor_ == nullptr) { _this->_impl_.link_monitor_ = Super_::CopyConstruct(arena, *from._impl_.link_monitor_); @@ -12579,193 +12716,210 @@ void XtcpConfig::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.link_monitor_->MergeFrom(*from._impl_.link_monitor_); } } - } - cached_has_bits = from._impl_._has_bits_[2]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (from._internal_max_netns() != 0) { _this->_impl_.max_netns_ = from._impl_.max_netns_; } } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (from._internal_max_netns_per_owner() != 0) { _this->_impl_.max_netns_per_owner_ = from._impl_.max_netns_per_owner_; } } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (from._internal_max_netns_adds_per_reconcile() != 0) { _this->_impl_.max_netns_adds_per_reconcile_ = from._impl_.max_netns_adds_per_reconcile_; } } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { if (from._internal_write_files() != 0) { _this->_impl_.write_files_ = from._impl_.write_files_; } } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { if (from._internal_dest_write_files() != 0) { _this->_impl_.dest_write_files_ = from._impl_.dest_write_files_; } } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { if (from._internal_debug_level() != 0) { _this->_impl_.debug_level_ = from._impl_.debug_level_; } } - if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { if (from._internal_envelope_flush_threshold_bytes() != 0) { _this->_impl_.envelope_flush_threshold_bytes_ = from._impl_.envelope_flush_threshold_bytes_; } } - if (CheckHasBit(cached_has_bits, 0x00000080U)) { + } + if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { if (from._internal_envelope_flush_threshold_rows() != 0) { _this->_impl_.envelope_flush_threshold_rows_ = from._impl_.envelope_flush_threshold_rows_; } } - } - if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { - if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { if (from._internal_reconcile_before_poll() != 0) { _this->_impl_.reconcile_before_poll_ = from._impl_.reconcile_before_poll_; } } - if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (CheckHasBit(cached_has_bits, 0x00000400U)) { if (from._internal_debug_prometheus() != 0) { _this->_impl_.debug_prometheus_ = from._impl_.debug_prometheus_; } } - if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (CheckHasBit(cached_has_bits, 0x00000800U)) { if (from._internal_s3_skip_bucket_probe() != 0) { _this->_impl_.s3_skip_bucket_probe_ = from._impl_.s3_skip_bucket_probe_; } } - if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (CheckHasBit(cached_has_bits, 0x00001000U)) { if (from._internal_s3_allow_insecure() != 0) { _this->_impl_.s3_allow_insecure_ = from._impl_.s3_allow_insecure_; } } - if (CheckHasBit(cached_has_bits, 0x00001000U)) { + if (CheckHasBit(cached_has_bits, 0x00002000U)) { if (from._internal_s3_parquet_flush_threshold_bytes() != 0) { _this->_impl_.s3_parquet_flush_threshold_bytes_ = from._impl_.s3_parquet_flush_threshold_bytes_; } } - if (CheckHasBit(cached_has_bits, 0x00002000U)) { + if (CheckHasBit(cached_has_bits, 0x00004000U)) { if (from._internal_s3_flush_jitter_pct() != 0) { _this->_impl_.s3_flush_jitter_pct_ = from._impl_.s3_flush_jitter_pct_; } } - if (CheckHasBit(cached_has_bits, 0x00004000U)) { + if (CheckHasBit(cached_has_bits, 0x00008000U)) { if (from._internal_s3_flush_threshold_jitter_pct() != 0) { _this->_impl_.s3_flush_threshold_jitter_pct_ = from._impl_.s3_flush_threshold_jitter_pct_; } } - if (CheckHasBit(cached_has_bits, 0x00008000U)) { + } + if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) { + if (CheckHasBit(cached_has_bits, 0x00010000U)) { if (from._internal_s3_upload_max_attempts() != 0) { _this->_impl_.s3_upload_max_attempts_ = from._impl_.s3_upload_max_attempts_; } } - } - if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) { - if (CheckHasBit(cached_has_bits, 0x00010000U)) { + if (CheckHasBit(cached_has_bits, 0x00020000U)) { if (from._internal_s3_queue_depth() != 0) { _this->_impl_.s3_queue_depth_ = from._impl_.s3_queue_depth_; } } - if (CheckHasBit(cached_has_bits, 0x00020000U)) { + if (CheckHasBit(cached_has_bits, 0x00040000U)) { if (from._internal_s3_max_buffered_bytes() != 0) { _this->_impl_.s3_max_buffered_bytes_ = from._impl_.s3_max_buffered_bytes_; } } - if (CheckHasBit(cached_has_bits, 0x00040000U)) { + if (CheckHasBit(cached_has_bits, 0x00080000U)) { if (from._internal_s3_spill_max_bytes() != 0) { _this->_impl_.s3_spill_max_bytes_ = from._impl_.s3_spill_max_bytes_; } } - if (CheckHasBit(cached_has_bits, 0x00080000U)) { + if (CheckHasBit(cached_has_bits, 0x00100000U)) { if (from._internal_tcp_max_buffered_bytes() != 0) { _this->_impl_.tcp_max_buffered_bytes_ = from._impl_.tcp_max_buffered_bytes_; } } - if (CheckHasBit(cached_has_bits, 0x00100000U)) { + if (CheckHasBit(cached_has_bits, 0x00200000U)) { if (from._internal_tcp_queue_depth() != 0) { _this->_impl_.tcp_queue_depth_ = from._impl_.tcp_queue_depth_; } } - if (CheckHasBit(cached_has_bits, 0x00200000U)) { + if (CheckHasBit(cached_has_bits, 0x00400000U)) { if (from._internal_ipv4_ttl() != 0) { _this->_impl_.ipv4_ttl_ = from._impl_.ipv4_ttl_; } } - if (CheckHasBit(cached_has_bits, 0x00400000U)) { + if (CheckHasBit(cached_has_bits, 0x00800000U)) { if (from._internal_ipv6_hop_limit() != 0) { _this->_impl_.ipv6_hop_limit_ = from._impl_.ipv6_hop_limit_; } } - if (CheckHasBit(cached_has_bits, 0x00800000U)) { + } + if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) { + if (CheckHasBit(cached_has_bits, 0x01000000U)) { if (from._internal_grpc_port() != 0) { _this->_impl_.grpc_port_ = from._impl_.grpc_port_; } } - } - if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) { - if (CheckHasBit(cached_has_bits, 0x01000000U)) { + if (CheckHasBit(cached_has_bits, 0x02000000U)) { if (from._internal_pyroscope_sample_hz() != 0) { _this->_impl_.pyroscope_sample_hz_ = from._impl_.pyroscope_sample_hz_; } } - if (CheckHasBit(cached_has_bits, 0x02000000U)) { + if (CheckHasBit(cached_has_bits, 0x04000000U)) { if (from._internal_pyroscope_upload_interval_sec() != 0) { _this->_impl_.pyroscope_upload_interval_sec_ = from._impl_.pyroscope_upload_interval_sec_; } } - if (CheckHasBit(cached_has_bits, 0x04000000U)) { + if (CheckHasBit(cached_has_bits, 0x08000000U)) { if (from._internal_resolve_container_id() != 0) { _this->_impl_.resolve_container_id_ = from._impl_.resolve_container_id_; } } - if (CheckHasBit(cached_has_bits, 0x08000000U)) { + if (CheckHasBit(cached_has_bits, 0x10000000U)) { if (from._internal_enrich_container_enable() != 0) { _this->_impl_.enrich_container_enable_ = from._impl_.enrich_container_enable_; } } - if (CheckHasBit(cached_has_bits, 0x10000000U)) { + if (CheckHasBit(cached_has_bits, 0x20000000U)) { if (from._internal_enrich_lldp_enable() != 0) { _this->_impl_.enrich_lldp_enable_ = from._impl_.enrich_lldp_enable_; } } - if (CheckHasBit(cached_has_bits, 0x20000000U)) { + if (CheckHasBit(cached_has_bits, 0x40000000U)) { if (from._internal_enrich_nic_enable() != 0) { _this->_impl_.enrich_nic_enable_ = from._impl_.enrich_nic_enable_; } } - if (CheckHasBit(cached_has_bits, 0x40000000U)) { + if (CheckHasBit(cached_has_bits, 0x80000000U)) { if (from._internal_uplink_count() != 0) { _this->_impl_.uplink_count_ = from._impl_.uplink_count_; } } - if (CheckHasBit(cached_has_bits, 0x80000000U)) { + } + cached_has_bits = from._impl_._has_bits_[3]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (from._internal_populate_nsid() != 0) { _this->_impl_.populate_nsid_ = from._impl_.populate_nsid_; } } - } - cached_has_bits = from._impl_._has_bits_[3]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (from._internal_enrich_asn_enable() != 0) { _this->_impl_.enrich_asn_enable_ = from._impl_.enrich_asn_enable_; } } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (from._internal_enrich_locality_enable() != 0) { _this->_impl_.enrich_locality_enable_ = from._impl_.enrich_locality_enable_; } } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (from._internal_locality_events_enable() != 0) { _this->_impl_.locality_events_enable_ = from._impl_.locality_events_enable_; } } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (from._internal_events_enable() != 0) { + _this->_impl_.events_enable_ = from._impl_.events_enable_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (from._internal_events_flush_interval_ms() != 0) { + _this->_impl_.events_flush_interval_ms_ = from._impl_.events_flush_interval_ms_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (from._internal_events_flush_threshold_rows() != 0) { + _this->_impl_.events_flush_threshold_rows_ = from._impl_.events_flush_threshold_rows_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (from._internal_events_flush_threshold_bytes() != 0) { + _this->_impl_.events_flush_threshold_bytes_ = from._impl_.events_flush_threshold_bytes_; + } + } } _this->_impl_._has_bits_.Or(from._impl_._has_bits_); _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( @@ -12826,9 +12980,10 @@ void XtcpConfig::InternalSwap(XtcpConfig* PROTOBUF_RESTRICT PROTOBUF_NONNULL oth ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.asn_db_path_, &other->_impl_.asn_db_path_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.ipmeta_bootstrap_path_, &other->_impl_.ipmeta_bootstrap_path_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.ipmeta_cache_path_, &other->_impl_.ipmeta_cache_path_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.events_dest_, &other->_impl_.events_dest_, arena); ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.locality_events_enable_) - + sizeof(XtcpConfig::_impl_.locality_events_enable_) + PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.events_flush_threshold_bytes_) + + sizeof(XtcpConfig::_impl_.events_flush_threshold_bytes_) - PROTOBUF_FIELD_OFFSET(XtcpConfig, _impl_.reconcile_frequency_)>( reinterpret_cast(&_impl_.reconcile_frequency_), reinterpret_cast(&other->_impl_.reconcile_frequency_)); diff --git a/gen/cpp/xtcp_config/v1/xtcp_config.pb.h b/gen/cpp/xtcp_config/v1/xtcp_config.pb.h index 9f768b3fe..509a7709a 100644 --- a/gen/cpp/xtcp_config/v1/xtcp_config.pb.h +++ b/gen/cpp/xtcp_config/v1/xtcp_config.pb.h @@ -3873,6 +3873,7 @@ class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED XtcpConfig final : public ::google: kAsnDbPathFieldNumber = 241, kIpmetaBootstrapPathFieldNumber = 243, kIpmetaCachePathFieldNumber = 244, + kEventsDestFieldNumber = 261, kReconcileFrequencyFieldNumber = 40, kReconcileTimeoutFieldNumber = 43, kKafkaProduceTimeoutFieldNumber = 82, @@ -3921,6 +3922,10 @@ class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED XtcpConfig final : public ::google: kEnrichAsnEnableFieldNumber = 240, kEnrichLocalityEnableFieldNumber = 245, kLocalityEventsEnableFieldNumber = 247, + kEventsEnableFieldNumber = 260, + kEventsFlushIntervalMsFieldNumber = 262, + kEventsFlushThresholdRowsFieldNumber = 263, + kEventsFlushThresholdBytesFieldNumber = 264, }; // string csv_columns = 62 [json_name = "csvColumns", (.buf.validate.field) = { void clear_csv_columns() ; @@ -4617,6 +4622,21 @@ class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED XtcpConfig final : public ::google: PROTOBUF_ALWAYS_INLINE void _internal_set_ipmeta_cache_path(const ::std::string& value); ::std::string* PROTOBUF_NONNULL _internal_mutable_ipmeta_cache_path(); + public: + // string events_dest = 261 [json_name = "eventsDest", (.buf.validate.field) = { + void clear_events_dest() ; + [[nodiscard]] const ::std::string& events_dest() const; + template + void set_events_dest(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_events_dest(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_events_dest(); + void set_allocated_events_dest(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_events_dest() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_events_dest(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_events_dest(); + public: // .google.protobuf.Duration reconcile_frequency = 40 [json_name = "reconcileFrequency", (.buf.validate.field) = { [[nodiscard]] bool has_reconcile_frequency() const; @@ -5162,14 +5182,54 @@ class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED XtcpConfig final : public ::google: bool _internal_locality_events_enable() const; void _internal_set_locality_events_enable(bool value); + public: + // bool events_enable = 260 [json_name = "eventsEnable"]; + void clear_events_enable() ; + [[nodiscard]] bool events_enable() const; + void set_events_enable(bool value); + + private: + bool _internal_events_enable() const; + void _internal_set_events_enable(bool value); + + public: + // uint32 events_flush_interval_ms = 262 [json_name = "eventsFlushIntervalMs", (.buf.validate.field) = { + void clear_events_flush_interval_ms() ; + [[nodiscard]] ::uint32_t events_flush_interval_ms() const; + void set_events_flush_interval_ms(::uint32_t value); + + private: + ::uint32_t _internal_events_flush_interval_ms() const; + void _internal_set_events_flush_interval_ms(::uint32_t value); + + public: + // uint32 events_flush_threshold_rows = 263 [json_name = "eventsFlushThresholdRows", (.buf.validate.field) = { + void clear_events_flush_threshold_rows() ; + [[nodiscard]] ::uint32_t events_flush_threshold_rows() const; + void set_events_flush_threshold_rows(::uint32_t value); + + private: + ::uint32_t _internal_events_flush_threshold_rows() const; + void _internal_set_events_flush_threshold_rows(::uint32_t value); + + public: + // uint32 events_flush_threshold_bytes = 264 [json_name = "eventsFlushThresholdBytes", (.buf.validate.field) = { + void clear_events_flush_threshold_bytes() ; + [[nodiscard]] ::uint32_t events_flush_threshold_bytes() const; + void set_events_flush_threshold_bytes(::uint32_t value); + + private: + ::uint32_t _internal_events_flush_threshold_bytes() const; + void _internal_set_events_flush_threshold_bytes(::uint32_t value); + public: // @@protoc_insertion_point(class_scope:xtcp_config.v1.XtcpConfig) private: class _Internal; using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<5, 99, - 17, 494, - 33>; + ::google::protobuf::internal::TcParseTable<5, 104, + 17, 513, + 35>; static constexpr ParseTableT_ InternalGenerateParseTable_( const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; @@ -5247,6 +5307,7 @@ class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED XtcpConfig final : public ::google: ::google::protobuf::internal::ArenaStringPtr asn_db_path_; ::google::protobuf::internal::ArenaStringPtr ipmeta_bootstrap_path_; ::google::protobuf::internal::ArenaStringPtr ipmeta_cache_path_; + ::google::protobuf::internal::ArenaStringPtr events_dest_; ::google::protobuf::Duration* PROTOBUF_NULLABLE reconcile_frequency_; ::google::protobuf::Duration* PROTOBUF_NULLABLE reconcile_timeout_; ::google::protobuf::Duration* PROTOBUF_NULLABLE kafka_produce_timeout_; @@ -5295,6 +5356,10 @@ class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED XtcpConfig final : public ::google: bool enrich_asn_enable_; bool enrich_locality_enable_; bool locality_events_enable_; + bool events_enable_; + ::uint32_t events_flush_interval_ms_; + ::uint32_t events_flush_threshold_rows_; + ::uint32_t events_flush_threshold_bytes_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; @@ -11509,7 +11574,7 @@ inline void XtcpConfig::_internal_set_io_uring_sockstat_workers(::uint32_t value // .google.protobuf.Duration reconcile_frequency = 40 [json_name = "reconcileFrequency", (.buf.validate.field) = { inline bool XtcpConfig::has_reconcile_frequency() const { - bool value = CheckHasBit(_impl_._has_bits_[1], 0x00080000U); + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00100000U); PROTOBUF_ASSUME(!value || _impl_.reconcile_frequency_ != nullptr); return value; } @@ -11530,16 +11595,16 @@ inline void XtcpConfig::unsafe_arena_set_allocated_reconcile_frequency( } _impl_.reconcile_frequency_ = reinterpret_cast<::google::protobuf::Duration*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[1], 0x00080000U); + SetHasBit(_impl_._has_bits_[1], 0x00100000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x00080000U); + ClearHasBit(_impl_._has_bits_[1], 0x00100000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xtcp_config.v1.XtcpConfig.reconcile_frequency) } inline ::google::protobuf::Duration* PROTOBUF_NULLABLE XtcpConfig::release_reconcile_frequency() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[1], 0x00080000U); + ClearHasBit(_impl_._has_bits_[1], 0x00100000U); ::google::protobuf::Duration* released = _impl_.reconcile_frequency_; _impl_.reconcile_frequency_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -11559,7 +11624,7 @@ inline ::google::protobuf::Duration* PROTOBUF_NULLABLE XtcpConfig::unsafe_arena_ ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:xtcp_config.v1.XtcpConfig.reconcile_frequency) - ClearHasBit(_impl_._has_bits_[1], 0x00080000U); + ClearHasBit(_impl_._has_bits_[1], 0x00100000U); ::google::protobuf::Duration* temp = _impl_.reconcile_frequency_; _impl_.reconcile_frequency_ = nullptr; return temp; @@ -11574,7 +11639,7 @@ inline ::google::protobuf::Duration* PROTOBUF_NONNULL XtcpConfig::_internal_muta } inline ::google::protobuf::Duration* PROTOBUF_NONNULL XtcpConfig::mutable_reconcile_frequency() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[1], 0x00080000U); + SetHasBit(_impl_._has_bits_[1], 0x00100000U); ::google::protobuf::Duration* _msg = _internal_mutable_reconcile_frequency(); // @@protoc_insertion_point(field_mutable:xtcp_config.v1.XtcpConfig.reconcile_frequency) return _msg; @@ -11591,9 +11656,9 @@ inline void XtcpConfig::set_allocated_reconcile_frequency(::google::protobuf::Du if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[1], 0x00080000U); + SetHasBit(_impl_._has_bits_[1], 0x00100000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x00080000U); + ClearHasBit(_impl_._has_bits_[1], 0x00100000U); } _impl_.reconcile_frequency_ = reinterpret_cast<::google::protobuf::Duration*>(value); @@ -11604,7 +11669,7 @@ inline void XtcpConfig::set_allocated_reconcile_frequency(::google::protobuf::Du inline void XtcpConfig::clear_reconcile_before_poll() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.reconcile_before_poll_ = false; - ClearHasBit(_impl_._has_bits_[2], 0x00000100U); + ClearHasBit(_impl_._has_bits_[2], 0x00000200U); } inline bool XtcpConfig::reconcile_before_poll() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.reconcile_before_poll) @@ -11612,7 +11677,7 @@ inline bool XtcpConfig::reconcile_before_poll() const { } inline void XtcpConfig::set_reconcile_before_poll(bool value) { _internal_set_reconcile_before_poll(value); - SetHasBit(_impl_._has_bits_[2], 0x00000100U); + SetHasBit(_impl_._has_bits_[2], 0x00000200U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.reconcile_before_poll) } inline bool XtcpConfig::_internal_reconcile_before_poll() const { @@ -11628,7 +11693,7 @@ inline void XtcpConfig::_internal_set_reconcile_before_poll(bool value) { inline void XtcpConfig::clear_max_netns() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_netns_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00000001U); + ClearHasBit(_impl_._has_bits_[2], 0x00000002U); } inline ::uint32_t XtcpConfig::max_netns() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.max_netns) @@ -11636,7 +11701,7 @@ inline ::uint32_t XtcpConfig::max_netns() const { } inline void XtcpConfig::set_max_netns(::uint32_t value) { _internal_set_max_netns(value); - SetHasBit(_impl_._has_bits_[2], 0x00000001U); + SetHasBit(_impl_._has_bits_[2], 0x00000002U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.max_netns) } inline ::uint32_t XtcpConfig::_internal_max_netns() const { @@ -11650,7 +11715,7 @@ inline void XtcpConfig::_internal_set_max_netns(::uint32_t value) { // .google.protobuf.Duration reconcile_timeout = 43 [json_name = "reconcileTimeout", (.buf.validate.field) = { inline bool XtcpConfig::has_reconcile_timeout() const { - bool value = CheckHasBit(_impl_._has_bits_[1], 0x00100000U); + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00200000U); PROTOBUF_ASSUME(!value || _impl_.reconcile_timeout_ != nullptr); return value; } @@ -11671,16 +11736,16 @@ inline void XtcpConfig::unsafe_arena_set_allocated_reconcile_timeout( } _impl_.reconcile_timeout_ = reinterpret_cast<::google::protobuf::Duration*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[1], 0x00100000U); + SetHasBit(_impl_._has_bits_[1], 0x00200000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x00100000U); + ClearHasBit(_impl_._has_bits_[1], 0x00200000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xtcp_config.v1.XtcpConfig.reconcile_timeout) } inline ::google::protobuf::Duration* PROTOBUF_NULLABLE XtcpConfig::release_reconcile_timeout() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[1], 0x00100000U); + ClearHasBit(_impl_._has_bits_[1], 0x00200000U); ::google::protobuf::Duration* released = _impl_.reconcile_timeout_; _impl_.reconcile_timeout_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -11700,7 +11765,7 @@ inline ::google::protobuf::Duration* PROTOBUF_NULLABLE XtcpConfig::unsafe_arena_ ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:xtcp_config.v1.XtcpConfig.reconcile_timeout) - ClearHasBit(_impl_._has_bits_[1], 0x00100000U); + ClearHasBit(_impl_._has_bits_[1], 0x00200000U); ::google::protobuf::Duration* temp = _impl_.reconcile_timeout_; _impl_.reconcile_timeout_ = nullptr; return temp; @@ -11715,7 +11780,7 @@ inline ::google::protobuf::Duration* PROTOBUF_NONNULL XtcpConfig::_internal_muta } inline ::google::protobuf::Duration* PROTOBUF_NONNULL XtcpConfig::mutable_reconcile_timeout() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[1], 0x00100000U); + SetHasBit(_impl_._has_bits_[1], 0x00200000U); ::google::protobuf::Duration* _msg = _internal_mutable_reconcile_timeout(); // @@protoc_insertion_point(field_mutable:xtcp_config.v1.XtcpConfig.reconcile_timeout) return _msg; @@ -11732,9 +11797,9 @@ inline void XtcpConfig::set_allocated_reconcile_timeout(::google::protobuf::Dura if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[1], 0x00100000U); + SetHasBit(_impl_._has_bits_[1], 0x00200000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x00100000U); + ClearHasBit(_impl_._has_bits_[1], 0x00200000U); } _impl_.reconcile_timeout_ = reinterpret_cast<::google::protobuf::Duration*>(value); @@ -11745,7 +11810,7 @@ inline void XtcpConfig::set_allocated_reconcile_timeout(::google::protobuf::Dura inline void XtcpConfig::clear_max_netns_per_owner() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_netns_per_owner_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00000002U); + ClearHasBit(_impl_._has_bits_[2], 0x00000004U); } inline ::uint32_t XtcpConfig::max_netns_per_owner() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.max_netns_per_owner) @@ -11753,7 +11818,7 @@ inline ::uint32_t XtcpConfig::max_netns_per_owner() const { } inline void XtcpConfig::set_max_netns_per_owner(::uint32_t value) { _internal_set_max_netns_per_owner(value); - SetHasBit(_impl_._has_bits_[2], 0x00000002U); + SetHasBit(_impl_._has_bits_[2], 0x00000004U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.max_netns_per_owner) } inline ::uint32_t XtcpConfig::_internal_max_netns_per_owner() const { @@ -11769,7 +11834,7 @@ inline void XtcpConfig::_internal_set_max_netns_per_owner(::uint32_t value) { inline void XtcpConfig::clear_max_netns_adds_per_reconcile() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_netns_adds_per_reconcile_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00000004U); + ClearHasBit(_impl_._has_bits_[2], 0x00000008U); } inline ::uint32_t XtcpConfig::max_netns_adds_per_reconcile() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.max_netns_adds_per_reconcile) @@ -11777,7 +11842,7 @@ inline ::uint32_t XtcpConfig::max_netns_adds_per_reconcile() const { } inline void XtcpConfig::set_max_netns_adds_per_reconcile(::uint32_t value) { _internal_set_max_netns_adds_per_reconcile(value); - SetHasBit(_impl_._has_bits_[2], 0x00000004U); + SetHasBit(_impl_._has_bits_[2], 0x00000008U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.max_netns_adds_per_reconcile) } inline ::uint32_t XtcpConfig::_internal_max_netns_adds_per_reconcile() const { @@ -11793,7 +11858,7 @@ inline void XtcpConfig::_internal_set_max_netns_adds_per_reconcile(::uint32_t va inline void XtcpConfig::clear_write_files() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.write_files_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00000008U); + ClearHasBit(_impl_._has_bits_[2], 0x00000010U); } inline ::uint32_t XtcpConfig::write_files() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.write_files) @@ -11801,7 +11866,7 @@ inline ::uint32_t XtcpConfig::write_files() const { } inline void XtcpConfig::set_write_files(::uint32_t value) { _internal_set_write_files(value); - SetHasBit(_impl_._has_bits_[2], 0x00000008U); + SetHasBit(_impl_._has_bits_[2], 0x00000010U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.write_files) } inline ::uint32_t XtcpConfig::_internal_write_files() const { @@ -11881,7 +11946,7 @@ inline void XtcpConfig::set_allocated_capture_path(::std::string* PROTOBUF_NULLA inline void XtcpConfig::clear_dest_write_files() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.dest_write_files_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00000010U); + ClearHasBit(_impl_._has_bits_[2], 0x00000020U); } inline ::uint32_t XtcpConfig::dest_write_files() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.dest_write_files) @@ -11889,7 +11954,7 @@ inline ::uint32_t XtcpConfig::dest_write_files() const { } inline void XtcpConfig::set_dest_write_files(::uint32_t value) { _internal_set_dest_write_files(value); - SetHasBit(_impl_._has_bits_[2], 0x00000010U); + SetHasBit(_impl_._has_bits_[2], 0x00000020U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.dest_write_files) } inline ::uint32_t XtcpConfig::_internal_dest_write_files() const { @@ -11905,7 +11970,7 @@ inline void XtcpConfig::_internal_set_dest_write_files(::uint32_t value) { inline void XtcpConfig::clear_debug_level() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.debug_level_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00000020U); + ClearHasBit(_impl_._has_bits_[2], 0x00000040U); } inline ::uint32_t XtcpConfig::debug_level() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.debug_level) @@ -11913,7 +11978,7 @@ inline ::uint32_t XtcpConfig::debug_level() const { } inline void XtcpConfig::set_debug_level(::uint32_t value) { _internal_set_debug_level(value); - SetHasBit(_impl_._has_bits_[2], 0x00000020U); + SetHasBit(_impl_._has_bits_[2], 0x00000040U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.debug_level) } inline ::uint32_t XtcpConfig::_internal_debug_level() const { @@ -11929,7 +11994,7 @@ inline void XtcpConfig::_internal_set_debug_level(::uint32_t value) { inline void XtcpConfig::clear_debug_prometheus() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.debug_prometheus_ = false; - ClearHasBit(_impl_._has_bits_[2], 0x00000200U); + ClearHasBit(_impl_._has_bits_[2], 0x00000400U); } inline bool XtcpConfig::debug_prometheus() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.debug_prometheus) @@ -11937,7 +12002,7 @@ inline bool XtcpConfig::debug_prometheus() const { } inline void XtcpConfig::set_debug_prometheus(bool value) { _internal_set_debug_prometheus(value); - SetHasBit(_impl_._has_bits_[2], 0x00000200U); + SetHasBit(_impl_._has_bits_[2], 0x00000400U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.debug_prometheus) } inline bool XtcpConfig::_internal_debug_prometheus() const { @@ -12209,7 +12274,7 @@ inline void XtcpConfig::set_allocated_xtcp_proto_file(::std::string* PROTOBUF_NU inline void XtcpConfig::clear_envelope_flush_threshold_bytes() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.envelope_flush_threshold_bytes_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00000040U); + ClearHasBit(_impl_._has_bits_[2], 0x00000080U); } inline ::uint32_t XtcpConfig::envelope_flush_threshold_bytes() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.envelope_flush_threshold_bytes) @@ -12217,7 +12282,7 @@ inline ::uint32_t XtcpConfig::envelope_flush_threshold_bytes() const { } inline void XtcpConfig::set_envelope_flush_threshold_bytes(::uint32_t value) { _internal_set_envelope_flush_threshold_bytes(value); - SetHasBit(_impl_._has_bits_[2], 0x00000040U); + SetHasBit(_impl_._has_bits_[2], 0x00000080U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.envelope_flush_threshold_bytes) } inline ::uint32_t XtcpConfig::_internal_envelope_flush_threshold_bytes() const { @@ -12233,7 +12298,7 @@ inline void XtcpConfig::_internal_set_envelope_flush_threshold_bytes(::uint32_t inline void XtcpConfig::clear_envelope_flush_threshold_rows() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.envelope_flush_threshold_rows_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00000080U); + ClearHasBit(_impl_._has_bits_[2], 0x00000100U); } inline ::uint32_t XtcpConfig::envelope_flush_threshold_rows() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.envelope_flush_threshold_rows) @@ -12241,7 +12306,7 @@ inline ::uint32_t XtcpConfig::envelope_flush_threshold_rows() const { } inline void XtcpConfig::set_envelope_flush_threshold_rows(::uint32_t value) { _internal_set_envelope_flush_threshold_rows(value); - SetHasBit(_impl_._has_bits_[2], 0x00000080U); + SetHasBit(_impl_._has_bits_[2], 0x00000100U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.envelope_flush_threshold_rows) } inline ::uint32_t XtcpConfig::_internal_envelope_flush_threshold_rows() const { @@ -12383,7 +12448,7 @@ inline void XtcpConfig::set_allocated_kafka_schema_url(::std::string* PROTOBUF_N // .google.protobuf.Duration kafka_produce_timeout = 82 [json_name = "kafkaProduceTimeout", (.buf.validate.field) = { inline bool XtcpConfig::has_kafka_produce_timeout() const { - bool value = CheckHasBit(_impl_._has_bits_[1], 0x00200000U); + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00400000U); PROTOBUF_ASSUME(!value || _impl_.kafka_produce_timeout_ != nullptr); return value; } @@ -12404,16 +12469,16 @@ inline void XtcpConfig::unsafe_arena_set_allocated_kafka_produce_timeout( } _impl_.kafka_produce_timeout_ = reinterpret_cast<::google::protobuf::Duration*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[1], 0x00200000U); + SetHasBit(_impl_._has_bits_[1], 0x00400000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x00200000U); + ClearHasBit(_impl_._has_bits_[1], 0x00400000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xtcp_config.v1.XtcpConfig.kafka_produce_timeout) } inline ::google::protobuf::Duration* PROTOBUF_NULLABLE XtcpConfig::release_kafka_produce_timeout() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[1], 0x00200000U); + ClearHasBit(_impl_._has_bits_[1], 0x00400000U); ::google::protobuf::Duration* released = _impl_.kafka_produce_timeout_; _impl_.kafka_produce_timeout_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -12433,7 +12498,7 @@ inline ::google::protobuf::Duration* PROTOBUF_NULLABLE XtcpConfig::unsafe_arena_ ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:xtcp_config.v1.XtcpConfig.kafka_produce_timeout) - ClearHasBit(_impl_._has_bits_[1], 0x00200000U); + ClearHasBit(_impl_._has_bits_[1], 0x00400000U); ::google::protobuf::Duration* temp = _impl_.kafka_produce_timeout_; _impl_.kafka_produce_timeout_ = nullptr; return temp; @@ -12448,7 +12513,7 @@ inline ::google::protobuf::Duration* PROTOBUF_NONNULL XtcpConfig::_internal_muta } inline ::google::protobuf::Duration* PROTOBUF_NONNULL XtcpConfig::mutable_kafka_produce_timeout() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[1], 0x00200000U); + SetHasBit(_impl_._has_bits_[1], 0x00400000U); ::google::protobuf::Duration* _msg = _internal_mutable_kafka_produce_timeout(); // @@protoc_insertion_point(field_mutable:xtcp_config.v1.XtcpConfig.kafka_produce_timeout) return _msg; @@ -12465,9 +12530,9 @@ inline void XtcpConfig::set_allocated_kafka_produce_timeout(::google::protobuf:: if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[1], 0x00200000U); + SetHasBit(_impl_._has_bits_[1], 0x00400000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x00200000U); + ClearHasBit(_impl_._has_bits_[1], 0x00400000U); } _impl_.kafka_produce_timeout_ = reinterpret_cast<::google::protobuf::Duration*>(value); @@ -12926,7 +12991,7 @@ inline void XtcpConfig::set_allocated_s3_secret_key(::std::string* PROTOBUF_NULL inline void XtcpConfig::clear_s3_skip_bucket_probe() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.s3_skip_bucket_probe_ = false; - ClearHasBit(_impl_._has_bits_[2], 0x00000400U); + ClearHasBit(_impl_._has_bits_[2], 0x00000800U); } inline bool XtcpConfig::s3_skip_bucket_probe() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.s3_skip_bucket_probe) @@ -12934,7 +12999,7 @@ inline bool XtcpConfig::s3_skip_bucket_probe() const { } inline void XtcpConfig::set_s3_skip_bucket_probe(bool value) { _internal_set_s3_skip_bucket_probe(value); - SetHasBit(_impl_._has_bits_[2], 0x00000400U); + SetHasBit(_impl_._has_bits_[2], 0x00000800U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.s3_skip_bucket_probe) } inline bool XtcpConfig::_internal_s3_skip_bucket_probe() const { @@ -12950,7 +13015,7 @@ inline void XtcpConfig::_internal_set_s3_skip_bucket_probe(bool value) { inline void XtcpConfig::clear_s3_allow_insecure() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.s3_allow_insecure_ = false; - ClearHasBit(_impl_._has_bits_[2], 0x00000800U); + ClearHasBit(_impl_._has_bits_[2], 0x00001000U); } inline bool XtcpConfig::s3_allow_insecure() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.s3_allow_insecure) @@ -12958,7 +13023,7 @@ inline bool XtcpConfig::s3_allow_insecure() const { } inline void XtcpConfig::set_s3_allow_insecure(bool value) { _internal_set_s3_allow_insecure(value); - SetHasBit(_impl_._has_bits_[2], 0x00000800U); + SetHasBit(_impl_._has_bits_[2], 0x00001000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.s3_allow_insecure) } inline bool XtcpConfig::_internal_s3_allow_insecure() const { @@ -13038,7 +13103,7 @@ inline void XtcpConfig::set_allocated_s3_ca_file(::std::string* PROTOBUF_NULLABL inline void XtcpConfig::clear_s3_parquet_flush_threshold_bytes() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.s3_parquet_flush_threshold_bytes_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00001000U); + ClearHasBit(_impl_._has_bits_[2], 0x00002000U); } inline ::uint32_t XtcpConfig::s3_parquet_flush_threshold_bytes() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.s3_parquet_flush_threshold_bytes) @@ -13046,7 +13111,7 @@ inline ::uint32_t XtcpConfig::s3_parquet_flush_threshold_bytes() const { } inline void XtcpConfig::set_s3_parquet_flush_threshold_bytes(::uint32_t value) { _internal_set_s3_parquet_flush_threshold_bytes(value); - SetHasBit(_impl_._has_bits_[2], 0x00001000U); + SetHasBit(_impl_._has_bits_[2], 0x00002000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.s3_parquet_flush_threshold_bytes) } inline ::uint32_t XtcpConfig::_internal_s3_parquet_flush_threshold_bytes() const { @@ -13060,7 +13125,7 @@ inline void XtcpConfig::_internal_set_s3_parquet_flush_threshold_bytes(::uint32_ // .google.protobuf.Duration s3_flush_interval = 111 [json_name = "s3FlushInterval", (.buf.validate.field) = { inline bool XtcpConfig::has_s3_flush_interval() const { - bool value = CheckHasBit(_impl_._has_bits_[1], 0x00400000U); + bool value = CheckHasBit(_impl_._has_bits_[1], 0x00800000U); PROTOBUF_ASSUME(!value || _impl_.s3_flush_interval_ != nullptr); return value; } @@ -13081,16 +13146,16 @@ inline void XtcpConfig::unsafe_arena_set_allocated_s3_flush_interval( } _impl_.s3_flush_interval_ = reinterpret_cast<::google::protobuf::Duration*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[1], 0x00400000U); + SetHasBit(_impl_._has_bits_[1], 0x00800000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x00400000U); + ClearHasBit(_impl_._has_bits_[1], 0x00800000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xtcp_config.v1.XtcpConfig.s3_flush_interval) } inline ::google::protobuf::Duration* PROTOBUF_NULLABLE XtcpConfig::release_s3_flush_interval() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[1], 0x00400000U); + ClearHasBit(_impl_._has_bits_[1], 0x00800000U); ::google::protobuf::Duration* released = _impl_.s3_flush_interval_; _impl_.s3_flush_interval_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -13110,7 +13175,7 @@ inline ::google::protobuf::Duration* PROTOBUF_NULLABLE XtcpConfig::unsafe_arena_ ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:xtcp_config.v1.XtcpConfig.s3_flush_interval) - ClearHasBit(_impl_._has_bits_[1], 0x00400000U); + ClearHasBit(_impl_._has_bits_[1], 0x00800000U); ::google::protobuf::Duration* temp = _impl_.s3_flush_interval_; _impl_.s3_flush_interval_ = nullptr; return temp; @@ -13125,7 +13190,7 @@ inline ::google::protobuf::Duration* PROTOBUF_NONNULL XtcpConfig::_internal_muta } inline ::google::protobuf::Duration* PROTOBUF_NONNULL XtcpConfig::mutable_s3_flush_interval() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[1], 0x00400000U); + SetHasBit(_impl_._has_bits_[1], 0x00800000U); ::google::protobuf::Duration* _msg = _internal_mutable_s3_flush_interval(); // @@protoc_insertion_point(field_mutable:xtcp_config.v1.XtcpConfig.s3_flush_interval) return _msg; @@ -13142,9 +13207,9 @@ inline void XtcpConfig::set_allocated_s3_flush_interval(::google::protobuf::Dura if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[1], 0x00400000U); + SetHasBit(_impl_._has_bits_[1], 0x00800000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x00400000U); + ClearHasBit(_impl_._has_bits_[1], 0x00800000U); } _impl_.s3_flush_interval_ = reinterpret_cast<::google::protobuf::Duration*>(value); @@ -13155,7 +13220,7 @@ inline void XtcpConfig::set_allocated_s3_flush_interval(::google::protobuf::Dura inline void XtcpConfig::clear_s3_flush_jitter_pct() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.s3_flush_jitter_pct_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00002000U); + ClearHasBit(_impl_._has_bits_[2], 0x00004000U); } inline ::uint32_t XtcpConfig::s3_flush_jitter_pct() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.s3_flush_jitter_pct) @@ -13163,7 +13228,7 @@ inline ::uint32_t XtcpConfig::s3_flush_jitter_pct() const { } inline void XtcpConfig::set_s3_flush_jitter_pct(::uint32_t value) { _internal_set_s3_flush_jitter_pct(value); - SetHasBit(_impl_._has_bits_[2], 0x00002000U); + SetHasBit(_impl_._has_bits_[2], 0x00004000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.s3_flush_jitter_pct) } inline ::uint32_t XtcpConfig::_internal_s3_flush_jitter_pct() const { @@ -13179,7 +13244,7 @@ inline void XtcpConfig::_internal_set_s3_flush_jitter_pct(::uint32_t value) { inline void XtcpConfig::clear_s3_flush_threshold_jitter_pct() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.s3_flush_threshold_jitter_pct_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00004000U); + ClearHasBit(_impl_._has_bits_[2], 0x00008000U); } inline ::uint32_t XtcpConfig::s3_flush_threshold_jitter_pct() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.s3_flush_threshold_jitter_pct) @@ -13187,7 +13252,7 @@ inline ::uint32_t XtcpConfig::s3_flush_threshold_jitter_pct() const { } inline void XtcpConfig::set_s3_flush_threshold_jitter_pct(::uint32_t value) { _internal_set_s3_flush_threshold_jitter_pct(value); - SetHasBit(_impl_._has_bits_[2], 0x00004000U); + SetHasBit(_impl_._has_bits_[2], 0x00008000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.s3_flush_threshold_jitter_pct) } inline ::uint32_t XtcpConfig::_internal_s3_flush_threshold_jitter_pct() const { @@ -13203,7 +13268,7 @@ inline void XtcpConfig::_internal_set_s3_flush_threshold_jitter_pct(::uint32_t v inline void XtcpConfig::clear_s3_upload_max_attempts() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.s3_upload_max_attempts_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00008000U); + ClearHasBit(_impl_._has_bits_[2], 0x00010000U); } inline ::uint32_t XtcpConfig::s3_upload_max_attempts() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.s3_upload_max_attempts) @@ -13211,7 +13276,7 @@ inline ::uint32_t XtcpConfig::s3_upload_max_attempts() const { } inline void XtcpConfig::set_s3_upload_max_attempts(::uint32_t value) { _internal_set_s3_upload_max_attempts(value); - SetHasBit(_impl_._has_bits_[2], 0x00008000U); + SetHasBit(_impl_._has_bits_[2], 0x00010000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.s3_upload_max_attempts) } inline ::uint32_t XtcpConfig::_internal_s3_upload_max_attempts() const { @@ -13225,7 +13290,7 @@ inline void XtcpConfig::_internal_set_s3_upload_max_attempts(::uint32_t value) { // .google.protobuf.Duration s3_upload_backoff_cap = 115 [json_name = "s3UploadBackoffCap", (.buf.validate.field) = { inline bool XtcpConfig::has_s3_upload_backoff_cap() const { - bool value = CheckHasBit(_impl_._has_bits_[1], 0x00800000U); + bool value = CheckHasBit(_impl_._has_bits_[1], 0x01000000U); PROTOBUF_ASSUME(!value || _impl_.s3_upload_backoff_cap_ != nullptr); return value; } @@ -13246,16 +13311,16 @@ inline void XtcpConfig::unsafe_arena_set_allocated_s3_upload_backoff_cap( } _impl_.s3_upload_backoff_cap_ = reinterpret_cast<::google::protobuf::Duration*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[1], 0x00800000U); + SetHasBit(_impl_._has_bits_[1], 0x01000000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x00800000U); + ClearHasBit(_impl_._has_bits_[1], 0x01000000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xtcp_config.v1.XtcpConfig.s3_upload_backoff_cap) } inline ::google::protobuf::Duration* PROTOBUF_NULLABLE XtcpConfig::release_s3_upload_backoff_cap() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[1], 0x00800000U); + ClearHasBit(_impl_._has_bits_[1], 0x01000000U); ::google::protobuf::Duration* released = _impl_.s3_upload_backoff_cap_; _impl_.s3_upload_backoff_cap_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -13275,7 +13340,7 @@ inline ::google::protobuf::Duration* PROTOBUF_NULLABLE XtcpConfig::unsafe_arena_ ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:xtcp_config.v1.XtcpConfig.s3_upload_backoff_cap) - ClearHasBit(_impl_._has_bits_[1], 0x00800000U); + ClearHasBit(_impl_._has_bits_[1], 0x01000000U); ::google::protobuf::Duration* temp = _impl_.s3_upload_backoff_cap_; _impl_.s3_upload_backoff_cap_ = nullptr; return temp; @@ -13290,7 +13355,7 @@ inline ::google::protobuf::Duration* PROTOBUF_NONNULL XtcpConfig::_internal_muta } inline ::google::protobuf::Duration* PROTOBUF_NONNULL XtcpConfig::mutable_s3_upload_backoff_cap() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[1], 0x00800000U); + SetHasBit(_impl_._has_bits_[1], 0x01000000U); ::google::protobuf::Duration* _msg = _internal_mutable_s3_upload_backoff_cap(); // @@protoc_insertion_point(field_mutable:xtcp_config.v1.XtcpConfig.s3_upload_backoff_cap) return _msg; @@ -13307,9 +13372,9 @@ inline void XtcpConfig::set_allocated_s3_upload_backoff_cap(::google::protobuf:: if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[1], 0x00800000U); + SetHasBit(_impl_._has_bits_[1], 0x01000000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x00800000U); + ClearHasBit(_impl_._has_bits_[1], 0x01000000U); } _impl_.s3_upload_backoff_cap_ = reinterpret_cast<::google::protobuf::Duration*>(value); @@ -13320,7 +13385,7 @@ inline void XtcpConfig::set_allocated_s3_upload_backoff_cap(::google::protobuf:: inline void XtcpConfig::clear_s3_queue_depth() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.s3_queue_depth_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00010000U); + ClearHasBit(_impl_._has_bits_[2], 0x00020000U); } inline ::uint32_t XtcpConfig::s3_queue_depth() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.s3_queue_depth) @@ -13328,7 +13393,7 @@ inline ::uint32_t XtcpConfig::s3_queue_depth() const { } inline void XtcpConfig::set_s3_queue_depth(::uint32_t value) { _internal_set_s3_queue_depth(value); - SetHasBit(_impl_._has_bits_[2], 0x00010000U); + SetHasBit(_impl_._has_bits_[2], 0x00020000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.s3_queue_depth) } inline ::uint32_t XtcpConfig::_internal_s3_queue_depth() const { @@ -13344,7 +13409,7 @@ inline void XtcpConfig::_internal_set_s3_queue_depth(::uint32_t value) { inline void XtcpConfig::clear_s3_max_buffered_bytes() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.s3_max_buffered_bytes_ = ::uint64_t{0u}; - ClearHasBit(_impl_._has_bits_[2], 0x00020000U); + ClearHasBit(_impl_._has_bits_[2], 0x00040000U); } inline ::uint64_t XtcpConfig::s3_max_buffered_bytes() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.s3_max_buffered_bytes) @@ -13352,7 +13417,7 @@ inline ::uint64_t XtcpConfig::s3_max_buffered_bytes() const { } inline void XtcpConfig::set_s3_max_buffered_bytes(::uint64_t value) { _internal_set_s3_max_buffered_bytes(value); - SetHasBit(_impl_._has_bits_[2], 0x00020000U); + SetHasBit(_impl_._has_bits_[2], 0x00040000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.s3_max_buffered_bytes) } inline ::uint64_t XtcpConfig::_internal_s3_max_buffered_bytes() const { @@ -13432,7 +13497,7 @@ inline void XtcpConfig::set_allocated_s3_spill_dir(::std::string* PROTOBUF_NULLA inline void XtcpConfig::clear_s3_spill_max_bytes() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.s3_spill_max_bytes_ = ::uint64_t{0u}; - ClearHasBit(_impl_._has_bits_[2], 0x00040000U); + ClearHasBit(_impl_._has_bits_[2], 0x00080000U); } inline ::uint64_t XtcpConfig::s3_spill_max_bytes() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.s3_spill_max_bytes) @@ -13440,7 +13505,7 @@ inline ::uint64_t XtcpConfig::s3_spill_max_bytes() const { } inline void XtcpConfig::set_s3_spill_max_bytes(::uint64_t value) { _internal_set_s3_spill_max_bytes(value); - SetHasBit(_impl_._has_bits_[2], 0x00040000U); + SetHasBit(_impl_._has_bits_[2], 0x00080000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.s3_spill_max_bytes) } inline ::uint64_t XtcpConfig::_internal_s3_spill_max_bytes() const { @@ -13454,7 +13519,7 @@ inline void XtcpConfig::_internal_set_s3_spill_max_bytes(::uint64_t value) { // .google.protobuf.Duration tcp_write_timeout = 120 [json_name = "tcpWriteTimeout", (.buf.validate.field) = { inline bool XtcpConfig::has_tcp_write_timeout() const { - bool value = CheckHasBit(_impl_._has_bits_[1], 0x01000000U); + bool value = CheckHasBit(_impl_._has_bits_[1], 0x02000000U); PROTOBUF_ASSUME(!value || _impl_.tcp_write_timeout_ != nullptr); return value; } @@ -13475,16 +13540,16 @@ inline void XtcpConfig::unsafe_arena_set_allocated_tcp_write_timeout( } _impl_.tcp_write_timeout_ = reinterpret_cast<::google::protobuf::Duration*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[1], 0x01000000U); + SetHasBit(_impl_._has_bits_[1], 0x02000000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x01000000U); + ClearHasBit(_impl_._has_bits_[1], 0x02000000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xtcp_config.v1.XtcpConfig.tcp_write_timeout) } inline ::google::protobuf::Duration* PROTOBUF_NULLABLE XtcpConfig::release_tcp_write_timeout() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[1], 0x01000000U); + ClearHasBit(_impl_._has_bits_[1], 0x02000000U); ::google::protobuf::Duration* released = _impl_.tcp_write_timeout_; _impl_.tcp_write_timeout_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -13504,7 +13569,7 @@ inline ::google::protobuf::Duration* PROTOBUF_NULLABLE XtcpConfig::unsafe_arena_ ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:xtcp_config.v1.XtcpConfig.tcp_write_timeout) - ClearHasBit(_impl_._has_bits_[1], 0x01000000U); + ClearHasBit(_impl_._has_bits_[1], 0x02000000U); ::google::protobuf::Duration* temp = _impl_.tcp_write_timeout_; _impl_.tcp_write_timeout_ = nullptr; return temp; @@ -13519,7 +13584,7 @@ inline ::google::protobuf::Duration* PROTOBUF_NONNULL XtcpConfig::_internal_muta } inline ::google::protobuf::Duration* PROTOBUF_NONNULL XtcpConfig::mutable_tcp_write_timeout() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[1], 0x01000000U); + SetHasBit(_impl_._has_bits_[1], 0x02000000U); ::google::protobuf::Duration* _msg = _internal_mutable_tcp_write_timeout(); // @@protoc_insertion_point(field_mutable:xtcp_config.v1.XtcpConfig.tcp_write_timeout) return _msg; @@ -13536,9 +13601,9 @@ inline void XtcpConfig::set_allocated_tcp_write_timeout(::google::protobuf::Dura if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[1], 0x01000000U); + SetHasBit(_impl_._has_bits_[1], 0x02000000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x01000000U); + ClearHasBit(_impl_._has_bits_[1], 0x02000000U); } _impl_.tcp_write_timeout_ = reinterpret_cast<::google::protobuf::Duration*>(value); @@ -13549,7 +13614,7 @@ inline void XtcpConfig::set_allocated_tcp_write_timeout(::google::protobuf::Dura inline void XtcpConfig::clear_tcp_queue_depth() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.tcp_queue_depth_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00100000U); + ClearHasBit(_impl_._has_bits_[2], 0x00200000U); } inline ::uint32_t XtcpConfig::tcp_queue_depth() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.tcp_queue_depth) @@ -13557,7 +13622,7 @@ inline ::uint32_t XtcpConfig::tcp_queue_depth() const { } inline void XtcpConfig::set_tcp_queue_depth(::uint32_t value) { _internal_set_tcp_queue_depth(value); - SetHasBit(_impl_._has_bits_[2], 0x00100000U); + SetHasBit(_impl_._has_bits_[2], 0x00200000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.tcp_queue_depth) } inline ::uint32_t XtcpConfig::_internal_tcp_queue_depth() const { @@ -13573,7 +13638,7 @@ inline void XtcpConfig::_internal_set_tcp_queue_depth(::uint32_t value) { inline void XtcpConfig::clear_tcp_max_buffered_bytes() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.tcp_max_buffered_bytes_ = ::uint64_t{0u}; - ClearHasBit(_impl_._has_bits_[2], 0x00080000U); + ClearHasBit(_impl_._has_bits_[2], 0x00100000U); } inline ::uint64_t XtcpConfig::tcp_max_buffered_bytes() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.tcp_max_buffered_bytes) @@ -13581,7 +13646,7 @@ inline ::uint64_t XtcpConfig::tcp_max_buffered_bytes() const { } inline void XtcpConfig::set_tcp_max_buffered_bytes(::uint64_t value) { _internal_set_tcp_max_buffered_bytes(value); - SetHasBit(_impl_._has_bits_[2], 0x00080000U); + SetHasBit(_impl_._has_bits_[2], 0x00100000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.tcp_max_buffered_bytes) } inline ::uint64_t XtcpConfig::_internal_tcp_max_buffered_bytes() const { @@ -13917,7 +13982,7 @@ inline void XtcpConfig::set_allocated_daemon_version(::std::string* PROTOBUF_NUL inline void XtcpConfig::clear_ipv4_ttl() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.ipv4_ttl_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00200000U); + ClearHasBit(_impl_._has_bits_[2], 0x00400000U); } inline ::uint32_t XtcpConfig::ipv4_ttl() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.ipv4_ttl) @@ -13925,7 +13990,7 @@ inline ::uint32_t XtcpConfig::ipv4_ttl() const { } inline void XtcpConfig::set_ipv4_ttl(::uint32_t value) { _internal_set_ipv4_ttl(value); - SetHasBit(_impl_._has_bits_[2], 0x00200000U); + SetHasBit(_impl_._has_bits_[2], 0x00400000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.ipv4_ttl) } inline ::uint32_t XtcpConfig::_internal_ipv4_ttl() const { @@ -13941,7 +14006,7 @@ inline void XtcpConfig::_internal_set_ipv4_ttl(::uint32_t value) { inline void XtcpConfig::clear_ipv6_hop_limit() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.ipv6_hop_limit_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00400000U); + ClearHasBit(_impl_._has_bits_[2], 0x00800000U); } inline ::uint32_t XtcpConfig::ipv6_hop_limit() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.ipv6_hop_limit) @@ -13949,7 +14014,7 @@ inline ::uint32_t XtcpConfig::ipv6_hop_limit() const { } inline void XtcpConfig::set_ipv6_hop_limit(::uint32_t value) { _internal_set_ipv6_hop_limit(value); - SetHasBit(_impl_._has_bits_[2], 0x00400000U); + SetHasBit(_impl_._has_bits_[2], 0x00800000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.ipv6_hop_limit) } inline ::uint32_t XtcpConfig::_internal_ipv6_hop_limit() const { @@ -13963,14 +14028,14 @@ inline void XtcpConfig::_internal_set_ipv6_hop_limit(::uint32_t value) { // .xtcp_config.v1.ListenerAuth listener_auth = 152 [json_name = "listenerAuth", (.buf.validate.field) = { inline bool XtcpConfig::has_listener_auth() const { - bool value = CheckHasBit(_impl_._has_bits_[1], 0x02000000U); + bool value = CheckHasBit(_impl_._has_bits_[1], 0x04000000U); PROTOBUF_ASSUME(!value || _impl_.listener_auth_ != nullptr); return value; } inline void XtcpConfig::clear_listener_auth() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.listener_auth_ != nullptr) _impl_.listener_auth_->Clear(); - ClearHasBit(_impl_._has_bits_[1], 0x02000000U); + ClearHasBit(_impl_._has_bits_[1], 0x04000000U); } inline const ::xtcp_config::v1::ListenerAuth& XtcpConfig::_internal_listener_auth() const { ::google::protobuf::internal::TSanRead(&_impl_); @@ -13989,16 +14054,16 @@ inline void XtcpConfig::unsafe_arena_set_allocated_listener_auth( } _impl_.listener_auth_ = reinterpret_cast<::xtcp_config::v1::ListenerAuth*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[1], 0x02000000U); + SetHasBit(_impl_._has_bits_[1], 0x04000000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x02000000U); + ClearHasBit(_impl_._has_bits_[1], 0x04000000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xtcp_config.v1.XtcpConfig.listener_auth) } inline ::xtcp_config::v1::ListenerAuth* PROTOBUF_NULLABLE XtcpConfig::release_listener_auth() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[1], 0x02000000U); + ClearHasBit(_impl_._has_bits_[1], 0x04000000U); ::xtcp_config::v1::ListenerAuth* released = _impl_.listener_auth_; _impl_.listener_auth_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -14018,7 +14083,7 @@ inline ::xtcp_config::v1::ListenerAuth* PROTOBUF_NULLABLE XtcpConfig::unsafe_are ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:xtcp_config.v1.XtcpConfig.listener_auth) - ClearHasBit(_impl_._has_bits_[1], 0x02000000U); + ClearHasBit(_impl_._has_bits_[1], 0x04000000U); ::xtcp_config::v1::ListenerAuth* temp = _impl_.listener_auth_; _impl_.listener_auth_ = nullptr; return temp; @@ -14033,7 +14098,7 @@ inline ::xtcp_config::v1::ListenerAuth* PROTOBUF_NONNULL XtcpConfig::_internal_m } inline ::xtcp_config::v1::ListenerAuth* PROTOBUF_NONNULL XtcpConfig::mutable_listener_auth() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[1], 0x02000000U); + SetHasBit(_impl_._has_bits_[1], 0x04000000U); ::xtcp_config::v1::ListenerAuth* _msg = _internal_mutable_listener_auth(); // @@protoc_insertion_point(field_mutable:xtcp_config.v1.XtcpConfig.listener_auth) return _msg; @@ -14050,9 +14115,9 @@ inline void XtcpConfig::set_allocated_listener_auth(::xtcp_config::v1::ListenerA if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[1], 0x02000000U); + SetHasBit(_impl_._has_bits_[1], 0x04000000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x02000000U); + ClearHasBit(_impl_._has_bits_[1], 0x04000000U); } _impl_.listener_auth_ = reinterpret_cast<::xtcp_config::v1::ListenerAuth*>(value); @@ -14061,14 +14126,14 @@ inline void XtcpConfig::set_allocated_listener_auth(::xtcp_config::v1::ListenerA // .xtcp_config.v1.ListenerEndpoint prometheus_listener = 153 [json_name = "prometheusListener", (.buf.validate.field) = { inline bool XtcpConfig::has_prometheus_listener() const { - bool value = CheckHasBit(_impl_._has_bits_[1], 0x04000000U); + bool value = CheckHasBit(_impl_._has_bits_[1], 0x08000000U); PROTOBUF_ASSUME(!value || _impl_.prometheus_listener_ != nullptr); return value; } inline void XtcpConfig::clear_prometheus_listener() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.prometheus_listener_ != nullptr) _impl_.prometheus_listener_->Clear(); - ClearHasBit(_impl_._has_bits_[1], 0x04000000U); + ClearHasBit(_impl_._has_bits_[1], 0x08000000U); } inline const ::xtcp_config::v1::ListenerEndpoint& XtcpConfig::_internal_prometheus_listener() const { ::google::protobuf::internal::TSanRead(&_impl_); @@ -14087,16 +14152,16 @@ inline void XtcpConfig::unsafe_arena_set_allocated_prometheus_listener( } _impl_.prometheus_listener_ = reinterpret_cast<::xtcp_config::v1::ListenerEndpoint*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[1], 0x04000000U); + SetHasBit(_impl_._has_bits_[1], 0x08000000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x04000000U); + ClearHasBit(_impl_._has_bits_[1], 0x08000000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xtcp_config.v1.XtcpConfig.prometheus_listener) } inline ::xtcp_config::v1::ListenerEndpoint* PROTOBUF_NULLABLE XtcpConfig::release_prometheus_listener() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[1], 0x04000000U); + ClearHasBit(_impl_._has_bits_[1], 0x08000000U); ::xtcp_config::v1::ListenerEndpoint* released = _impl_.prometheus_listener_; _impl_.prometheus_listener_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -14116,7 +14181,7 @@ inline ::xtcp_config::v1::ListenerEndpoint* PROTOBUF_NULLABLE XtcpConfig::unsafe ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:xtcp_config.v1.XtcpConfig.prometheus_listener) - ClearHasBit(_impl_._has_bits_[1], 0x04000000U); + ClearHasBit(_impl_._has_bits_[1], 0x08000000U); ::xtcp_config::v1::ListenerEndpoint* temp = _impl_.prometheus_listener_; _impl_.prometheus_listener_ = nullptr; return temp; @@ -14131,7 +14196,7 @@ inline ::xtcp_config::v1::ListenerEndpoint* PROTOBUF_NONNULL XtcpConfig::_intern } inline ::xtcp_config::v1::ListenerEndpoint* PROTOBUF_NONNULL XtcpConfig::mutable_prometheus_listener() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[1], 0x04000000U); + SetHasBit(_impl_._has_bits_[1], 0x08000000U); ::xtcp_config::v1::ListenerEndpoint* _msg = _internal_mutable_prometheus_listener(); // @@protoc_insertion_point(field_mutable:xtcp_config.v1.XtcpConfig.prometheus_listener) return _msg; @@ -14148,9 +14213,9 @@ inline void XtcpConfig::set_allocated_prometheus_listener(::xtcp_config::v1::Lis if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[1], 0x04000000U); + SetHasBit(_impl_._has_bits_[1], 0x08000000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x04000000U); + ClearHasBit(_impl_._has_bits_[1], 0x08000000U); } _impl_.prometheus_listener_ = reinterpret_cast<::xtcp_config::v1::ListenerEndpoint*>(value); @@ -14159,14 +14224,14 @@ inline void XtcpConfig::set_allocated_prometheus_listener(::xtcp_config::v1::Lis // .xtcp_config.v1.ListenerAuth admin_listener_auth = 154 [json_name = "adminListenerAuth", (.buf.validate.field) = { inline bool XtcpConfig::has_admin_listener_auth() const { - bool value = CheckHasBit(_impl_._has_bits_[1], 0x08000000U); + bool value = CheckHasBit(_impl_._has_bits_[1], 0x10000000U); PROTOBUF_ASSUME(!value || _impl_.admin_listener_auth_ != nullptr); return value; } inline void XtcpConfig::clear_admin_listener_auth() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.admin_listener_auth_ != nullptr) _impl_.admin_listener_auth_->Clear(); - ClearHasBit(_impl_._has_bits_[1], 0x08000000U); + ClearHasBit(_impl_._has_bits_[1], 0x10000000U); } inline const ::xtcp_config::v1::ListenerAuth& XtcpConfig::_internal_admin_listener_auth() const { ::google::protobuf::internal::TSanRead(&_impl_); @@ -14185,16 +14250,16 @@ inline void XtcpConfig::unsafe_arena_set_allocated_admin_listener_auth( } _impl_.admin_listener_auth_ = reinterpret_cast<::xtcp_config::v1::ListenerAuth*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[1], 0x08000000U); + SetHasBit(_impl_._has_bits_[1], 0x10000000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x08000000U); + ClearHasBit(_impl_._has_bits_[1], 0x10000000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xtcp_config.v1.XtcpConfig.admin_listener_auth) } inline ::xtcp_config::v1::ListenerAuth* PROTOBUF_NULLABLE XtcpConfig::release_admin_listener_auth() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[1], 0x08000000U); + ClearHasBit(_impl_._has_bits_[1], 0x10000000U); ::xtcp_config::v1::ListenerAuth* released = _impl_.admin_listener_auth_; _impl_.admin_listener_auth_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -14214,7 +14279,7 @@ inline ::xtcp_config::v1::ListenerAuth* PROTOBUF_NULLABLE XtcpConfig::unsafe_are ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:xtcp_config.v1.XtcpConfig.admin_listener_auth) - ClearHasBit(_impl_._has_bits_[1], 0x08000000U); + ClearHasBit(_impl_._has_bits_[1], 0x10000000U); ::xtcp_config::v1::ListenerAuth* temp = _impl_.admin_listener_auth_; _impl_.admin_listener_auth_ = nullptr; return temp; @@ -14229,7 +14294,7 @@ inline ::xtcp_config::v1::ListenerAuth* PROTOBUF_NONNULL XtcpConfig::_internal_m } inline ::xtcp_config::v1::ListenerAuth* PROTOBUF_NONNULL XtcpConfig::mutable_admin_listener_auth() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[1], 0x08000000U); + SetHasBit(_impl_._has_bits_[1], 0x10000000U); ::xtcp_config::v1::ListenerAuth* _msg = _internal_mutable_admin_listener_auth(); // @@protoc_insertion_point(field_mutable:xtcp_config.v1.XtcpConfig.admin_listener_auth) return _msg; @@ -14246,9 +14311,9 @@ inline void XtcpConfig::set_allocated_admin_listener_auth(::xtcp_config::v1::Lis if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[1], 0x08000000U); + SetHasBit(_impl_._has_bits_[1], 0x10000000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x08000000U); + ClearHasBit(_impl_._has_bits_[1], 0x10000000U); } _impl_.admin_listener_auth_ = reinterpret_cast<::xtcp_config::v1::ListenerAuth*>(value); @@ -14259,7 +14324,7 @@ inline void XtcpConfig::set_allocated_admin_listener_auth(::xtcp_config::v1::Lis inline void XtcpConfig::clear_grpc_port() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.grpc_port_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x00800000U); + ClearHasBit(_impl_._has_bits_[2], 0x01000000U); } inline ::uint32_t XtcpConfig::grpc_port() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.grpc_port) @@ -14267,7 +14332,7 @@ inline ::uint32_t XtcpConfig::grpc_port() const { } inline void XtcpConfig::set_grpc_port(::uint32_t value) { _internal_set_grpc_port(value); - SetHasBit(_impl_._has_bits_[2], 0x00800000U); + SetHasBit(_impl_._has_bits_[2], 0x01000000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.grpc_port) } inline ::uint32_t XtcpConfig::_internal_grpc_port() const { @@ -14281,14 +14346,14 @@ inline void XtcpConfig::_internal_set_grpc_port(::uint32_t value) { // .xtcp_config.v1.ListenerEndpoint grpc_listener = 161 [json_name = "grpcListener", (.buf.validate.field) = { inline bool XtcpConfig::has_grpc_listener() const { - bool value = CheckHasBit(_impl_._has_bits_[1], 0x10000000U); + bool value = CheckHasBit(_impl_._has_bits_[1], 0x20000000U); PROTOBUF_ASSUME(!value || _impl_.grpc_listener_ != nullptr); return value; } inline void XtcpConfig::clear_grpc_listener() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.grpc_listener_ != nullptr) _impl_.grpc_listener_->Clear(); - ClearHasBit(_impl_._has_bits_[1], 0x10000000U); + ClearHasBit(_impl_._has_bits_[1], 0x20000000U); } inline const ::xtcp_config::v1::ListenerEndpoint& XtcpConfig::_internal_grpc_listener() const { ::google::protobuf::internal::TSanRead(&_impl_); @@ -14307,16 +14372,16 @@ inline void XtcpConfig::unsafe_arena_set_allocated_grpc_listener( } _impl_.grpc_listener_ = reinterpret_cast<::xtcp_config::v1::ListenerEndpoint*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[1], 0x10000000U); + SetHasBit(_impl_._has_bits_[1], 0x20000000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x10000000U); + ClearHasBit(_impl_._has_bits_[1], 0x20000000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xtcp_config.v1.XtcpConfig.grpc_listener) } inline ::xtcp_config::v1::ListenerEndpoint* PROTOBUF_NULLABLE XtcpConfig::release_grpc_listener() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[1], 0x10000000U); + ClearHasBit(_impl_._has_bits_[1], 0x20000000U); ::xtcp_config::v1::ListenerEndpoint* released = _impl_.grpc_listener_; _impl_.grpc_listener_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -14336,7 +14401,7 @@ inline ::xtcp_config::v1::ListenerEndpoint* PROTOBUF_NULLABLE XtcpConfig::unsafe ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:xtcp_config.v1.XtcpConfig.grpc_listener) - ClearHasBit(_impl_._has_bits_[1], 0x10000000U); + ClearHasBit(_impl_._has_bits_[1], 0x20000000U); ::xtcp_config::v1::ListenerEndpoint* temp = _impl_.grpc_listener_; _impl_.grpc_listener_ = nullptr; return temp; @@ -14351,7 +14416,7 @@ inline ::xtcp_config::v1::ListenerEndpoint* PROTOBUF_NONNULL XtcpConfig::_intern } inline ::xtcp_config::v1::ListenerEndpoint* PROTOBUF_NONNULL XtcpConfig::mutable_grpc_listener() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[1], 0x10000000U); + SetHasBit(_impl_._has_bits_[1], 0x20000000U); ::xtcp_config::v1::ListenerEndpoint* _msg = _internal_mutable_grpc_listener(); // @@protoc_insertion_point(field_mutable:xtcp_config.v1.XtcpConfig.grpc_listener) return _msg; @@ -14368,9 +14433,9 @@ inline void XtcpConfig::set_allocated_grpc_listener(::xtcp_config::v1::ListenerE if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[1], 0x10000000U); + SetHasBit(_impl_._has_bits_[1], 0x20000000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x10000000U); + ClearHasBit(_impl_._has_bits_[1], 0x20000000U); } _impl_.grpc_listener_ = reinterpret_cast<::xtcp_config::v1::ListenerEndpoint*>(value); @@ -14564,7 +14629,7 @@ inline void XtcpConfig::set_allocated_pyroscope_app_name(::std::string* PROTOBUF inline void XtcpConfig::clear_pyroscope_sample_hz() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pyroscope_sample_hz_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x01000000U); + ClearHasBit(_impl_._has_bits_[2], 0x02000000U); } inline ::uint32_t XtcpConfig::pyroscope_sample_hz() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.pyroscope_sample_hz) @@ -14572,7 +14637,7 @@ inline ::uint32_t XtcpConfig::pyroscope_sample_hz() const { } inline void XtcpConfig::set_pyroscope_sample_hz(::uint32_t value) { _internal_set_pyroscope_sample_hz(value); - SetHasBit(_impl_._has_bits_[2], 0x01000000U); + SetHasBit(_impl_._has_bits_[2], 0x02000000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.pyroscope_sample_hz) } inline ::uint32_t XtcpConfig::_internal_pyroscope_sample_hz() const { @@ -14588,7 +14653,7 @@ inline void XtcpConfig::_internal_set_pyroscope_sample_hz(::uint32_t value) { inline void XtcpConfig::clear_pyroscope_upload_interval_sec() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pyroscope_upload_interval_sec_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x02000000U); + ClearHasBit(_impl_._has_bits_[2], 0x04000000U); } inline ::uint32_t XtcpConfig::pyroscope_upload_interval_sec() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.pyroscope_upload_interval_sec) @@ -14596,7 +14661,7 @@ inline ::uint32_t XtcpConfig::pyroscope_upload_interval_sec() const { } inline void XtcpConfig::set_pyroscope_upload_interval_sec(::uint32_t value) { _internal_set_pyroscope_upload_interval_sec(value); - SetHasBit(_impl_._has_bits_[2], 0x02000000U); + SetHasBit(_impl_._has_bits_[2], 0x04000000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.pyroscope_upload_interval_sec) } inline ::uint32_t XtcpConfig::_internal_pyroscope_upload_interval_sec() const { @@ -14612,7 +14677,7 @@ inline void XtcpConfig::_internal_set_pyroscope_upload_interval_sec(::uint32_t v inline void XtcpConfig::clear_resolve_container_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.resolve_container_id_ = false; - ClearHasBit(_impl_._has_bits_[2], 0x04000000U); + ClearHasBit(_impl_._has_bits_[2], 0x08000000U); } inline bool XtcpConfig::resolve_container_id() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.resolve_container_id) @@ -14620,7 +14685,7 @@ inline bool XtcpConfig::resolve_container_id() const { } inline void XtcpConfig::set_resolve_container_id(bool value) { _internal_set_resolve_container_id(value); - SetHasBit(_impl_._has_bits_[2], 0x04000000U); + SetHasBit(_impl_._has_bits_[2], 0x08000000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.resolve_container_id) } inline bool XtcpConfig::_internal_resolve_container_id() const { @@ -14636,7 +14701,7 @@ inline void XtcpConfig::_internal_set_resolve_container_id(bool value) { inline void XtcpConfig::clear_enrich_container_enable() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.enrich_container_enable_ = false; - ClearHasBit(_impl_._has_bits_[2], 0x08000000U); + ClearHasBit(_impl_._has_bits_[2], 0x10000000U); } inline bool XtcpConfig::enrich_container_enable() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.enrich_container_enable) @@ -14644,7 +14709,7 @@ inline bool XtcpConfig::enrich_container_enable() const { } inline void XtcpConfig::set_enrich_container_enable(bool value) { _internal_set_enrich_container_enable(value); - SetHasBit(_impl_._has_bits_[2], 0x08000000U); + SetHasBit(_impl_._has_bits_[2], 0x10000000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.enrich_container_enable) } inline bool XtcpConfig::_internal_enrich_container_enable() const { @@ -14724,7 +14789,7 @@ inline void XtcpConfig::set_allocated_docker_socket_path(::std::string* PROTOBUF inline void XtcpConfig::clear_enrich_lldp_enable() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.enrich_lldp_enable_ = false; - ClearHasBit(_impl_._has_bits_[2], 0x10000000U); + ClearHasBit(_impl_._has_bits_[2], 0x20000000U); } inline bool XtcpConfig::enrich_lldp_enable() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.enrich_lldp_enable) @@ -14732,7 +14797,7 @@ inline bool XtcpConfig::enrich_lldp_enable() const { } inline void XtcpConfig::set_enrich_lldp_enable(bool value) { _internal_set_enrich_lldp_enable(value); - SetHasBit(_impl_._has_bits_[2], 0x10000000U); + SetHasBit(_impl_._has_bits_[2], 0x20000000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.enrich_lldp_enable) } inline bool XtcpConfig::_internal_enrich_lldp_enable() const { @@ -14876,7 +14941,7 @@ inline void XtcpConfig::set_allocated_lldpd_version_hint(::std::string* PROTOBUF inline void XtcpConfig::clear_enrich_nic_enable() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.enrich_nic_enable_ = false; - ClearHasBit(_impl_._has_bits_[2], 0x20000000U); + ClearHasBit(_impl_._has_bits_[2], 0x40000000U); } inline bool XtcpConfig::enrich_nic_enable() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.enrich_nic_enable) @@ -14884,7 +14949,7 @@ inline bool XtcpConfig::enrich_nic_enable() const { } inline void XtcpConfig::set_enrich_nic_enable(bool value) { _internal_set_enrich_nic_enable(value); - SetHasBit(_impl_._has_bits_[2], 0x20000000U); + SetHasBit(_impl_._has_bits_[2], 0x40000000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.enrich_nic_enable) } inline bool XtcpConfig::_internal_enrich_nic_enable() const { @@ -14900,7 +14965,7 @@ inline void XtcpConfig::_internal_set_enrich_nic_enable(bool value) { inline void XtcpConfig::clear_uplink_count() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.uplink_count_ = 0u; - ClearHasBit(_impl_._has_bits_[2], 0x40000000U); + ClearHasBit(_impl_._has_bits_[2], 0x80000000U); } inline ::uint32_t XtcpConfig::uplink_count() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.uplink_count) @@ -14908,7 +14973,7 @@ inline ::uint32_t XtcpConfig::uplink_count() const { } inline void XtcpConfig::set_uplink_count(::uint32_t value) { _internal_set_uplink_count(value); - SetHasBit(_impl_._has_bits_[2], 0x40000000U); + SetHasBit(_impl_._has_bits_[2], 0x80000000U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.uplink_count) } inline ::uint32_t XtcpConfig::_internal_uplink_count() const { @@ -14996,7 +15061,7 @@ XtcpConfig::_internal_mutable_uplink_interfaces() { inline void XtcpConfig::clear_populate_nsid() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.populate_nsid_ = false; - ClearHasBit(_impl_._has_bits_[2], 0x80000000U); + ClearHasBit(_impl_._has_bits_[3], 0x00000001U); } inline bool XtcpConfig::populate_nsid() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.populate_nsid) @@ -15004,7 +15069,7 @@ inline bool XtcpConfig::populate_nsid() const { } inline void XtcpConfig::set_populate_nsid(bool value) { _internal_set_populate_nsid(value); - SetHasBit(_impl_._has_bits_[2], 0x80000000U); + SetHasBit(_impl_._has_bits_[3], 0x00000001U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.populate_nsid) } inline bool XtcpConfig::_internal_populate_nsid() const { @@ -15020,7 +15085,7 @@ inline void XtcpConfig::_internal_set_populate_nsid(bool value) { inline void XtcpConfig::clear_enrich_asn_enable() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.enrich_asn_enable_ = false; - ClearHasBit(_impl_._has_bits_[3], 0x00000001U); + ClearHasBit(_impl_._has_bits_[3], 0x00000002U); } inline bool XtcpConfig::enrich_asn_enable() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.enrich_asn_enable) @@ -15028,7 +15093,7 @@ inline bool XtcpConfig::enrich_asn_enable() const { } inline void XtcpConfig::set_enrich_asn_enable(bool value) { _internal_set_enrich_asn_enable(value); - SetHasBit(_impl_._has_bits_[3], 0x00000001U); + SetHasBit(_impl_._has_bits_[3], 0x00000002U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.enrich_asn_enable) } inline bool XtcpConfig::_internal_enrich_asn_enable() const { @@ -15106,7 +15171,7 @@ inline void XtcpConfig::set_allocated_asn_db_path(::std::string* PROTOBUF_NULLAB // .google.protobuf.Duration asn_refresh_interval = 242 [json_name = "asnRefreshInterval"]; inline bool XtcpConfig::has_asn_refresh_interval() const { - bool value = CheckHasBit(_impl_._has_bits_[1], 0x20000000U); + bool value = CheckHasBit(_impl_._has_bits_[1], 0x40000000U); PROTOBUF_ASSUME(!value || _impl_.asn_refresh_interval_ != nullptr); return value; } @@ -15127,16 +15192,16 @@ inline void XtcpConfig::unsafe_arena_set_allocated_asn_refresh_interval( } _impl_.asn_refresh_interval_ = reinterpret_cast<::google::protobuf::Duration*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[1], 0x20000000U); + SetHasBit(_impl_._has_bits_[1], 0x40000000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x20000000U); + ClearHasBit(_impl_._has_bits_[1], 0x40000000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xtcp_config.v1.XtcpConfig.asn_refresh_interval) } inline ::google::protobuf::Duration* PROTOBUF_NULLABLE XtcpConfig::release_asn_refresh_interval() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[1], 0x20000000U); + ClearHasBit(_impl_._has_bits_[1], 0x40000000U); ::google::protobuf::Duration* released = _impl_.asn_refresh_interval_; _impl_.asn_refresh_interval_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -15156,7 +15221,7 @@ inline ::google::protobuf::Duration* PROTOBUF_NULLABLE XtcpConfig::unsafe_arena_ ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:xtcp_config.v1.XtcpConfig.asn_refresh_interval) - ClearHasBit(_impl_._has_bits_[1], 0x20000000U); + ClearHasBit(_impl_._has_bits_[1], 0x40000000U); ::google::protobuf::Duration* temp = _impl_.asn_refresh_interval_; _impl_.asn_refresh_interval_ = nullptr; return temp; @@ -15171,7 +15236,7 @@ inline ::google::protobuf::Duration* PROTOBUF_NONNULL XtcpConfig::_internal_muta } inline ::google::protobuf::Duration* PROTOBUF_NONNULL XtcpConfig::mutable_asn_refresh_interval() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[1], 0x20000000U); + SetHasBit(_impl_._has_bits_[1], 0x40000000U); ::google::protobuf::Duration* _msg = _internal_mutable_asn_refresh_interval(); // @@protoc_insertion_point(field_mutable:xtcp_config.v1.XtcpConfig.asn_refresh_interval) return _msg; @@ -15188,9 +15253,9 @@ inline void XtcpConfig::set_allocated_asn_refresh_interval(::google::protobuf::D if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[1], 0x20000000U); + SetHasBit(_impl_._has_bits_[1], 0x40000000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x20000000U); + ClearHasBit(_impl_._has_bits_[1], 0x40000000U); } _impl_.asn_refresh_interval_ = reinterpret_cast<::google::protobuf::Duration*>(value); @@ -15329,7 +15394,7 @@ inline void XtcpConfig::set_allocated_ipmeta_cache_path(::std::string* PROTOBUF_ inline void XtcpConfig::clear_enrich_locality_enable() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.enrich_locality_enable_ = false; - ClearHasBit(_impl_._has_bits_[3], 0x00000002U); + ClearHasBit(_impl_._has_bits_[3], 0x00000004U); } inline bool XtcpConfig::enrich_locality_enable() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.enrich_locality_enable) @@ -15337,7 +15402,7 @@ inline bool XtcpConfig::enrich_locality_enable() const { } inline void XtcpConfig::set_enrich_locality_enable(bool value) { _internal_set_enrich_locality_enable(value); - SetHasBit(_impl_._has_bits_[3], 0x00000002U); + SetHasBit(_impl_._has_bits_[3], 0x00000004U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.enrich_locality_enable) } inline bool XtcpConfig::_internal_enrich_locality_enable() const { @@ -15351,7 +15416,7 @@ inline void XtcpConfig::_internal_set_enrich_locality_enable(bool value) { // .google.protobuf.Duration locality_refresh_interval = 246 [json_name = "localityRefreshInterval"]; inline bool XtcpConfig::has_locality_refresh_interval() const { - bool value = CheckHasBit(_impl_._has_bits_[1], 0x40000000U); + bool value = CheckHasBit(_impl_._has_bits_[1], 0x80000000U); PROTOBUF_ASSUME(!value || _impl_.locality_refresh_interval_ != nullptr); return value; } @@ -15372,16 +15437,16 @@ inline void XtcpConfig::unsafe_arena_set_allocated_locality_refresh_interval( } _impl_.locality_refresh_interval_ = reinterpret_cast<::google::protobuf::Duration*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[1], 0x40000000U); + SetHasBit(_impl_._has_bits_[1], 0x80000000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x40000000U); + ClearHasBit(_impl_._has_bits_[1], 0x80000000U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xtcp_config.v1.XtcpConfig.locality_refresh_interval) } inline ::google::protobuf::Duration* PROTOBUF_NULLABLE XtcpConfig::release_locality_refresh_interval() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[1], 0x40000000U); + ClearHasBit(_impl_._has_bits_[1], 0x80000000U); ::google::protobuf::Duration* released = _impl_.locality_refresh_interval_; _impl_.locality_refresh_interval_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -15401,7 +15466,7 @@ inline ::google::protobuf::Duration* PROTOBUF_NULLABLE XtcpConfig::unsafe_arena_ ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:xtcp_config.v1.XtcpConfig.locality_refresh_interval) - ClearHasBit(_impl_._has_bits_[1], 0x40000000U); + ClearHasBit(_impl_._has_bits_[1], 0x80000000U); ::google::protobuf::Duration* temp = _impl_.locality_refresh_interval_; _impl_.locality_refresh_interval_ = nullptr; return temp; @@ -15416,7 +15481,7 @@ inline ::google::protobuf::Duration* PROTOBUF_NONNULL XtcpConfig::_internal_muta } inline ::google::protobuf::Duration* PROTOBUF_NONNULL XtcpConfig::mutable_locality_refresh_interval() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[1], 0x40000000U); + SetHasBit(_impl_._has_bits_[1], 0x80000000U); ::google::protobuf::Duration* _msg = _internal_mutable_locality_refresh_interval(); // @@protoc_insertion_point(field_mutable:xtcp_config.v1.XtcpConfig.locality_refresh_interval) return _msg; @@ -15433,9 +15498,9 @@ inline void XtcpConfig::set_allocated_locality_refresh_interval(::google::protob if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[1], 0x40000000U); + SetHasBit(_impl_._has_bits_[1], 0x80000000U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x40000000U); + ClearHasBit(_impl_._has_bits_[1], 0x80000000U); } _impl_.locality_refresh_interval_ = reinterpret_cast<::google::protobuf::Duration*>(value); @@ -15446,7 +15511,7 @@ inline void XtcpConfig::set_allocated_locality_refresh_interval(::google::protob inline void XtcpConfig::clear_locality_events_enable() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.locality_events_enable_ = false; - ClearHasBit(_impl_._has_bits_[3], 0x00000004U); + ClearHasBit(_impl_._has_bits_[3], 0x00000008U); } inline bool XtcpConfig::locality_events_enable() const { // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.locality_events_enable) @@ -15454,7 +15519,7 @@ inline bool XtcpConfig::locality_events_enable() const { } inline void XtcpConfig::set_locality_events_enable(bool value) { _internal_set_locality_events_enable(value); - SetHasBit(_impl_._has_bits_[3], 0x00000004U); + SetHasBit(_impl_._has_bits_[3], 0x00000008U); // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.locality_events_enable) } inline bool XtcpConfig::_internal_locality_events_enable() const { @@ -15468,14 +15533,14 @@ inline void XtcpConfig::_internal_set_locality_events_enable(bool value) { // .xtcp_config.v1.LinkMonitorConfig link_monitor = 250 [json_name = "linkMonitor"]; inline bool XtcpConfig::has_link_monitor() const { - bool value = CheckHasBit(_impl_._has_bits_[1], 0x80000000U); + bool value = CheckHasBit(_impl_._has_bits_[2], 0x00000001U); PROTOBUF_ASSUME(!value || _impl_.link_monitor_ != nullptr); return value; } inline void XtcpConfig::clear_link_monitor() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.link_monitor_ != nullptr) _impl_.link_monitor_->Clear(); - ClearHasBit(_impl_._has_bits_[1], 0x80000000U); + ClearHasBit(_impl_._has_bits_[2], 0x00000001U); } inline const ::xtcp_config::v1::LinkMonitorConfig& XtcpConfig::_internal_link_monitor() const { ::google::protobuf::internal::TSanRead(&_impl_); @@ -15494,16 +15559,16 @@ inline void XtcpConfig::unsafe_arena_set_allocated_link_monitor( } _impl_.link_monitor_ = reinterpret_cast<::xtcp_config::v1::LinkMonitorConfig*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[1], 0x80000000U); + SetHasBit(_impl_._has_bits_[2], 0x00000001U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x80000000U); + ClearHasBit(_impl_._has_bits_[2], 0x00000001U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xtcp_config.v1.XtcpConfig.link_monitor) } inline ::xtcp_config::v1::LinkMonitorConfig* PROTOBUF_NULLABLE XtcpConfig::release_link_monitor() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[1], 0x80000000U); + ClearHasBit(_impl_._has_bits_[2], 0x00000001U); ::xtcp_config::v1::LinkMonitorConfig* released = _impl_.link_monitor_; _impl_.link_monitor_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -15523,7 +15588,7 @@ inline ::xtcp_config::v1::LinkMonitorConfig* PROTOBUF_NULLABLE XtcpConfig::unsaf ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:xtcp_config.v1.XtcpConfig.link_monitor) - ClearHasBit(_impl_._has_bits_[1], 0x80000000U); + ClearHasBit(_impl_._has_bits_[2], 0x00000001U); ::xtcp_config::v1::LinkMonitorConfig* temp = _impl_.link_monitor_; _impl_.link_monitor_ = nullptr; return temp; @@ -15538,7 +15603,7 @@ inline ::xtcp_config::v1::LinkMonitorConfig* PROTOBUF_NONNULL XtcpConfig::_inter } inline ::xtcp_config::v1::LinkMonitorConfig* PROTOBUF_NONNULL XtcpConfig::mutable_link_monitor() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[1], 0x80000000U); + SetHasBit(_impl_._has_bits_[2], 0x00000001U); ::xtcp_config::v1::LinkMonitorConfig* _msg = _internal_mutable_link_monitor(); // @@protoc_insertion_point(field_mutable:xtcp_config.v1.XtcpConfig.link_monitor) return _msg; @@ -15555,15 +15620,175 @@ inline void XtcpConfig::set_allocated_link_monitor(::xtcp_config::v1::LinkMonito if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[1], 0x80000000U); + SetHasBit(_impl_._has_bits_[2], 0x00000001U); } else { - ClearHasBit(_impl_._has_bits_[1], 0x80000000U); + ClearHasBit(_impl_._has_bits_[2], 0x00000001U); } _impl_.link_monitor_ = reinterpret_cast<::xtcp_config::v1::LinkMonitorConfig*>(value); // @@protoc_insertion_point(field_set_allocated:xtcp_config.v1.XtcpConfig.link_monitor) } +// bool events_enable = 260 [json_name = "eventsEnable"]; +inline void XtcpConfig::clear_events_enable() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.events_enable_ = false; + ClearHasBit(_impl_._has_bits_[3], 0x00000010U); +} +inline bool XtcpConfig::events_enable() const { + // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.events_enable) + return _internal_events_enable(); +} +inline void XtcpConfig::set_events_enable(bool value) { + _internal_set_events_enable(value); + SetHasBit(_impl_._has_bits_[3], 0x00000010U); + // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.events_enable) +} +inline bool XtcpConfig::_internal_events_enable() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.events_enable_; +} +inline void XtcpConfig::_internal_set_events_enable(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.events_enable_ = value; +} + +// string events_dest = 261 [json_name = "eventsDest", (.buf.validate.field) = { +inline void XtcpConfig::clear_events_dest() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.events_dest_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[1], 0x00080000U); +} +inline const ::std::string& XtcpConfig::events_dest() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.events_dest) + return _internal_events_dest(); +} +template +PROTOBUF_ALWAYS_INLINE void XtcpConfig::set_events_dest(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[1], 0x00080000U); + _impl_.events_dest_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.events_dest) +} +inline ::std::string* PROTOBUF_NONNULL XtcpConfig::mutable_events_dest() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[1], 0x00080000U); + ::std::string* _s = _internal_mutable_events_dest(); + // @@protoc_insertion_point(field_mutable:xtcp_config.v1.XtcpConfig.events_dest) + return _s; +} +inline const ::std::string& XtcpConfig::_internal_events_dest() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.events_dest_.Get(); +} +inline void XtcpConfig::_internal_set_events_dest(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.events_dest_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL XtcpConfig::_internal_mutable_events_dest() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.events_dest_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE XtcpConfig::release_events_dest() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:xtcp_config.v1.XtcpConfig.events_dest) + if (!CheckHasBit(_impl_._has_bits_[1], 0x00080000U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[1], 0x00080000U); + auto* released = _impl_.events_dest_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.events_dest_.Set("", GetArena()); + } + return released; +} +inline void XtcpConfig::set_allocated_events_dest(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[1], 0x00080000U); + } else { + ClearHasBit(_impl_._has_bits_[1], 0x00080000U); + } + _impl_.events_dest_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.events_dest_.IsDefault()) { + _impl_.events_dest_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:xtcp_config.v1.XtcpConfig.events_dest) +} + +// uint32 events_flush_interval_ms = 262 [json_name = "eventsFlushIntervalMs", (.buf.validate.field) = { +inline void XtcpConfig::clear_events_flush_interval_ms() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.events_flush_interval_ms_ = 0u; + ClearHasBit(_impl_._has_bits_[3], 0x00000020U); +} +inline ::uint32_t XtcpConfig::events_flush_interval_ms() const { + // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.events_flush_interval_ms) + return _internal_events_flush_interval_ms(); +} +inline void XtcpConfig::set_events_flush_interval_ms(::uint32_t value) { + _internal_set_events_flush_interval_ms(value); + SetHasBit(_impl_._has_bits_[3], 0x00000020U); + // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.events_flush_interval_ms) +} +inline ::uint32_t XtcpConfig::_internal_events_flush_interval_ms() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.events_flush_interval_ms_; +} +inline void XtcpConfig::_internal_set_events_flush_interval_ms(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.events_flush_interval_ms_ = value; +} + +// uint32 events_flush_threshold_rows = 263 [json_name = "eventsFlushThresholdRows", (.buf.validate.field) = { +inline void XtcpConfig::clear_events_flush_threshold_rows() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.events_flush_threshold_rows_ = 0u; + ClearHasBit(_impl_._has_bits_[3], 0x00000040U); +} +inline ::uint32_t XtcpConfig::events_flush_threshold_rows() const { + // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.events_flush_threshold_rows) + return _internal_events_flush_threshold_rows(); +} +inline void XtcpConfig::set_events_flush_threshold_rows(::uint32_t value) { + _internal_set_events_flush_threshold_rows(value); + SetHasBit(_impl_._has_bits_[3], 0x00000040U); + // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.events_flush_threshold_rows) +} +inline ::uint32_t XtcpConfig::_internal_events_flush_threshold_rows() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.events_flush_threshold_rows_; +} +inline void XtcpConfig::_internal_set_events_flush_threshold_rows(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.events_flush_threshold_rows_ = value; +} + +// uint32 events_flush_threshold_bytes = 264 [json_name = "eventsFlushThresholdBytes", (.buf.validate.field) = { +inline void XtcpConfig::clear_events_flush_threshold_bytes() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.events_flush_threshold_bytes_ = 0u; + ClearHasBit(_impl_._has_bits_[3], 0x00000080U); +} +inline ::uint32_t XtcpConfig::events_flush_threshold_bytes() const { + // @@protoc_insertion_point(field_get:xtcp_config.v1.XtcpConfig.events_flush_threshold_bytes) + return _internal_events_flush_threshold_bytes(); +} +inline void XtcpConfig::set_events_flush_threshold_bytes(::uint32_t value) { + _internal_set_events_flush_threshold_bytes(value); + SetHasBit(_impl_._has_bits_[3], 0x00000080U); + // @@protoc_insertion_point(field_set:xtcp_config.v1.XtcpConfig.events_flush_threshold_bytes) +} +inline ::uint32_t XtcpConfig::_internal_events_flush_threshold_bytes() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.events_flush_threshold_bytes_; +} +inline void XtcpConfig::_internal_set_events_flush_threshold_bytes(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.events_flush_threshold_bytes_ = value; +} + // ------------------------------------------------------------------- // ------------------------------------------------------------------- diff --git a/gen/dart/xtcp_config/v1/xtcp_config.pb.dart b/gen/dart/xtcp_config/v1/xtcp_config.pb.dart index cd5c3dedf..f94e88865 100644 --- a/gen/dart/xtcp_config/v1/xtcp_config.pb.dart +++ b/gen/dart/xtcp_config/v1/xtcp_config.pb.dart @@ -1909,6 +1909,11 @@ class XtcpConfig extends $pb.GeneratedMessage { $1.Duration? localityRefreshInterval, $core.bool? localityEventsEnable, LinkMonitorConfig? linkMonitor, + $core.bool? eventsEnable, + $core.String? eventsDest, + $core.int? eventsFlushIntervalMs, + $core.int? eventsFlushThresholdRows, + $core.int? eventsFlushThresholdBytes, }) { final result = XtcpConfig._(); if (nlTimeoutMilliseconds != null) @@ -2040,6 +2045,14 @@ class XtcpConfig extends $pb.GeneratedMessage { if (localityEventsEnable != null) result.localityEventsEnable = localityEventsEnable; if (linkMonitor != null) result.linkMonitor = linkMonitor; + if (eventsEnable != null) result.eventsEnable = eventsEnable; + if (eventsDest != null) result.eventsDest = eventsDest; + if (eventsFlushIntervalMs != null) + result.eventsFlushIntervalMs = eventsFlushIntervalMs; + if (eventsFlushThresholdRows != null) + result.eventsFlushThresholdRows = eventsFlushThresholdRows; + if (eventsFlushThresholdBytes != null) + result.eventsFlushThresholdBytes = eventsFlushThresholdBytes; return result; } @@ -2218,6 +2231,14 @@ class XtcpConfig extends $pb.GeneratedMessage { ..aOB(247, _omitFieldNames ? '' : 'localityEventsEnable') ..aOM(250, _omitFieldNames ? '' : 'linkMonitor', subBuilder: LinkMonitorConfig.$_createMessage) + ..aOB(260, _omitFieldNames ? '' : 'eventsEnable') + ..aOS(261, _omitFieldNames ? '' : 'eventsDest') + ..aI(262, _omitFieldNames ? '' : 'eventsFlushIntervalMs', + fieldType: $pb.PbFieldType.OU3) + ..aI(263, _omitFieldNames ? '' : 'eventsFlushThresholdRows', + fieldType: $pb.PbFieldType.OU3) + ..aI(264, _omitFieldNames ? '' : 'eventsFlushThresholdBytes', + fieldType: $pb.PbFieldType.OU3) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') @@ -3516,6 +3537,73 @@ class XtcpConfig extends $pb.GeneratedMessage { void clearLinkMonitor() => $_clearField(250); @$pb.TagNumber(250) LinkMonitorConfig ensureLinkMonitor() => $_ensure(98); + + /// Export rtnetlink notifications (link, address, route, neigh, rule) as + /// xtcp_netlink_events NetlinkEvent rows, one listener per monitored + /// namespace (docs/netlink/events-export.md). Default false; the record + /// path is untouched either way. + @$pb.TagNumber(260) + $core.bool get eventsEnable => $_getBF(99); + @$pb.TagNumber(260) + set eventsEnable($core.bool value) => $_setBool(99, value); + @$pb.TagNumber(260) + $core.bool hasEventsEnable() => $_has(99); + @$pb.TagNumber(260) + void clearEventsEnable() => $_clearField(260); + + /// The events destination, a destinations URL. v1 supports file: only: + /// the registry's factories are single-dest (every one reads the record's + /// dest at build), so the exporter owns its file sink; the factory + /// generalization is the ClickHouse tier's measured need. + @$pb.TagNumber(261) + $core.String get eventsDest => $_getSZ(100); + @$pb.TagNumber(261) + set eventsDest($core.String value) => $_setString(100, value); + @$pb.TagNumber(261) + $core.bool hasEventsDest() => $_has(100); + @$pb.TagNumber(261) + void clearEventsDest() => $_clearField(261); + + /// Time between interval flushes of the events envelope. 0 = the + /// compile-time default (EventsFlushIntervalCst in + /// pkg/xtcp/events_export_policy.go; 1s, EXM's measurement — the locality + /// consumer's own chosen latency). + @$pb.TagNumber(262) + $core.int get eventsFlushIntervalMs => $_getIZ(101); + @$pb.TagNumber(262) + set eventsFlushIntervalMs($core.int value) => $_setUnsignedInt32(101, value); + @$pb.TagNumber(262) + $core.bool hasEventsFlushIntervalMs() => $_has(101); + @$pb.TagNumber(262) + void clearEventsFlushIntervalMs() => $_clearField(262); + + /// Row-count cap: the envelope flushes when it holds this many rows. + /// 0 = the compile-time default (EventsFlushThresholdRowsCst, 64 — the + /// boot flood peak is 56 events per 100ms, so the cap fires first under + /// load and the interval carries the lone event). + @$pb.TagNumber(263) + $core.int get eventsFlushThresholdRows => $_getIZ(102); + @$pb.TagNumber(263) + set eventsFlushThresholdRows($core.int value) => + $_setUnsignedInt32(102, value); + @$pb.TagNumber(263) + $core.bool hasEventsFlushThresholdRows() => $_has(102); + @$pb.TagNumber(263) + void clearEventsFlushThresholdRows() => $_clearField(263); + + /// Size cap on the in-flight envelope's marshalled size, in bytes + /// (proto.SizeVT of the rows). 0 = the compile-time default + /// (EventsFlushThresholdBytesCst, 64 KiB — measured bodies run + /// 40-1548 bytes). + @$pb.TagNumber(264) + $core.int get eventsFlushThresholdBytes => $_getIZ(103); + @$pb.TagNumber(264) + set eventsFlushThresholdBytes($core.int value) => + $_setUnsignedInt32(103, value); + @$pb.TagNumber(264) + $core.bool hasEventsFlushThresholdBytes() => $_has(103); + @$pb.TagNumber(264) + void clearEventsFlushThresholdBytes() => $_clearField(264); } class EnabledDeserializers extends $pb.GeneratedMessage { diff --git a/gen/dart/xtcp_config/v1/xtcp_config.pbjson.dart b/gen/dart/xtcp_config/v1/xtcp_config.pbjson.dart index 127f66afe..f8cbb6de0 100644 --- a/gen/dart/xtcp_config/v1/xtcp_config.pbjson.dart +++ b/gen/dart/xtcp_config/v1/xtcp_config.pbjson.dart @@ -1459,6 +1459,32 @@ const XtcpConfig$json = { '6': '.xtcp_config.v1.LinkMonitorConfig', '10': 'linkMonitor' }, + {'1': 'events_enable', '3': 260, '4': 1, '5': 8, '10': 'eventsEnable'}, + {'1': 'events_dest', '3': 261, '4': 1, '5': 9, '8': {}, '10': 'eventsDest'}, + { + '1': 'events_flush_interval_ms', + '3': 262, + '4': 1, + '5': 13, + '8': {}, + '10': 'eventsFlushIntervalMs' + }, + { + '1': 'events_flush_threshold_rows', + '3': 263, + '4': 1, + '5': 13, + '8': {}, + '10': 'eventsFlushThresholdRows' + }, + { + '1': 'events_flush_threshold_bytes', + '3': 264, + '4': 1, + '5': 13, + '8': {}, + '10': 'eventsFlushThresholdBytes' + }, ], '7': {}, }; @@ -1571,9 +1597,14 @@ final $typed_data.Uint8List xtcpConfigDescriptor = $convert.base64Decode( 'kuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uUhdsb2NhbGl0eVJlZnJlc2hJbnRlcnZhbBI1ChZs' 'b2NhbGl0eV9ldmVudHNfZW5hYmxlGPcBIAEoCFIUbG9jYWxpdHlFdmVudHNFbmFibGUSRQoMbG' 'lua19tb25pdG9yGPoBIAEoCzIhLnh0Y3BfY29uZmlnLnYxLkxpbmtNb25pdG9yQ29uZmlnUgts' - 'aW5rTW9uaXRvcjpzukhwGm4KD1h0Y3BDb25maWcucG9sbBIyUG9sbCB0aW1lb3V0IG11c3QgYm' - 'UgbGVzcyB0aGFuIHBvbGwgcG9sbF9mcmVxdWVuY3kaJ3RoaXMucG9sbF9mcmVxdWVuY3kgPiB0' - 'aGlzLnBvbGxfdGltZW91dA=='); + 'aW5rTW9uaXRvchIkCg1ldmVudHNfZW5hYmxlGIQCIAEoCFIMZXZlbnRzRW5hYmxlEi0KC2V2ZW' + '50c19kZXN0GIUCIAEoCUILukgIyAEAcgMYgARSCmV2ZW50c0Rlc3QSQAoYZXZlbnRzX2ZsdXNo' + 'X2ludGVydmFsX21zGIYCIAEoDUIGukgDyAEAUhVldmVudHNGbHVzaEludGVydmFsTXMSRgobZX' + 'ZlbnRzX2ZsdXNoX3RocmVzaG9sZF9yb3dzGIcCIAEoDUIGukgDyAEAUhhldmVudHNGbHVzaFRo' + 'cmVzaG9sZFJvd3MSSAocZXZlbnRzX2ZsdXNoX3RocmVzaG9sZF9ieXRlcxiIAiABKA1CBrpIA8' + 'gBAFIZZXZlbnRzRmx1c2hUaHJlc2hvbGRCeXRlczpzukhwGm4KD1h0Y3BDb25maWcucG9sbBIy' + 'UG9sbCB0aW1lb3V0IG11c3QgYmUgbGVzcyB0aGFuIHBvbGwgcG9sbF9mcmVxdWVuY3kaJ3RoaX' + 'MucG9sbF9mcmVxdWVuY3kgPiB0aGlzLnBvbGxfdGltZW91dA=='); @$core.Deprecated('Use enabledDeserializersDescriptor instead') const EnabledDeserializers$json = { diff --git a/gen/go/xtcp_config/xtcp_config.pb.go b/gen/go/xtcp_config/xtcp_config.pb.go index 5f8d3e233..bf55c17f5 100644 --- a/gen/go/xtcp_config/xtcp_config.pb.go +++ b/gen/go/xtcp_config/xtcp_config.pb.go @@ -1950,9 +1950,34 @@ type XtcpConfig struct { // after that long. Needs enrich_locality_enable. Default false. LocalityEventsEnable bool `protobuf:"varint,247,opt,name=locality_events_enable,json=localityEventsEnable,proto3" json:"locality_events_enable,omitempty"` // Physical link monitor; see LinkMonitorConfig. - LinkMonitor *LinkMonitorConfig `protobuf:"bytes,250,opt,name=link_monitor,json=linkMonitor,proto3" json:"link_monitor,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + LinkMonitor *LinkMonitorConfig `protobuf:"bytes,250,opt,name=link_monitor,json=linkMonitor,proto3" json:"link_monitor,omitempty"` + // Export rtnetlink notifications (link, address, route, neigh, rule) as + // xtcp_netlink_events NetlinkEvent rows, one listener per monitored + // namespace (docs/netlink/events-export.md). Default false; the record + // path is untouched either way. + EventsEnable bool `protobuf:"varint,260,opt,name=events_enable,json=eventsEnable,proto3" json:"events_enable,omitempty"` + // The events destination, a destinations URL. v1 supports file: only: + // the registry's factories are single-dest (every one reads the record's + // dest at build), so the exporter owns its file sink; the factory + // generalization is the ClickHouse tier's measured need. + EventsDest string `protobuf:"bytes,261,opt,name=events_dest,json=eventsDest,proto3" json:"events_dest,omitempty"` + // Time between interval flushes of the events envelope. 0 = the + // compile-time default (EventsFlushIntervalCst in + // pkg/xtcp/events_export_policy.go; 1s, EXM's measurement — the locality + // consumer's own chosen latency). + EventsFlushIntervalMs uint32 `protobuf:"varint,262,opt,name=events_flush_interval_ms,json=eventsFlushIntervalMs,proto3" json:"events_flush_interval_ms,omitempty"` + // Row-count cap: the envelope flushes when it holds this many rows. + // 0 = the compile-time default (EventsFlushThresholdRowsCst, 64 — the + // boot flood peak is 56 events per 100ms, so the cap fires first under + // load and the interval carries the lone event). + EventsFlushThresholdRows uint32 `protobuf:"varint,263,opt,name=events_flush_threshold_rows,json=eventsFlushThresholdRows,proto3" json:"events_flush_threshold_rows,omitempty"` + // Size cap on the in-flight envelope's marshalled size, in bytes + // (proto.SizeVT of the rows). 0 = the compile-time default + // (EventsFlushThresholdBytesCst, 64 KiB — measured bodies run + // 40-1548 bytes). + EventsFlushThresholdBytes uint32 `protobuf:"varint,264,opt,name=events_flush_threshold_bytes,json=eventsFlushThresholdBytes,proto3" json:"events_flush_threshold_bytes,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *XtcpConfig) Reset() { @@ -2678,6 +2703,41 @@ func (x *XtcpConfig) GetLinkMonitor() *LinkMonitorConfig { return nil } +func (x *XtcpConfig) GetEventsEnable() bool { + if x != nil { + return x.EventsEnable + } + return false +} + +func (x *XtcpConfig) GetEventsDest() string { + if x != nil { + return x.EventsDest + } + return "" +} + +func (x *XtcpConfig) GetEventsFlushIntervalMs() uint32 { + if x != nil { + return x.EventsFlushIntervalMs + } + return 0 +} + +func (x *XtcpConfig) GetEventsFlushThresholdRows() uint32 { + if x != nil { + return x.EventsFlushThresholdRows + } + return 0 +} + +func (x *XtcpConfig) GetEventsFlushThresholdBytes() uint32 { + if x != nil { + return x.EventsFlushThresholdBytes + } + return 0 +} + type EnabledDeserializers struct { state protoimpl.MessageState `protogen:"open.v1"` Enabled map[string]bool `protobuf:"bytes,1,rep,name=enabled,proto3" json:"enabled,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` @@ -2831,7 +2891,7 @@ const file_xtcp_config_v1_xtcp_config_proto_rawDesc = "" + "\x0e_error_classesB\x15\n" + "\x13_metrics_categoriesB\x1a\n" + "\x18_metrics_interface_pathsB\x13\n" + - "\x11_metrics_all_path\"\xfa.\n" + + "\x11_metrics_all_path\"\xa31\n" + "\n" + "XtcpConfig\x12F\n" + "\x17nl_timeout_milliseconds\x18\n" + @@ -2956,7 +3016,13 @@ const file_xtcp_config_v1_xtcp_config_proto_rawDesc = "" + "\x16enrich_locality_enable\x18\xf5\x01 \x01(\bR\x14enrichLocalityEnable\x12V\n" + "\x19locality_refresh_interval\x18\xf6\x01 \x01(\v2\x19.google.protobuf.DurationR\x17localityRefreshInterval\x125\n" + "\x16locality_events_enable\x18\xf7\x01 \x01(\bR\x14localityEventsEnable\x12E\n" + - "\flink_monitor\x18\xfa\x01 \x01(\v2!.xtcp_config.v1.LinkMonitorConfigR\vlinkMonitor:s\xbaHp\x1an\n" + + "\flink_monitor\x18\xfa\x01 \x01(\v2!.xtcp_config.v1.LinkMonitorConfigR\vlinkMonitor\x12$\n" + + "\revents_enable\x18\x84\x02 \x01(\bR\feventsEnable\x12-\n" + + "\vevents_dest\x18\x85\x02 \x01(\tB\v\xbaH\b\xc8\x01\x00r\x03\x18\x80\x04R\n" + + "eventsDest\x12@\n" + + "\x18events_flush_interval_ms\x18\x86\x02 \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x15eventsFlushIntervalMs\x12F\n" + + "\x1bevents_flush_threshold_rows\x18\x87\x02 \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x18eventsFlushThresholdRows\x12H\n" + + "\x1cevents_flush_threshold_bytes\x18\x88\x02 \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x19eventsFlushThresholdBytes:s\xbaHp\x1an\n" + "\x0fXtcpConfig.poll\x122Poll timeout must be less than poll poll_frequency\x1a'this.poll_frequency > this.poll_timeout\"\x9f\x01\n" + "\x14EnabledDeserializers\x12K\n" + "\aenabled\x18\x01 \x03(\v21.xtcp_config.v1.EnabledDeserializers.EnabledEntryR\aenabled\x1a:\n" + diff --git a/gen/go/xtcp_config/xtcp_config_vtproto.pb.go b/gen/go/xtcp_config/xtcp_config_vtproto.pb.go index 88e19517e..13080c284 100644 --- a/gen/go/xtcp_config/xtcp_config_vtproto.pb.go +++ b/gen/go/xtcp_config/xtcp_config_vtproto.pb.go @@ -1213,6 +1213,48 @@ func (m *XtcpConfig) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if m.EventsFlushThresholdBytes != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.EventsFlushThresholdBytes)) + i-- + dAtA[i] = 0x10 + i-- + dAtA[i] = 0xc0 + } + if m.EventsFlushThresholdRows != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.EventsFlushThresholdRows)) + i-- + dAtA[i] = 0x10 + i-- + dAtA[i] = 0xb8 + } + if m.EventsFlushIntervalMs != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.EventsFlushIntervalMs)) + i-- + dAtA[i] = 0x10 + i-- + dAtA[i] = 0xb0 + } + if len(m.EventsDest) > 0 { + i -= len(m.EventsDest) + copy(dAtA[i:], m.EventsDest) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.EventsDest))) + i-- + dAtA[i] = 0x10 + i-- + dAtA[i] = 0xaa + } + if m.EventsEnable { + i-- + if m.EventsEnable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + i-- + dAtA[i] = 0xa0 + } if m.LinkMonitor != nil { size, err := m.LinkMonitor.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { @@ -2943,6 +2985,22 @@ func (m *XtcpConfig) SizeVT() (n int) { l = m.LinkMonitor.SizeVT() n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } + if m.EventsEnable { + n += 3 + } + l = len(m.EventsDest) + if l > 0 { + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.EventsFlushIntervalMs != 0 { + n += 2 + protohelpers.SizeOfVarint(uint64(m.EventsFlushIntervalMs)) + } + if m.EventsFlushThresholdRows != 0 { + n += 2 + protohelpers.SizeOfVarint(uint64(m.EventsFlushThresholdRows)) + } + if m.EventsFlushThresholdBytes != 0 { + n += 2 + protohelpers.SizeOfVarint(uint64(m.EventsFlushThresholdBytes)) + } n += len(m.unknownFields) return n } @@ -8448,6 +8506,115 @@ func (m *XtcpConfig) UnmarshalVT(dAtA []byte) error { return err } iNdEx = postIndex + case 260: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EventsEnable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EventsEnable = bool(v != 0) + case 261: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EventsDest", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EventsDest = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 262: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EventsFlushIntervalMs", wireType) + } + m.EventsFlushIntervalMs = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EventsFlushIntervalMs |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 263: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EventsFlushThresholdRows", wireType) + } + m.EventsFlushThresholdRows = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EventsFlushThresholdRows |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 264: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EventsFlushThresholdBytes", wireType) + } + m.EventsFlushThresholdBytes = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EventsFlushThresholdBytes |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) diff --git a/gen/openapi/xtcp_config/v1/xtcp_config.swagger.json b/gen/openapi/xtcp_config/v1/xtcp_config.swagger.json index 38d8e4934..080602c49 100644 --- a/gen/openapi/xtcp_config/v1/xtcp_config.swagger.json +++ b/gen/openapi/xtcp_config/v1/xtcp_config.swagger.json @@ -1100,6 +1100,29 @@ "linkMonitor": { "$ref": "#/definitions/v1LinkMonitorConfig", "description": "Physical link monitor; see LinkMonitorConfig." + }, + "eventsEnable": { + "type": "boolean", + "description": "Export rtnetlink notifications (link, address, route, neigh, rule) as\nxtcp_netlink_events NetlinkEvent rows, one listener per monitored\nnamespace (docs/netlink/events-export.md). Default false; the record\npath is untouched either way." + }, + "eventsDest": { + "type": "string", + "description": "The events destination, a destinations URL. v1 supports file: only:\nthe registry's factories are single-dest (every one reads the record's\ndest at build), so the exporter owns its file sink; the factory\ngeneralization is the ClickHouse tier's measured need." + }, + "eventsFlushIntervalMs": { + "type": "integer", + "format": "int64", + "description": "Time between interval flushes of the events envelope. 0 = the\ncompile-time default (EventsFlushIntervalCst in\npkg/xtcp/events_export_policy.go; 1s, EXM's measurement — the locality\nconsumer's own chosen latency)." + }, + "eventsFlushThresholdRows": { + "type": "integer", + "format": "int64", + "description": "Row-count cap: the envelope flushes when it holds this many rows.\n0 = the compile-time default (EventsFlushThresholdRowsCst, 64 — the\nboot flood peak is 56 events per 100ms, so the cap fires first under\nload and the interval carries the lone event)." + }, + "eventsFlushThresholdBytes": { + "type": "integer", + "format": "int64", + "description": "Size cap on the in-flight envelope's marshalled size, in bytes\n(proto.SizeVT of the rows). 0 = the compile-time default\n(EventsFlushThresholdBytesCst, 64 KiB — measured bodies run\n40-1548 bytes)." } }, "description": "Field-number layout (renumbered into subject blocks 2026-09; the binary form\nis never persisted — it only crosses the gRPC hop between xtcp2 and\nxtcp2ctl/xtcp2client, which are built from this repo's gen/go together, and\nprotojson/prototext map by NAME — so renumbering is safe). Add new knobs in\nthe free space of the matching block; open a new block above 269 for a new\nsubject.\n 10-39 polling \u0026 netlink (dump cadence, netlinker plumbing, io_uring)\n 40-49 namespace reconcile\n 50-59 capture / debug\n 60-79 output, destination-agnostic (dest, marshal, csv, envelope)\n 80-99 kafka destination\n 100-129 s3parquet destination\n 130-149 identity \u0026 labels stamped on every record\n 150-159 network knobs for xtcp2's own listeners\n 160-169 gRPC\n 170-179 profiling\n 200-249 best-effort enrichment (container 200s, lldp 210s, nic 220s,\n nsid 230s, asn 240-244, locality 245-249)\n 250-269 embedded subsystems (link monitor 250)", diff --git a/gen/python/xtcp_config/v1/xtcp_config_pb2.py b/gen/python/xtcp_config/v1/xtcp_config_pb2.py index 09f2c9a38..9d3ba2158 100644 --- a/gen/python/xtcp_config/v1/xtcp_config_pb2.py +++ b/gen/python/xtcp_config/v1/xtcp_config_pb2.py @@ -28,7 +28,7 @@ from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n xtcp_config/v1/xtcp_config.proto\x12\x0extcp_config.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1cxtcp_auth/v1/xtcp_auth.proto\x1a\x1b\x62uf/validate/validate.proto\"\x0c\n\nGetRequest\"A\n\x0bGetResponse\x12\x32\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x1a.xtcp_config.v1.XtcpConfigR\x06\x63onfig\"@\n\nSetRequest\x12\x32\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x1a.xtcp_config.v1.XtcpConfigR\x06\x63onfig\"A\n\x0bSetResponse\x12\x32\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x1a.xtcp_config.v1.XtcpConfigR\x06\x63onfig\"\xb6\x02\n\x17SetPollFrequencyRequest\x12U\n\x0epoll_frequency\x18\x14 \x01(\x0b\x32\x19.google.protobuf.DurationB\x13\xbaH\x10\xaa\x01\n\"\x04\x08\x80\xf5$2\x02\x08\x01\xc8\x01\x01R\rpollFrequency\x12O\n\x0cpoll_timeout\x18\x1e \x01(\x0b\x32\x19.google.protobuf.DurationB\x11\xbaH\x0e\xaa\x01\x08\"\x04\x08\x80\xf5$2\x00\xc8\x01\x01R\x0bpollTimeout:s\xbaHp\x1an\n\x0fXtcpConfig.poll\x12\x32Poll timeout must be less than poll poll_frequency\x1a\'this.poll_timeout < this.poll_frequency\"N\n\x18SetPollFrequencyResponse\x12\x32\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x1a.xtcp_config.v1.XtcpConfigR\x06\x63onfig\"\x14\n\x12TriggerPollRequest\"\x15\n\x13TriggerPollResponse\"\x89\x01\n\x17TriggerPollBurstRequest\x12#\n\x05\x63ount\x18\n \x01(\rB\r\xbaH\n*\x05\x18\xe8\x07(\x01\xc8\x01\x01R\x05\x63ount\x12I\n\x08interval\x18\x14 \x01(\x0b\x32\x19.google.protobuf.DurationB\x12\xbaH\x0f\xaa\x01\t\"\x03\x08\x90\x1c\x32\x02\x08\x01\xc8\x01\x01R\x08interval\"g\n\x18TriggerPollBurstResponse\x12\x14\n\x05\x63ount\x18\n \x01(\rR\x05\x63ount\x12\x35\n\x08interval\x18\x14 \x01(\x0b\x32\x19.google.protobuf.DurationR\x08interval\"\xe3\x02\n\x12SetS3UploadRequest\x12R\n\x11s3_flush_interval\x18\n \x01(\x0b\x32\x19.google.protobuf.DurationB\x0b\xbaH\x08\xaa\x01\x02\x32\x00\xc8\x01\x00R\x0fs3FlushInterval\x12N\n s3_parquet_flush_threshold_bytes\x18\x14 \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x1cs3ParquetFlushThresholdBytes:\xa8\x01\xbaH\xa4\x01\x1a\xa1\x01\n\x16SetS3Upload.atLeastOne\x12=set s3_flush_interval and/or s3_parquet_flush_threshold_bytes\x1aHhas(this.s3_flush_interval) || this.s3_parquet_flush_threshold_bytes > 0\"I\n\x13SetS3UploadResponse\x12\x32\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x1a.xtcp_config.v1.XtcpConfigR\x06\x63onfig\"\xf4\x02\n\x17SetEnvelopeFlushRequest\x12K\n\x1e\x65nvelope_flush_threshold_bytes\x18\n \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x1b\x65nvelopeFlushThresholdBytes\x12I\n\x1d\x65nvelope_flush_threshold_rows\x18\x14 \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x1a\x65nvelopeFlushThresholdRows:\xc0\x01\xbaH\xbc\x01\x1a\xb9\x01\n\x1bSetEnvelopeFlush.atLeastOne\x12Gset envelope_flush_threshold_bytes and/or envelope_flush_threshold_rows\x1aQthis.envelope_flush_threshold_bytes > 0 || this.envelope_flush_threshold_rows > 0\"N\n\x18SetEnvelopeFlushResponse\x12\x32\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x1a.xtcp_config.v1.XtcpConfigR\x06\x63onfig\"\x8a\x03\n\x10ListenerEndpoint\x12\x43\n\x07network\x18\x01 \x01(\x0e\x32\x1f.xtcp_config.v1.ListenerNetworkB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x07network\x12\"\n\x07\x61\x64\x64ress\x18\x02 \x01(\tB\x08\xbaH\x05r\x03\x18\x80\x04R\x07\x61\x64\x64ress\x12\x32\n\x10unix_socket_mode\x18\x03 \x01(\rB\x08\xbaH\x05*\x03\x18\xff\x03R\x0eunixSocketMode\x12\x37\n\x18unlink_stale_unix_socket\x18\x04 \x01(\x08R\x15unlinkStaleUnixSocket\x12\x32\n\x0fmax_connections\x18\x05 \x01(\rB\t\xbaH\x06*\x04\x18\xa0\x8d\x06R\x0emaxConnections\x12>\n\x16\x61\x63\x63\x65pt_rate_per_second\x18\x06 \x01(\rB\t\xbaH\x06*\x04\x18\xa0\x8d\x06R\x13\x61\x63\x63\x65ptRatePerSecond\x12,\n\x0c\x61\x63\x63\x65pt_burst\x18\x07 \x01(\rB\t\xbaH\x06*\x04\x18\xa0\x8d\x06R\x0b\x61\x63\x63\x65ptBurst\"\x83\x06\n\x0cListenerAuth\x12>\n\x04mode\x18\x01 \x01(\x0e\x32 .xtcp_config.v1.ListenerAuthModeB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x04mode\x12%\n\traw_token\x18\x02 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x08rawToken\x12\x30\n\x0fhmac_shared_key\x18\x03 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\rhmacSharedKey\x12G\n\x19signed_token_skew_minutes\x18\x04 \x01(\rB\x07\xbaH\x04*\x02\x18\x05H\x00R\x16signedTokenSkewMinutes\x88\x01\x01\x12Q\n\x12\x66\x61ilure_jitter_min\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationB\x08\xbaH\x05\xaa\x01\x02\x32\x00R\x10\x66\x61ilureJitterMin\x12Q\n\x12\x66\x61ilure_jitter_max\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationB\x08\xbaH\x05\xaa\x01\x02\x32\x00R\x10\x66\x61ilureJitterMax\x12.\n\x0eraw_token_file\x18\x07 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x0crawTokenFile\x12\x39\n\x14hmac_shared_key_file\x18\x08 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x11hmacSharedKeyFile:\xe1\x01\xbaH\xdd\x01\x1a\xda\x01\n\x1aListenerAuth.failureJitter\x12\x46\x66\x61ilure_jitter_max must be greater than or equal to failure_jitter_min\x1at!has(this.failure_jitter_min) || !has(this.failure_jitter_max) || this.failure_jitter_max >= this.failure_jitter_minB\x1c\n\x1a_signed_token_skew_minutes\"\xbf\x02\n\x08Listener\x12\x30\n\x04name\x18\x01 \x01(\tB\x1c\xbaH\x19r\x17\x10\x01\x18 2\x11^[a-z][a-z0-9-]*$R\x04name\x12\x44\n\x08\x65ndpoint\x18\x02 \x01(\x0b\x32 .xtcp_config.v1.ListenerEndpointB\x06\xbaH\x03\xc8\x01\x01R\x08\x65ndpoint\x12\x30\n\x04\x61uth\x18\x03 \x01(\x0b\x32\x1c.xtcp_config.v1.ListenerAuthR\x04\x61uth\x12;\n\nadmin_auth\x18\x04 \x01(\x0b\x32\x1c.xtcp_config.v1.ListenerAuthR\tadminAuth\x12L\n\x06serves\x18\x05 \x03(\x0e\x32\x1d.xtcp_config.v1.EndpointClassB\x15\xbaH\x12\x92\x01\x0f\x08\x01\x10\x07\x18\x01\"\x07\x82\x01\x04\x10\x01 \x00R\x06serves\"\x9a\x0e\n\x11LinkMonitorConfig\x12\x16\n\x06\x65nable\x18\x01 \x01(\x08R\x06\x65nable\x12-\n\rbaseline_file\x18\x02 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x0c\x62\x61selineFile\x12\x41\n\x06settle\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xa3\x05\x32\x00R\x06settle\x12\x41\n\x06resync\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xf5$*\x00R\x06resync\x12P\n\x0estats_interval\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xa3\x05*\x00R\rstatsInterval\x12-\n\rstats_include\x18\x06 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x0cstatsInclude\x12-\n\rstats_exclude\x18\x07 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x0cstatsExclude\x12/\n\x0enetstat_fields\x18\x08 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\rnetstatFields\x12\x44\n\x14max_speed_exceptions\x18\t \x03(\tB\x12\xbaH\x0f\x92\x01\x0c\x10\x80\x02\"\x07r\x05\x10\x01\x18\x80\x01R\x12maxSpeedExceptions\x12:\n\x14metrics_core_include\x18\n \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x12metricsCoreInclude\x12:\n\x14metrics_core_exclude\x18\x0b \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x12metricsCoreExclude\x12\x1f\n\x0bmetrics_all\x18\x0c \x01(\x08R\nmetricsAll\x12\x41\n\x0f\x63ollection_mode\x18\r \x01(\tB\x18\xbaH\x15r\x13R\x00R\x04pollR\ton-demandR\x0e\x63ollectionMode\x12P\n\x0ewatch_interval\x18\x0e \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xa3\x05*\x00R\rwatchInterval\x12N\n\rslow_interval\x18\x0f \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xa3\x05*\x00R\x0cslowInterval\x12M\n\ron_demand_ttl\x18\x10 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xa3\x05\x32\x00R\x0bonDemandTtl\x12M\n\x0eon_demand_wait\x18\x11 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0c\xbaH\t\xaa\x01\x06\x1a\x02\x08\n*\x00R\x0conDemandWait\x12L\n\x0c\x65rror_window\x18\x12 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xf5$2\x00R\x0b\x65rrorWindow\x12J\n\x0b\x66lap_window\x18\x13 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xf5$2\x00R\nflapWindow\x12\\\n\rerror_classes\x18\x14 \x01(\tB2\xbaH/r-\x18@2)^((link|rdma|drop)(,(link|rdma|drop))*)?$H\x00R\x0c\x65rrorClasses\x88\x01\x01\x12-\n\rerror_exclude\x18\x15 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x0c\x65rrorExclude\x12<\n\x12metrics_categories\x18\x16 \x01(\tB\x08\xbaH\x05r\x03\x18\x80\x02H\x01R\x11metricsCategories\x88\x01\x01\x12;\n\x17metrics_interface_paths\x18\x17 \x01(\x08H\x02R\x15metricsInterfacePaths\x88\x01\x01\x12\x37\n\x10metrics_all_path\x18\x18 \x01(\tB\x08\xbaH\x05r\x03\x18\x80\x02H\x03R\x0emetricsAllPath\x88\x01\x01\x12\x19\n\x08ip_paths\x18\x19 \x01(\x08R\x07ipPaths\x12-\n\x0cip_max_bytes\x18\x1a \x01(\rB\x0b\xbaH\x08*\x06\x18\x80\x80\x80\x80\x04R\nipMaxBytes\x12$\n\tip_listen\x18\x1b \x01(\tB\x07\xbaH\x04r\x02\x18@R\x08ipListen\x12P\n\x0elearn_deadline\x18\x1c \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xa3\x05\x32\x00R\rlearnDeadlineB\x10\n\x0e_error_classesB\x15\n\x13_metrics_categoriesB\x1a\n\x18_metrics_interface_pathsB\x13\n\x11_metrics_all_path\"\xfa.\n\nXtcpConfig\x12\x46\n\x17nl_timeout_milliseconds\x18\n \x01(\x04\x42\x0e\xbaH\x0b\x32\x06\x18\xa0\x8d\x06(\x00\xc8\x01\x01R\x15nlTimeoutMilliseconds\x12U\n\x0epoll_frequency\x18\x0b \x01(\x0b\x32\x19.google.protobuf.DurationB\x13\xbaH\x10\xaa\x01\n\"\x04\x08\x80\xf5$2\x02\x08\x01\xc8\x01\x01R\rpollFrequency\x12O\n\x0cpoll_timeout\x18\x0c \x01(\x0b\x32\x19.google.protobuf.DurationB\x11\xbaH\x0e\xaa\x01\x08\"\x04\x08\x80\xf5$*\x00\xc8\x01\x01R\x0bpollTimeout\x12\x32\n\x0fpoll_jitter_pct\x18\r \x01(\rB\n\xbaH\x07*\x02\x18\x64\xc8\x01\x00R\rpollJitterPct\x12+\n\tmax_loops\x18\x0e \x01(\x04\x42\x0e\xbaH\x0b\x32\x06\x18\xa0\x8d\x06(\x00\xc8\x01\x00R\x08maxLoops\x12,\n\nnetlinkers\x18\x0f \x01(\rB\x0c\xbaH\t*\x04\x18\x64(\x01\xc8\x01\x01R\nnetlinkers\x12H\n\x19netlinkers_done_chan_size\x18\x10 \x01(\rB\r\xbaH\n*\x05\x18\xe8\x07(\x01\xc8\x01\x01R\x16netlinkersDoneChanSize\x12*\n\tnlmsg_seq\x18\x11 \x01(\rB\r\xbaH\n*\x05\x18\x90N(\x00\xc8\x01\x01R\x08nlmsgSeq\x12/\n\x0bpacket_size\x18\x12 \x01(\x04\x42\x0e\xbaH\x0b\x32\x06\x18\xc0\x84=(\x00\xc8\x01\x00R\npacketSize\x12\x36\n\x10packet_size_mply\x18\x13 \x01(\rB\x0c\xbaH\t*\x04\x18\x64(\x00\xc8\x01\x00R\x0epacketSizeMply\x12(\n\x07modulus\x18\x14 \x01(\x04\x42\x0e\xbaH\x0b\x32\x06\x18\xc0\x84=(\x01\xc8\x01\x01R\x07modulus\x12\x61\n\x15\x65nabled_deserializers\x18\x15 \x01(\x0b\x32$.xtcp_config.v1.EnabledDeserializersB\x06\xbaH\x03\xc8\x01\x00R\x14\x65nabledDeserializers\x12!\n\x08io_uring\x18\x16 \x01(\x08\x42\x06\xbaH\x03\xc8\x01\x00R\x07ioUring\x12\x45\n\x18io_uring_recv_batch_size\x18\x17 \x01(\rB\r\xbaH\n*\x05\x18\x80 (\x01\xc8\x01\x00R\x14ioUringRecvBatchSize\x12\x43\n\x17io_uring_cqe_batch_size\x18\x18 \x01(\rB\r\xbaH\n*\x05\x18\x80 (\x01\xc8\x01\x00R\x13ioUringCqeBatchSize\x12,\n\x0emax_dump_bytes\x18\x19 \x01(\x04\x42\x06\xbaH\x03\xc8\x01\x00R\x0cmaxDumpBytes\x12\x39\n\x15max_records_per_netns\x18\x1a \x01(\x04\x42\x06\xbaH\x03\xc8\x01\x00R\x12maxRecordsPerNetns\x12\x37\n\x14max_records_per_poll\x18\x1b \x01(\x04\x42\x06\xbaH\x03\xc8\x01\x00R\x11maxRecordsPerPoll\x12K\n\x1cio_uring_sockstat_batch_size\x18\x1c \x01(\rB\x0b\xbaH\x08*\x03\x18\x80\x08\xc8\x01\x00R\x18ioUringSockstatBatchSize\x12\x45\n\x19io_uring_sockstat_workers\x18\x1d \x01(\rB\n\xbaH\x07*\x02\x18@\xc8\x01\x00R\x16ioUringSockstatWorkers\x12W\n\x13reconcile_frequency\x18( \x01(\x0b\x32\x19.google.protobuf.DurationB\x0b\xbaH\x08\xaa\x01\x02\x32\x00\xc8\x01\x00R\x12reconcileFrequency\x12\x32\n\x15reconcile_before_poll\x18) \x01(\x08R\x13reconcileBeforePoll\x12#\n\tmax_netns\x18* \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x08maxNetns\x12S\n\x11reconcile_timeout\x18+ \x01(\x0b\x32\x19.google.protobuf.DurationB\x0b\xbaH\x08\xaa\x01\x02\x32\x00\xc8\x01\x00R\x10reconcileTimeout\x12\x35\n\x13max_netns_per_owner\x18, \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x10maxNetnsPerOwner\x12\x46\n\x1cmax_netns_adds_per_reconcile\x18- \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x18maxNetnsAddsPerReconcile\x12.\n\x0bwrite_files\x18\x32 \x01(\rB\r\xbaH\n*\x05\x18\xe8\x07(\x00\xc8\x01\x00R\nwriteFiles\x12/\n\x0c\x63\x61pture_path\x18\x33 \x01(\tB\x0c\xbaH\tr\x04\x10\x01\x18P\xc8\x01\x00R\x0b\x63\x61pturePath\x12\x37\n\x10\x64\x65st_write_files\x18\x34 \x01(\rB\r\xbaH\n*\x05\x18\xe8\x07(\x00\xc8\x01\x00R\x0e\x64\x65stWriteFiles\x12.\n\x0b\x64\x65\x62ug_level\x18\x35 \x01(\rB\r\xbaH\n*\x05\x18\xe8\x07(\x00\xc8\x01\x01R\ndebugLevel\x12\x31\n\x10\x64\x65\x62ug_prometheus\x18\x36 \x01(\x08\x42\x06\xbaH\x03\xc8\x01\x00R\x0f\x64\x65\x62ugPrometheus\x12!\n\x04\x64\x65st\x18< \x01(\tB\r\xbaH\nr\x05\x10\x04\x18\x80\x04\xc8\x01\x01R\x04\x64\x65st\x12+\n\nmarshal_to\x18= \x01(\tB\x0c\xbaH\tr\x04\x10\x03\x18(\xc8\x01\x01R\tmarshalTo\x12\'\n\x0b\x63sv_columns\x18> \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\ncsvColumns\x12\x34\n\x0fxtcp_proto_file\x18? \x01(\tB\x0c\xbaH\tr\x04\x10\x01\x18P\xc8\x01\x00R\rxtcpProtoFile\x12K\n\x1e\x65nvelope_flush_threshold_bytes\x18@ \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x1b\x65nvelopeFlushThresholdBytes\x12I\n\x1d\x65nvelope_flush_threshold_rows\x18\x41 \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x1a\x65nvelopeFlushThresholdRows\x12\"\n\x05topic\x18P \x01(\tB\x0c\xbaH\tr\x04\x10\x01\x18(\xc8\x01\x00R\x05topic\x12\x36\n\x10kafka_schema_url\x18Q \x01(\tB\x0c\xbaH\tr\x04\x10\x01\x18<\xc8\x01\x00R\x0ekafkaSchemaUrl\x12_\n\x15kafka_produce_timeout\x18R \x01(\x0b\x32\x19.google.protobuf.DurationB\x10\xbaH\r\xaa\x01\x07\"\x03\x08\xd8\x04\x32\x00\xc8\x01\x00R\x13kafkaProduceTimeout\x12\x33\n\x11kafka_compression\x18S \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\x10kafkaCompression\x12\'\n\x0bs3_endpoint\x18\x64 \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\ns3Endpoint\x12#\n\ts3_region\x18\x65 \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\x08s3Region\x12#\n\ts3_bucket\x18\x66 \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\x08s3Bucket\x12#\n\ts3_prefix\x18g \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\x08s3Prefix\x12*\n\rs3_access_key\x18h \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\x0bs3AccessKey\x12*\n\rs3_secret_key\x18i \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\x0bs3SecretKey\x12\x37\n\x14s3_skip_bucket_probe\x18j \x01(\x08\x42\x06\xbaH\x03\xc8\x01\x00R\x11s3SkipBucketProbe\x12\x32\n\x11s3_allow_insecure\x18k \x01(\x08\x42\x06\xbaH\x03\xc8\x01\x00R\x0fs3AllowInsecure\x12)\n\ns3_ca_file\x18l \x01(\tB\x0b\xbaH\x08r\x03\x18\x80 \xc8\x01\x00R\x08s3CaFile\x12N\n s3_parquet_flush_threshold_bytes\x18n \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x1cs3ParquetFlushThresholdBytes\x12R\n\x11s3_flush_interval\x18o \x01(\x0b\x32\x19.google.protobuf.DurationB\x0b\xbaH\x08\xaa\x01\x02\x32\x00\xc8\x01\x00R\x0fs3FlushInterval\x12\x39\n\x13s3_flush_jitter_pct\x18p \x01(\rB\n\xbaH\x07*\x02\x18\x64\xc8\x01\x00R\x10s3FlushJitterPct\x12L\n\x1ds3_flush_threshold_jitter_pct\x18q \x01(\rB\n\xbaH\x07*\x02\x18\x64\xc8\x01\x00R\x19s3FlushThresholdJitterPct\x12\x41\n\x16s3_upload_max_attempts\x18r \x01(\rB\x0c\xbaH\t*\x04\x18\x64(\x01\xc8\x01\x00R\x13s3UploadMaxAttempts\x12Y\n\x15s3_upload_backoff_cap\x18s \x01(\x0b\x32\x19.google.protobuf.DurationB\x0b\xbaH\x08\xaa\x01\x02\x32\x00\xc8\x01\x00R\x12s3UploadBackoffCap\x12\x31\n\x0es3_queue_depth\x18t \x01(\rB\x0b\xbaH\x08*\x03\x18\x80 \xc8\x01\x00R\x0cs3QueueDepth\x12\x39\n\x15s3_max_buffered_bytes\x18u \x01(\x04\x42\x06\xbaH\x03\xc8\x01\x00R\x12s3MaxBufferedBytes\x12G\n\x0cs3_spill_dir\x18v \x01(\tB%\xbaH\"r\x1d\x18\x80 2\x18^[^\\x00-\\x1f\\x7f-\\x9f]*$\xc8\x01\x00R\ns3SpillDir\x12\x33\n\x12s3_spill_max_bytes\x18w \x01(\x04\x42\x06\xbaH\x03\xc8\x01\x00R\x0fs3SpillMaxBytes\x12Y\n\x11tcp_write_timeout\x18x \x01(\x0b\x32\x19.google.protobuf.DurationB\x12\xbaH\x0f\xaa\x01\t\"\x03\x08\x90\x1c\x32\x02\x08\x01\xc8\x01\x00R\x0ftcpWriteTimeout\x12\x33\n\x0ftcp_queue_depth\x18y \x01(\rB\x0b\xbaH\x08*\x03\x18\x80 \xc8\x01\x00R\rtcpQueueDepth\x12;\n\x16tcp_max_buffered_bytes\x18z \x01(\x04\x42\x06\xbaH\x03\xc8\x01\x00R\x13tcpMaxBufferedBytes\x12\x42\n\x08hostname\x18\x82\x01 \x01(\tB%\xbaH\"r\x1d\x18\xfd\x01\x32\x18^[^\\x00-\\x1f\\x7f-\\x9f]*$\xc8\x01\x00R\x08hostname\x12\x42\n\x08location\x18\x83\x01 \x01(\tB%\xbaH\"r\x1d\x18\xfd\x01\x32\x18^[^\\x00-\\x1f\\x7f-\\x9f]*$\xc8\x01\x00R\x08location\x12;\n\x05label\x18\x84\x01 \x01(\tB$\xbaH!r\x1c\x18(2\x18^[^\\x00-\\x1f\\x7f-\\x9f]*$\xc8\x01\x00R\x05label\x12\x37\n\x03tag\x18\x85\x01 \x01(\tB$\xbaH!r\x1c\x18(2\x18^[^\\x00-\\x1f\\x7f-\\x9f]*$\xc8\x01\x00R\x03tag\x12\x33\n\x0e\x64\x61\x65mon_version\x18\x86\x01 \x01(\tB\x0b\xbaH\x08r\x03\x18\xfd\x01\xc8\x01\x00R\rdaemonVersion\x12\'\n\x08ipv4_ttl\x18\x96\x01 \x01(\rB\x0b\xbaH\x08*\x03\x18\xff\x01\xc8\x01\x00R\x07ipv4Ttl\x12\x32\n\x0eipv6_hop_limit\x18\x97\x01 \x01(\rB\x0b\xbaH\x08*\x03\x18\xff\x01\xc8\x01\x00R\x0cipv6HopLimit\x12J\n\rlistener_auth\x18\x98\x01 \x01(\x0b\x32\x1c.xtcp_config.v1.ListenerAuthB\x06\xbaH\x03\xc8\x01\x00R\x0clistenerAuth\x12Z\n\x13prometheus_listener\x18\x99\x01 \x01(\x0b\x32 .xtcp_config.v1.ListenerEndpointB\x06\xbaH\x03\xc8\x01\x00R\x12prometheusListener\x12U\n\x13\x61\x64min_listener_auth\x18\x9a\x01 \x01(\x0b\x32\x1c.xtcp_config.v1.ListenerAuthB\x06\xbaH\x03\xc8\x01\x00R\x11\x61\x64minListenerAuth\x12\'\n\tgrpc_port\x18\xa0\x01 \x01(\rB\t\xbaH\x06*\x04\x18\xff\xff\x03R\x08grpcPort\x12N\n\rgrpc_listener\x18\xa1\x01 \x01(\x0b\x32 .xtcp_config.v1.ListenerEndpointB\x06\xbaH\x03\xc8\x01\x00R\x0cgrpcListener\x12\x41\n\tlisteners\x18\xa2\x01 \x03(\x0b\x32\x18.xtcp_config.v1.ListenerB\x08\xbaH\x05\x92\x01\x02\x10\x10R\tlisteners\x12,\n\rpyroscope_url\x18\xaa\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\x0cpyroscopeUrl\x12\x35\n\x12pyroscope_app_name\x18\xab\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\x10pyroscopeAppName\x12\x37\n\x13pyroscope_sample_hz\x18\xac\x01 \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x11pyroscopeSampleHz\x12J\n\x1dpyroscope_upload_interval_sec\x18\xad\x01 \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x1apyroscopeUploadIntervalSec\x12\x39\n\x14resolve_container_id\x18\xc8\x01 \x01(\x08\x42\x06\xbaH\x03\xc8\x01\x00R\x12resolveContainerId\x12\x37\n\x17\x65nrich_container_enable\x18\xc9\x01 \x01(\x08R\x15\x65nrichContainerEnable\x12\x37\n\x12\x64ocker_socket_path\x18\xca\x01 \x01(\tB\x08\xbaH\x05r\x03\x18\xff\x01R\x10\x64ockerSocketPath\x12-\n\x12\x65nrich_lldp_enable\x18\xd2\x01 \x01(\x08R\x10\x65nrichLldpEnable\x12\x35\n\x11lldpd_socket_path\x18\xd3\x01 \x01(\tB\x08\xbaH\x05r\x03\x18\xff\x01R\x0flldpdSocketPath\x12\x36\n\x12lldpd_version_hint\x18\xd4\x01 \x01(\tB\x07\xbaH\x04r\x02\x18\x10R\x10lldpdVersionHint\x12+\n\x11\x65nrich_nic_enable\x18\xdc\x01 \x01(\x08R\x0f\x65nrichNicEnable\x12+\n\x0cuplink_count\x18\xdd\x01 \x01(\rB\x07\xbaH\x04*\x02\x18\x02R\x0buplinkCount\x12\x36\n\x11uplink_interfaces\x18\xde\x01 \x03(\tB\x08\xbaH\x05\x92\x01\x02\x10\x02R\x10uplinkInterfaces\x12$\n\rpopulate_nsid\x18\xe6\x01 \x01(\x08R\x0cpopulateNsid\x12+\n\x11\x65nrich_asn_enable\x18\xf0\x01 \x01(\x08R\x0f\x65nrichAsnEnable\x12)\n\x0b\x61sn_db_path\x18\xf1\x01 \x01(\tB\x08\xbaH\x05r\x03\x18\xff\x01R\tasnDbPath\x12L\n\x14\x61sn_refresh_interval\x18\xf2\x01 \x01(\x0b\x32\x19.google.protobuf.DurationR\x12\x61snRefreshInterval\x12=\n\x15ipmeta_bootstrap_path\x18\xf3\x01 \x01(\tB\x08\xbaH\x05r\x03\x18\xff\x01R\x13ipmetaBootstrapPath\x12\x35\n\x11ipmeta_cache_path\x18\xf4\x01 \x01(\tB\x08\xbaH\x05r\x03\x18\xff\x01R\x0fipmetaCachePath\x12\x35\n\x16\x65nrich_locality_enable\x18\xf5\x01 \x01(\x08R\x14\x65nrichLocalityEnable\x12V\n\x19locality_refresh_interval\x18\xf6\x01 \x01(\x0b\x32\x19.google.protobuf.DurationR\x17localityRefreshInterval\x12\x35\n\x16locality_events_enable\x18\xf7\x01 \x01(\x08R\x14localityEventsEnable\x12\x45\n\x0clink_monitor\x18\xfa\x01 \x01(\x0b\x32!.xtcp_config.v1.LinkMonitorConfigR\x0blinkMonitor:s\xbaHp\x1an\n\x0fXtcpConfig.poll\x12\x32Poll timeout must be less than poll poll_frequency\x1a\'this.poll_frequency > this.poll_timeout\"\x9f\x01\n\x14\x45nabledDeserializers\x12K\n\x07\x65nabled\x18\x01 \x03(\x0b\x32\x31.xtcp_config.v1.EnabledDeserializers.EnabledEntryR\x07\x65nabled\x1a:\n\x0c\x45nabledEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\x08R\x05value:\x02\x38\x01*h\n\x0fListenerNetwork\x12 \n\x1cLISTENER_NETWORK_UNSPECIFIED\x10\x00\x12\x18\n\x14LISTENER_NETWORK_TCP\x10\x01\x12\x19\n\x15LISTENER_NETWORK_UNIX\x10\x02*\xa1\x01\n\x10ListenerAuthMode\x12\"\n\x1eLISTENER_AUTH_MODE_UNSPECIFIED\x10\x00\x12\x1f\n\x1bLISTENER_AUTH_MODE_DISABLED\x10\x01\x12 \n\x1cLISTENER_AUTH_MODE_RAW_TOKEN\x10\x02\x12&\n\"LISTENER_AUTH_MODE_HMAC_UTC_MINUTE\x10\x03*\xf7\x01\n\rEndpointClass\x12\x1e\n\x1a\x45NDPOINT_CLASS_UNSPECIFIED\x10\x00\x12\x19\n\x15\x45NDPOINT_CLASS_HEALTH\x10\x01\x12\x1a\n\x16\x45NDPOINT_CLASS_METRICS\x10\x02\x12!\n\x1d\x45NDPOINT_CLASS_METRICS_DETAIL\x10\x03\x12\x15\n\x11\x45NDPOINT_CLASS_IP\x10\x04\x12\x18\n\x14\x45NDPOINT_CLASS_DEBUG\x10\x05\x12\x1c\n\x18\x45NDPOINT_CLASS_GRPC_READ\x10\x06\x12\x1d\n\x19\x45NDPOINT_CLASS_GRPC_ADMIN\x10\x07\x32\xa5\x07\n\rConfigService\x12\x61\n\x03Get\x12\x1a.xtcp_config.v1.GetRequest\x1a\x1b.xtcp_config.v1.GetResponse\"!\xc8\xf3\x18\x01\x82\xd3\xe4\x93\x02\x17\x1a\x12/ConfigService/Get:\x01*\x12\x61\n\x03Set\x12\x1a.xtcp_config.v1.SetRequest\x1a\x1b.xtcp_config.v1.SetResponse\"!\xc8\xf3\x18\x02\x82\xd3\xe4\x93\x02\x17\x1a\x12/ConfigService/Set:\x01*\x12\x95\x01\n\x10SetPollFrequency\x12\'.xtcp_config.v1.SetPollFrequencyRequest\x1a(.xtcp_config.v1.SetPollFrequencyResponse\".\xc8\xf3\x18\x02\x82\xd3\xe4\x93\x02$\x1a\x1f/ConfigService/SetPollFrequency:\x01*\x12\x81\x01\n\x0bTriggerPoll\x12\".xtcp_config.v1.TriggerPollRequest\x1a#.xtcp_config.v1.TriggerPollResponse\")\xc8\xf3\x18\x02\x82\xd3\xe4\x93\x02\x1f\x1a\x1a/ConfigService/TriggerPoll:\x01*\x12\x95\x01\n\x10TriggerPollBurst\x12\'.xtcp_config.v1.TriggerPollBurstRequest\x1a(.xtcp_config.v1.TriggerPollBurstResponse\".\xc8\xf3\x18\x02\x82\xd3\xe4\x93\x02$\x1a\x1f/ConfigService/TriggerPollBurst:\x01*\x12\x81\x01\n\x0bSetS3Upload\x12\".xtcp_config.v1.SetS3UploadRequest\x1a#.xtcp_config.v1.SetS3UploadResponse\")\xc8\xf3\x18\x02\x82\xd3\xe4\x93\x02\x1f\x1a\x1a/ConfigService/SetS3Upload:\x01*\x12\x95\x01\n\x10SetEnvelopeFlush\x12\'.xtcp_config.v1.SetEnvelopeFlushRequest\x1a(.xtcp_config.v1.SetEnvelopeFlushResponse\".\xc8\xf3\x18\x02\x82\xd3\xe4\x93\x02$\x1a\x1f/ConfigService/SetEnvelopeFlush:\x01*B\xaf\x01\n\x12\x63om.xtcp_config.v1B\x0fXtcpConfigProtoP\x01Z3github.com/randomizedcoder/xtcp2/gen/go/xtcp_config\xa2\x02\x03XXX\xaa\x02\rXtcpConfig.V1\xca\x02\rXtcpConfig\\V1\xe2\x02\x19XtcpConfig\\V1\\GPBMetadata\xea\x02\x0eXtcpConfig::V1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n xtcp_config/v1/xtcp_config.proto\x12\x0extcp_config.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1cxtcp_auth/v1/xtcp_auth.proto\x1a\x1b\x62uf/validate/validate.proto\"\x0c\n\nGetRequest\"A\n\x0bGetResponse\x12\x32\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x1a.xtcp_config.v1.XtcpConfigR\x06\x63onfig\"@\n\nSetRequest\x12\x32\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x1a.xtcp_config.v1.XtcpConfigR\x06\x63onfig\"A\n\x0bSetResponse\x12\x32\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x1a.xtcp_config.v1.XtcpConfigR\x06\x63onfig\"\xb6\x02\n\x17SetPollFrequencyRequest\x12U\n\x0epoll_frequency\x18\x14 \x01(\x0b\x32\x19.google.protobuf.DurationB\x13\xbaH\x10\xaa\x01\n\"\x04\x08\x80\xf5$2\x02\x08\x01\xc8\x01\x01R\rpollFrequency\x12O\n\x0cpoll_timeout\x18\x1e \x01(\x0b\x32\x19.google.protobuf.DurationB\x11\xbaH\x0e\xaa\x01\x08\"\x04\x08\x80\xf5$2\x00\xc8\x01\x01R\x0bpollTimeout:s\xbaHp\x1an\n\x0fXtcpConfig.poll\x12\x32Poll timeout must be less than poll poll_frequency\x1a\'this.poll_timeout < this.poll_frequency\"N\n\x18SetPollFrequencyResponse\x12\x32\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x1a.xtcp_config.v1.XtcpConfigR\x06\x63onfig\"\x14\n\x12TriggerPollRequest\"\x15\n\x13TriggerPollResponse\"\x89\x01\n\x17TriggerPollBurstRequest\x12#\n\x05\x63ount\x18\n \x01(\rB\r\xbaH\n*\x05\x18\xe8\x07(\x01\xc8\x01\x01R\x05\x63ount\x12I\n\x08interval\x18\x14 \x01(\x0b\x32\x19.google.protobuf.DurationB\x12\xbaH\x0f\xaa\x01\t\"\x03\x08\x90\x1c\x32\x02\x08\x01\xc8\x01\x01R\x08interval\"g\n\x18TriggerPollBurstResponse\x12\x14\n\x05\x63ount\x18\n \x01(\rR\x05\x63ount\x12\x35\n\x08interval\x18\x14 \x01(\x0b\x32\x19.google.protobuf.DurationR\x08interval\"\xe3\x02\n\x12SetS3UploadRequest\x12R\n\x11s3_flush_interval\x18\n \x01(\x0b\x32\x19.google.protobuf.DurationB\x0b\xbaH\x08\xaa\x01\x02\x32\x00\xc8\x01\x00R\x0fs3FlushInterval\x12N\n s3_parquet_flush_threshold_bytes\x18\x14 \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x1cs3ParquetFlushThresholdBytes:\xa8\x01\xbaH\xa4\x01\x1a\xa1\x01\n\x16SetS3Upload.atLeastOne\x12=set s3_flush_interval and/or s3_parquet_flush_threshold_bytes\x1aHhas(this.s3_flush_interval) || this.s3_parquet_flush_threshold_bytes > 0\"I\n\x13SetS3UploadResponse\x12\x32\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x1a.xtcp_config.v1.XtcpConfigR\x06\x63onfig\"\xf4\x02\n\x17SetEnvelopeFlushRequest\x12K\n\x1e\x65nvelope_flush_threshold_bytes\x18\n \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x1b\x65nvelopeFlushThresholdBytes\x12I\n\x1d\x65nvelope_flush_threshold_rows\x18\x14 \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x1a\x65nvelopeFlushThresholdRows:\xc0\x01\xbaH\xbc\x01\x1a\xb9\x01\n\x1bSetEnvelopeFlush.atLeastOne\x12Gset envelope_flush_threshold_bytes and/or envelope_flush_threshold_rows\x1aQthis.envelope_flush_threshold_bytes > 0 || this.envelope_flush_threshold_rows > 0\"N\n\x18SetEnvelopeFlushResponse\x12\x32\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x1a.xtcp_config.v1.XtcpConfigR\x06\x63onfig\"\x8a\x03\n\x10ListenerEndpoint\x12\x43\n\x07network\x18\x01 \x01(\x0e\x32\x1f.xtcp_config.v1.ListenerNetworkB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x07network\x12\"\n\x07\x61\x64\x64ress\x18\x02 \x01(\tB\x08\xbaH\x05r\x03\x18\x80\x04R\x07\x61\x64\x64ress\x12\x32\n\x10unix_socket_mode\x18\x03 \x01(\rB\x08\xbaH\x05*\x03\x18\xff\x03R\x0eunixSocketMode\x12\x37\n\x18unlink_stale_unix_socket\x18\x04 \x01(\x08R\x15unlinkStaleUnixSocket\x12\x32\n\x0fmax_connections\x18\x05 \x01(\rB\t\xbaH\x06*\x04\x18\xa0\x8d\x06R\x0emaxConnections\x12>\n\x16\x61\x63\x63\x65pt_rate_per_second\x18\x06 \x01(\rB\t\xbaH\x06*\x04\x18\xa0\x8d\x06R\x13\x61\x63\x63\x65ptRatePerSecond\x12,\n\x0c\x61\x63\x63\x65pt_burst\x18\x07 \x01(\rB\t\xbaH\x06*\x04\x18\xa0\x8d\x06R\x0b\x61\x63\x63\x65ptBurst\"\x83\x06\n\x0cListenerAuth\x12>\n\x04mode\x18\x01 \x01(\x0e\x32 .xtcp_config.v1.ListenerAuthModeB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x04mode\x12%\n\traw_token\x18\x02 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x08rawToken\x12\x30\n\x0fhmac_shared_key\x18\x03 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\rhmacSharedKey\x12G\n\x19signed_token_skew_minutes\x18\x04 \x01(\rB\x07\xbaH\x04*\x02\x18\x05H\x00R\x16signedTokenSkewMinutes\x88\x01\x01\x12Q\n\x12\x66\x61ilure_jitter_min\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationB\x08\xbaH\x05\xaa\x01\x02\x32\x00R\x10\x66\x61ilureJitterMin\x12Q\n\x12\x66\x61ilure_jitter_max\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationB\x08\xbaH\x05\xaa\x01\x02\x32\x00R\x10\x66\x61ilureJitterMax\x12.\n\x0eraw_token_file\x18\x07 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x0crawTokenFile\x12\x39\n\x14hmac_shared_key_file\x18\x08 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x11hmacSharedKeyFile:\xe1\x01\xbaH\xdd\x01\x1a\xda\x01\n\x1aListenerAuth.failureJitter\x12\x46\x66\x61ilure_jitter_max must be greater than or equal to failure_jitter_min\x1at!has(this.failure_jitter_min) || !has(this.failure_jitter_max) || this.failure_jitter_max >= this.failure_jitter_minB\x1c\n\x1a_signed_token_skew_minutes\"\xbf\x02\n\x08Listener\x12\x30\n\x04name\x18\x01 \x01(\tB\x1c\xbaH\x19r\x17\x10\x01\x18 2\x11^[a-z][a-z0-9-]*$R\x04name\x12\x44\n\x08\x65ndpoint\x18\x02 \x01(\x0b\x32 .xtcp_config.v1.ListenerEndpointB\x06\xbaH\x03\xc8\x01\x01R\x08\x65ndpoint\x12\x30\n\x04\x61uth\x18\x03 \x01(\x0b\x32\x1c.xtcp_config.v1.ListenerAuthR\x04\x61uth\x12;\n\nadmin_auth\x18\x04 \x01(\x0b\x32\x1c.xtcp_config.v1.ListenerAuthR\tadminAuth\x12L\n\x06serves\x18\x05 \x03(\x0e\x32\x1d.xtcp_config.v1.EndpointClassB\x15\xbaH\x12\x92\x01\x0f\x08\x01\x10\x07\x18\x01\"\x07\x82\x01\x04\x10\x01 \x00R\x06serves\"\x9a\x0e\n\x11LinkMonitorConfig\x12\x16\n\x06\x65nable\x18\x01 \x01(\x08R\x06\x65nable\x12-\n\rbaseline_file\x18\x02 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x0c\x62\x61selineFile\x12\x41\n\x06settle\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xa3\x05\x32\x00R\x06settle\x12\x41\n\x06resync\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xf5$*\x00R\x06resync\x12P\n\x0estats_interval\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xa3\x05*\x00R\rstatsInterval\x12-\n\rstats_include\x18\x06 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x0cstatsInclude\x12-\n\rstats_exclude\x18\x07 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x0cstatsExclude\x12/\n\x0enetstat_fields\x18\x08 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\rnetstatFields\x12\x44\n\x14max_speed_exceptions\x18\t \x03(\tB\x12\xbaH\x0f\x92\x01\x0c\x10\x80\x02\"\x07r\x05\x10\x01\x18\x80\x01R\x12maxSpeedExceptions\x12:\n\x14metrics_core_include\x18\n \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x12metricsCoreInclude\x12:\n\x14metrics_core_exclude\x18\x0b \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x12metricsCoreExclude\x12\x1f\n\x0bmetrics_all\x18\x0c \x01(\x08R\nmetricsAll\x12\x41\n\x0f\x63ollection_mode\x18\r \x01(\tB\x18\xbaH\x15r\x13R\x00R\x04pollR\ton-demandR\x0e\x63ollectionMode\x12P\n\x0ewatch_interval\x18\x0e \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xa3\x05*\x00R\rwatchInterval\x12N\n\rslow_interval\x18\x0f \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xa3\x05*\x00R\x0cslowInterval\x12M\n\ron_demand_ttl\x18\x10 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xa3\x05\x32\x00R\x0bonDemandTtl\x12M\n\x0eon_demand_wait\x18\x11 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0c\xbaH\t\xaa\x01\x06\x1a\x02\x08\n*\x00R\x0conDemandWait\x12L\n\x0c\x65rror_window\x18\x12 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xf5$2\x00R\x0b\x65rrorWindow\x12J\n\x0b\x66lap_window\x18\x13 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xf5$2\x00R\nflapWindow\x12\\\n\rerror_classes\x18\x14 \x01(\tB2\xbaH/r-\x18@2)^((link|rdma|drop)(,(link|rdma|drop))*)?$H\x00R\x0c\x65rrorClasses\x88\x01\x01\x12-\n\rerror_exclude\x18\x15 \x01(\tB\x08\xbaH\x05r\x03\x18\x80 R\x0c\x65rrorExclude\x12<\n\x12metrics_categories\x18\x16 \x01(\tB\x08\xbaH\x05r\x03\x18\x80\x02H\x01R\x11metricsCategories\x88\x01\x01\x12;\n\x17metrics_interface_paths\x18\x17 \x01(\x08H\x02R\x15metricsInterfacePaths\x88\x01\x01\x12\x37\n\x10metrics_all_path\x18\x18 \x01(\tB\x08\xbaH\x05r\x03\x18\x80\x02H\x03R\x0emetricsAllPath\x88\x01\x01\x12\x19\n\x08ip_paths\x18\x19 \x01(\x08R\x07ipPaths\x12-\n\x0cip_max_bytes\x18\x1a \x01(\rB\x0b\xbaH\x08*\x06\x18\x80\x80\x80\x80\x04R\nipMaxBytes\x12$\n\tip_listen\x18\x1b \x01(\tB\x07\xbaH\x04r\x02\x18@R\x08ipListen\x12P\n\x0elearn_deadline\x18\x1c \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\xbaH\x0b\xaa\x01\x08\"\x04\x08\x80\xa3\x05\x32\x00R\rlearnDeadlineB\x10\n\x0e_error_classesB\x15\n\x13_metrics_categoriesB\x1a\n\x18_metrics_interface_pathsB\x13\n\x11_metrics_all_path\"\xa3\x31\n\nXtcpConfig\x12\x46\n\x17nl_timeout_milliseconds\x18\n \x01(\x04\x42\x0e\xbaH\x0b\x32\x06\x18\xa0\x8d\x06(\x00\xc8\x01\x01R\x15nlTimeoutMilliseconds\x12U\n\x0epoll_frequency\x18\x0b \x01(\x0b\x32\x19.google.protobuf.DurationB\x13\xbaH\x10\xaa\x01\n\"\x04\x08\x80\xf5$2\x02\x08\x01\xc8\x01\x01R\rpollFrequency\x12O\n\x0cpoll_timeout\x18\x0c \x01(\x0b\x32\x19.google.protobuf.DurationB\x11\xbaH\x0e\xaa\x01\x08\"\x04\x08\x80\xf5$*\x00\xc8\x01\x01R\x0bpollTimeout\x12\x32\n\x0fpoll_jitter_pct\x18\r \x01(\rB\n\xbaH\x07*\x02\x18\x64\xc8\x01\x00R\rpollJitterPct\x12+\n\tmax_loops\x18\x0e \x01(\x04\x42\x0e\xbaH\x0b\x32\x06\x18\xa0\x8d\x06(\x00\xc8\x01\x00R\x08maxLoops\x12,\n\nnetlinkers\x18\x0f \x01(\rB\x0c\xbaH\t*\x04\x18\x64(\x01\xc8\x01\x01R\nnetlinkers\x12H\n\x19netlinkers_done_chan_size\x18\x10 \x01(\rB\r\xbaH\n*\x05\x18\xe8\x07(\x01\xc8\x01\x01R\x16netlinkersDoneChanSize\x12*\n\tnlmsg_seq\x18\x11 \x01(\rB\r\xbaH\n*\x05\x18\x90N(\x00\xc8\x01\x01R\x08nlmsgSeq\x12/\n\x0bpacket_size\x18\x12 \x01(\x04\x42\x0e\xbaH\x0b\x32\x06\x18\xc0\x84=(\x00\xc8\x01\x00R\npacketSize\x12\x36\n\x10packet_size_mply\x18\x13 \x01(\rB\x0c\xbaH\t*\x04\x18\x64(\x00\xc8\x01\x00R\x0epacketSizeMply\x12(\n\x07modulus\x18\x14 \x01(\x04\x42\x0e\xbaH\x0b\x32\x06\x18\xc0\x84=(\x01\xc8\x01\x01R\x07modulus\x12\x61\n\x15\x65nabled_deserializers\x18\x15 \x01(\x0b\x32$.xtcp_config.v1.EnabledDeserializersB\x06\xbaH\x03\xc8\x01\x00R\x14\x65nabledDeserializers\x12!\n\x08io_uring\x18\x16 \x01(\x08\x42\x06\xbaH\x03\xc8\x01\x00R\x07ioUring\x12\x45\n\x18io_uring_recv_batch_size\x18\x17 \x01(\rB\r\xbaH\n*\x05\x18\x80 (\x01\xc8\x01\x00R\x14ioUringRecvBatchSize\x12\x43\n\x17io_uring_cqe_batch_size\x18\x18 \x01(\rB\r\xbaH\n*\x05\x18\x80 (\x01\xc8\x01\x00R\x13ioUringCqeBatchSize\x12,\n\x0emax_dump_bytes\x18\x19 \x01(\x04\x42\x06\xbaH\x03\xc8\x01\x00R\x0cmaxDumpBytes\x12\x39\n\x15max_records_per_netns\x18\x1a \x01(\x04\x42\x06\xbaH\x03\xc8\x01\x00R\x12maxRecordsPerNetns\x12\x37\n\x14max_records_per_poll\x18\x1b \x01(\x04\x42\x06\xbaH\x03\xc8\x01\x00R\x11maxRecordsPerPoll\x12K\n\x1cio_uring_sockstat_batch_size\x18\x1c \x01(\rB\x0b\xbaH\x08*\x03\x18\x80\x08\xc8\x01\x00R\x18ioUringSockstatBatchSize\x12\x45\n\x19io_uring_sockstat_workers\x18\x1d \x01(\rB\n\xbaH\x07*\x02\x18@\xc8\x01\x00R\x16ioUringSockstatWorkers\x12W\n\x13reconcile_frequency\x18( \x01(\x0b\x32\x19.google.protobuf.DurationB\x0b\xbaH\x08\xaa\x01\x02\x32\x00\xc8\x01\x00R\x12reconcileFrequency\x12\x32\n\x15reconcile_before_poll\x18) \x01(\x08R\x13reconcileBeforePoll\x12#\n\tmax_netns\x18* \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x08maxNetns\x12S\n\x11reconcile_timeout\x18+ \x01(\x0b\x32\x19.google.protobuf.DurationB\x0b\xbaH\x08\xaa\x01\x02\x32\x00\xc8\x01\x00R\x10reconcileTimeout\x12\x35\n\x13max_netns_per_owner\x18, \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x10maxNetnsPerOwner\x12\x46\n\x1cmax_netns_adds_per_reconcile\x18- \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x18maxNetnsAddsPerReconcile\x12.\n\x0bwrite_files\x18\x32 \x01(\rB\r\xbaH\n*\x05\x18\xe8\x07(\x00\xc8\x01\x00R\nwriteFiles\x12/\n\x0c\x63\x61pture_path\x18\x33 \x01(\tB\x0c\xbaH\tr\x04\x10\x01\x18P\xc8\x01\x00R\x0b\x63\x61pturePath\x12\x37\n\x10\x64\x65st_write_files\x18\x34 \x01(\rB\r\xbaH\n*\x05\x18\xe8\x07(\x00\xc8\x01\x00R\x0e\x64\x65stWriteFiles\x12.\n\x0b\x64\x65\x62ug_level\x18\x35 \x01(\rB\r\xbaH\n*\x05\x18\xe8\x07(\x00\xc8\x01\x01R\ndebugLevel\x12\x31\n\x10\x64\x65\x62ug_prometheus\x18\x36 \x01(\x08\x42\x06\xbaH\x03\xc8\x01\x00R\x0f\x64\x65\x62ugPrometheus\x12!\n\x04\x64\x65st\x18< \x01(\tB\r\xbaH\nr\x05\x10\x04\x18\x80\x04\xc8\x01\x01R\x04\x64\x65st\x12+\n\nmarshal_to\x18= \x01(\tB\x0c\xbaH\tr\x04\x10\x03\x18(\xc8\x01\x01R\tmarshalTo\x12\'\n\x0b\x63sv_columns\x18> \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\ncsvColumns\x12\x34\n\x0fxtcp_proto_file\x18? \x01(\tB\x0c\xbaH\tr\x04\x10\x01\x18P\xc8\x01\x00R\rxtcpProtoFile\x12K\n\x1e\x65nvelope_flush_threshold_bytes\x18@ \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x1b\x65nvelopeFlushThresholdBytes\x12I\n\x1d\x65nvelope_flush_threshold_rows\x18\x41 \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x1a\x65nvelopeFlushThresholdRows\x12\"\n\x05topic\x18P \x01(\tB\x0c\xbaH\tr\x04\x10\x01\x18(\xc8\x01\x00R\x05topic\x12\x36\n\x10kafka_schema_url\x18Q \x01(\tB\x0c\xbaH\tr\x04\x10\x01\x18<\xc8\x01\x00R\x0ekafkaSchemaUrl\x12_\n\x15kafka_produce_timeout\x18R \x01(\x0b\x32\x19.google.protobuf.DurationB\x10\xbaH\r\xaa\x01\x07\"\x03\x08\xd8\x04\x32\x00\xc8\x01\x00R\x13kafkaProduceTimeout\x12\x33\n\x11kafka_compression\x18S \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\x10kafkaCompression\x12\'\n\x0bs3_endpoint\x18\x64 \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\ns3Endpoint\x12#\n\ts3_region\x18\x65 \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\x08s3Region\x12#\n\ts3_bucket\x18\x66 \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\x08s3Bucket\x12#\n\ts3_prefix\x18g \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\x08s3Prefix\x12*\n\rs3_access_key\x18h \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\x0bs3AccessKey\x12*\n\rs3_secret_key\x18i \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\x0bs3SecretKey\x12\x37\n\x14s3_skip_bucket_probe\x18j \x01(\x08\x42\x06\xbaH\x03\xc8\x01\x00R\x11s3SkipBucketProbe\x12\x32\n\x11s3_allow_insecure\x18k \x01(\x08\x42\x06\xbaH\x03\xc8\x01\x00R\x0fs3AllowInsecure\x12)\n\ns3_ca_file\x18l \x01(\tB\x0b\xbaH\x08r\x03\x18\x80 \xc8\x01\x00R\x08s3CaFile\x12N\n s3_parquet_flush_threshold_bytes\x18n \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x1cs3ParquetFlushThresholdBytes\x12R\n\x11s3_flush_interval\x18o \x01(\x0b\x32\x19.google.protobuf.DurationB\x0b\xbaH\x08\xaa\x01\x02\x32\x00\xc8\x01\x00R\x0fs3FlushInterval\x12\x39\n\x13s3_flush_jitter_pct\x18p \x01(\rB\n\xbaH\x07*\x02\x18\x64\xc8\x01\x00R\x10s3FlushJitterPct\x12L\n\x1ds3_flush_threshold_jitter_pct\x18q \x01(\rB\n\xbaH\x07*\x02\x18\x64\xc8\x01\x00R\x19s3FlushThresholdJitterPct\x12\x41\n\x16s3_upload_max_attempts\x18r \x01(\rB\x0c\xbaH\t*\x04\x18\x64(\x01\xc8\x01\x00R\x13s3UploadMaxAttempts\x12Y\n\x15s3_upload_backoff_cap\x18s \x01(\x0b\x32\x19.google.protobuf.DurationB\x0b\xbaH\x08\xaa\x01\x02\x32\x00\xc8\x01\x00R\x12s3UploadBackoffCap\x12\x31\n\x0es3_queue_depth\x18t \x01(\rB\x0b\xbaH\x08*\x03\x18\x80 \xc8\x01\x00R\x0cs3QueueDepth\x12\x39\n\x15s3_max_buffered_bytes\x18u \x01(\x04\x42\x06\xbaH\x03\xc8\x01\x00R\x12s3MaxBufferedBytes\x12G\n\x0cs3_spill_dir\x18v \x01(\tB%\xbaH\"r\x1d\x18\x80 2\x18^[^\\x00-\\x1f\\x7f-\\x9f]*$\xc8\x01\x00R\ns3SpillDir\x12\x33\n\x12s3_spill_max_bytes\x18w \x01(\x04\x42\x06\xbaH\x03\xc8\x01\x00R\x0fs3SpillMaxBytes\x12Y\n\x11tcp_write_timeout\x18x \x01(\x0b\x32\x19.google.protobuf.DurationB\x12\xbaH\x0f\xaa\x01\t\"\x03\x08\x90\x1c\x32\x02\x08\x01\xc8\x01\x00R\x0ftcpWriteTimeout\x12\x33\n\x0ftcp_queue_depth\x18y \x01(\rB\x0b\xbaH\x08*\x03\x18\x80 \xc8\x01\x00R\rtcpQueueDepth\x12;\n\x16tcp_max_buffered_bytes\x18z \x01(\x04\x42\x06\xbaH\x03\xc8\x01\x00R\x13tcpMaxBufferedBytes\x12\x42\n\x08hostname\x18\x82\x01 \x01(\tB%\xbaH\"r\x1d\x18\xfd\x01\x32\x18^[^\\x00-\\x1f\\x7f-\\x9f]*$\xc8\x01\x00R\x08hostname\x12\x42\n\x08location\x18\x83\x01 \x01(\tB%\xbaH\"r\x1d\x18\xfd\x01\x32\x18^[^\\x00-\\x1f\\x7f-\\x9f]*$\xc8\x01\x00R\x08location\x12;\n\x05label\x18\x84\x01 \x01(\tB$\xbaH!r\x1c\x18(2\x18^[^\\x00-\\x1f\\x7f-\\x9f]*$\xc8\x01\x00R\x05label\x12\x37\n\x03tag\x18\x85\x01 \x01(\tB$\xbaH!r\x1c\x18(2\x18^[^\\x00-\\x1f\\x7f-\\x9f]*$\xc8\x01\x00R\x03tag\x12\x33\n\x0e\x64\x61\x65mon_version\x18\x86\x01 \x01(\tB\x0b\xbaH\x08r\x03\x18\xfd\x01\xc8\x01\x00R\rdaemonVersion\x12\'\n\x08ipv4_ttl\x18\x96\x01 \x01(\rB\x0b\xbaH\x08*\x03\x18\xff\x01\xc8\x01\x00R\x07ipv4Ttl\x12\x32\n\x0eipv6_hop_limit\x18\x97\x01 \x01(\rB\x0b\xbaH\x08*\x03\x18\xff\x01\xc8\x01\x00R\x0cipv6HopLimit\x12J\n\rlistener_auth\x18\x98\x01 \x01(\x0b\x32\x1c.xtcp_config.v1.ListenerAuthB\x06\xbaH\x03\xc8\x01\x00R\x0clistenerAuth\x12Z\n\x13prometheus_listener\x18\x99\x01 \x01(\x0b\x32 .xtcp_config.v1.ListenerEndpointB\x06\xbaH\x03\xc8\x01\x00R\x12prometheusListener\x12U\n\x13\x61\x64min_listener_auth\x18\x9a\x01 \x01(\x0b\x32\x1c.xtcp_config.v1.ListenerAuthB\x06\xbaH\x03\xc8\x01\x00R\x11\x61\x64minListenerAuth\x12\'\n\tgrpc_port\x18\xa0\x01 \x01(\rB\t\xbaH\x06*\x04\x18\xff\xff\x03R\x08grpcPort\x12N\n\rgrpc_listener\x18\xa1\x01 \x01(\x0b\x32 .xtcp_config.v1.ListenerEndpointB\x06\xbaH\x03\xc8\x01\x00R\x0cgrpcListener\x12\x41\n\tlisteners\x18\xa2\x01 \x03(\x0b\x32\x18.xtcp_config.v1.ListenerB\x08\xbaH\x05\x92\x01\x02\x10\x10R\tlisteners\x12,\n\rpyroscope_url\x18\xaa\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\x0cpyroscopeUrl\x12\x35\n\x12pyroscope_app_name\x18\xab\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x00R\x10pyroscopeAppName\x12\x37\n\x13pyroscope_sample_hz\x18\xac\x01 \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x11pyroscopeSampleHz\x12J\n\x1dpyroscope_upload_interval_sec\x18\xad\x01 \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x1apyroscopeUploadIntervalSec\x12\x39\n\x14resolve_container_id\x18\xc8\x01 \x01(\x08\x42\x06\xbaH\x03\xc8\x01\x00R\x12resolveContainerId\x12\x37\n\x17\x65nrich_container_enable\x18\xc9\x01 \x01(\x08R\x15\x65nrichContainerEnable\x12\x37\n\x12\x64ocker_socket_path\x18\xca\x01 \x01(\tB\x08\xbaH\x05r\x03\x18\xff\x01R\x10\x64ockerSocketPath\x12-\n\x12\x65nrich_lldp_enable\x18\xd2\x01 \x01(\x08R\x10\x65nrichLldpEnable\x12\x35\n\x11lldpd_socket_path\x18\xd3\x01 \x01(\tB\x08\xbaH\x05r\x03\x18\xff\x01R\x0flldpdSocketPath\x12\x36\n\x12lldpd_version_hint\x18\xd4\x01 \x01(\tB\x07\xbaH\x04r\x02\x18\x10R\x10lldpdVersionHint\x12+\n\x11\x65nrich_nic_enable\x18\xdc\x01 \x01(\x08R\x0f\x65nrichNicEnable\x12+\n\x0cuplink_count\x18\xdd\x01 \x01(\rB\x07\xbaH\x04*\x02\x18\x02R\x0buplinkCount\x12\x36\n\x11uplink_interfaces\x18\xde\x01 \x03(\tB\x08\xbaH\x05\x92\x01\x02\x10\x02R\x10uplinkInterfaces\x12$\n\rpopulate_nsid\x18\xe6\x01 \x01(\x08R\x0cpopulateNsid\x12+\n\x11\x65nrich_asn_enable\x18\xf0\x01 \x01(\x08R\x0f\x65nrichAsnEnable\x12)\n\x0b\x61sn_db_path\x18\xf1\x01 \x01(\tB\x08\xbaH\x05r\x03\x18\xff\x01R\tasnDbPath\x12L\n\x14\x61sn_refresh_interval\x18\xf2\x01 \x01(\x0b\x32\x19.google.protobuf.DurationR\x12\x61snRefreshInterval\x12=\n\x15ipmeta_bootstrap_path\x18\xf3\x01 \x01(\tB\x08\xbaH\x05r\x03\x18\xff\x01R\x13ipmetaBootstrapPath\x12\x35\n\x11ipmeta_cache_path\x18\xf4\x01 \x01(\tB\x08\xbaH\x05r\x03\x18\xff\x01R\x0fipmetaCachePath\x12\x35\n\x16\x65nrich_locality_enable\x18\xf5\x01 \x01(\x08R\x14\x65nrichLocalityEnable\x12V\n\x19locality_refresh_interval\x18\xf6\x01 \x01(\x0b\x32\x19.google.protobuf.DurationR\x17localityRefreshInterval\x12\x35\n\x16locality_events_enable\x18\xf7\x01 \x01(\x08R\x14localityEventsEnable\x12\x45\n\x0clink_monitor\x18\xfa\x01 \x01(\x0b\x32!.xtcp_config.v1.LinkMonitorConfigR\x0blinkMonitor\x12$\n\revents_enable\x18\x84\x02 \x01(\x08R\x0c\x65ventsEnable\x12-\n\x0b\x65vents_dest\x18\x85\x02 \x01(\tB\x0b\xbaH\x08r\x03\x18\x80\x04\xc8\x01\x00R\neventsDest\x12@\n\x18\x65vents_flush_interval_ms\x18\x86\x02 \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x15\x65ventsFlushIntervalMs\x12\x46\n\x1b\x65vents_flush_threshold_rows\x18\x87\x02 \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x18\x65ventsFlushThresholdRows\x12H\n\x1c\x65vents_flush_threshold_bytes\x18\x88\x02 \x01(\rB\x06\xbaH\x03\xc8\x01\x00R\x19\x65ventsFlushThresholdBytes:s\xbaHp\x1an\n\x0fXtcpConfig.poll\x12\x32Poll timeout must be less than poll poll_frequency\x1a\'this.poll_frequency > this.poll_timeout\"\x9f\x01\n\x14\x45nabledDeserializers\x12K\n\x07\x65nabled\x18\x01 \x03(\x0b\x32\x31.xtcp_config.v1.EnabledDeserializers.EnabledEntryR\x07\x65nabled\x1a:\n\x0c\x45nabledEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\x08R\x05value:\x02\x38\x01*h\n\x0fListenerNetwork\x12 \n\x1cLISTENER_NETWORK_UNSPECIFIED\x10\x00\x12\x18\n\x14LISTENER_NETWORK_TCP\x10\x01\x12\x19\n\x15LISTENER_NETWORK_UNIX\x10\x02*\xa1\x01\n\x10ListenerAuthMode\x12\"\n\x1eLISTENER_AUTH_MODE_UNSPECIFIED\x10\x00\x12\x1f\n\x1bLISTENER_AUTH_MODE_DISABLED\x10\x01\x12 \n\x1cLISTENER_AUTH_MODE_RAW_TOKEN\x10\x02\x12&\n\"LISTENER_AUTH_MODE_HMAC_UTC_MINUTE\x10\x03*\xf7\x01\n\rEndpointClass\x12\x1e\n\x1a\x45NDPOINT_CLASS_UNSPECIFIED\x10\x00\x12\x19\n\x15\x45NDPOINT_CLASS_HEALTH\x10\x01\x12\x1a\n\x16\x45NDPOINT_CLASS_METRICS\x10\x02\x12!\n\x1d\x45NDPOINT_CLASS_METRICS_DETAIL\x10\x03\x12\x15\n\x11\x45NDPOINT_CLASS_IP\x10\x04\x12\x18\n\x14\x45NDPOINT_CLASS_DEBUG\x10\x05\x12\x1c\n\x18\x45NDPOINT_CLASS_GRPC_READ\x10\x06\x12\x1d\n\x19\x45NDPOINT_CLASS_GRPC_ADMIN\x10\x07\x32\xa5\x07\n\rConfigService\x12\x61\n\x03Get\x12\x1a.xtcp_config.v1.GetRequest\x1a\x1b.xtcp_config.v1.GetResponse\"!\xc8\xf3\x18\x01\x82\xd3\xe4\x93\x02\x17\x1a\x12/ConfigService/Get:\x01*\x12\x61\n\x03Set\x12\x1a.xtcp_config.v1.SetRequest\x1a\x1b.xtcp_config.v1.SetResponse\"!\xc8\xf3\x18\x02\x82\xd3\xe4\x93\x02\x17\x1a\x12/ConfigService/Set:\x01*\x12\x95\x01\n\x10SetPollFrequency\x12\'.xtcp_config.v1.SetPollFrequencyRequest\x1a(.xtcp_config.v1.SetPollFrequencyResponse\".\xc8\xf3\x18\x02\x82\xd3\xe4\x93\x02$\x1a\x1f/ConfigService/SetPollFrequency:\x01*\x12\x81\x01\n\x0bTriggerPoll\x12\".xtcp_config.v1.TriggerPollRequest\x1a#.xtcp_config.v1.TriggerPollResponse\")\xc8\xf3\x18\x02\x82\xd3\xe4\x93\x02\x1f\x1a\x1a/ConfigService/TriggerPoll:\x01*\x12\x95\x01\n\x10TriggerPollBurst\x12\'.xtcp_config.v1.TriggerPollBurstRequest\x1a(.xtcp_config.v1.TriggerPollBurstResponse\".\xc8\xf3\x18\x02\x82\xd3\xe4\x93\x02$\x1a\x1f/ConfigService/TriggerPollBurst:\x01*\x12\x81\x01\n\x0bSetS3Upload\x12\".xtcp_config.v1.SetS3UploadRequest\x1a#.xtcp_config.v1.SetS3UploadResponse\")\xc8\xf3\x18\x02\x82\xd3\xe4\x93\x02\x1f\x1a\x1a/ConfigService/SetS3Upload:\x01*\x12\x95\x01\n\x10SetEnvelopeFlush\x12\'.xtcp_config.v1.SetEnvelopeFlushRequest\x1a(.xtcp_config.v1.SetEnvelopeFlushResponse\".\xc8\xf3\x18\x02\x82\xd3\xe4\x93\x02$\x1a\x1f/ConfigService/SetEnvelopeFlush:\x01*B\xaf\x01\n\x12\x63om.xtcp_config.v1B\x0fXtcpConfigProtoP\x01Z3github.com/randomizedcoder/xtcp2/gen/go/xtcp_config\xa2\x02\x03XXX\xaa\x02\rXtcpConfig.V1\xca\x02\rXtcpConfig\\V1\xe2\x02\x19XtcpConfig\\V1\\GPBMetadata\xea\x02\x0eXtcpConfig::V1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -318,6 +318,14 @@ _globals['_XTCPCONFIG'].fields_by_name['ipmeta_bootstrap_path']._serialized_options = b'\272H\005r\003\030\377\001' _globals['_XTCPCONFIG'].fields_by_name['ipmeta_cache_path']._loaded_options = None _globals['_XTCPCONFIG'].fields_by_name['ipmeta_cache_path']._serialized_options = b'\272H\005r\003\030\377\001' + _globals['_XTCPCONFIG'].fields_by_name['events_dest']._loaded_options = None + _globals['_XTCPCONFIG'].fields_by_name['events_dest']._serialized_options = b'\272H\010r\003\030\200\004\310\001\000' + _globals['_XTCPCONFIG'].fields_by_name['events_flush_interval_ms']._loaded_options = None + _globals['_XTCPCONFIG'].fields_by_name['events_flush_interval_ms']._serialized_options = b'\272H\003\310\001\000' + _globals['_XTCPCONFIG'].fields_by_name['events_flush_threshold_rows']._loaded_options = None + _globals['_XTCPCONFIG'].fields_by_name['events_flush_threshold_rows']._serialized_options = b'\272H\003\310\001\000' + _globals['_XTCPCONFIG'].fields_by_name['events_flush_threshold_bytes']._loaded_options = None + _globals['_XTCPCONFIG'].fields_by_name['events_flush_threshold_bytes']._serialized_options = b'\272H\003\310\001\000' _globals['_XTCPCONFIG']._loaded_options = None _globals['_XTCPCONFIG']._serialized_options = b'\272Hp\032n\n\017XtcpConfig.poll\0222Poll timeout must be less than poll poll_frequency\032\'this.poll_frequency > this.poll_timeout' _globals['_ENABLEDDESERIALIZERS_ENABLEDENTRY']._loaded_options = None @@ -336,12 +344,12 @@ _globals['_CONFIGSERVICE'].methods_by_name['SetS3Upload']._serialized_options = b'\310\363\030\002\202\323\344\223\002\037\032\032/ConfigService/SetS3Upload:\001*' _globals['_CONFIGSERVICE'].methods_by_name['SetEnvelopeFlush']._loaded_options = None _globals['_CONFIGSERVICE'].methods_by_name['SetEnvelopeFlush']._serialized_options = b'\310\363\030\002\202\323\344\223\002$\032\037/ConfigService/SetEnvelopeFlush:\001*' - _globals['_LISTENERNETWORK']._serialized_start=11447 - _globals['_LISTENERNETWORK']._serialized_end=11551 - _globals['_LISTENERAUTHMODE']._serialized_start=11554 - _globals['_LISTENERAUTHMODE']._serialized_end=11715 - _globals['_ENDPOINTCLASS']._serialized_start=11718 - _globals['_ENDPOINTCLASS']._serialized_end=11965 + _globals['_LISTENERNETWORK']._serialized_start=11744 + _globals['_LISTENERNETWORK']._serialized_end=11848 + _globals['_LISTENERAUTHMODE']._serialized_start=11851 + _globals['_LISTENERAUTHMODE']._serialized_end=12012 + _globals['_ENDPOINTCLASS']._serialized_start=12015 + _globals['_ENDPOINTCLASS']._serialized_end=12262 _globals['_GETREQUEST']._serialized_start=173 _globals['_GETREQUEST']._serialized_end=185 _globals['_GETRESPONSE']._serialized_start=187 @@ -379,11 +387,11 @@ _globals['_LINKMONITORCONFIG']._serialized_start=3452 _globals['_LINKMONITORCONFIG']._serialized_end=5270 _globals['_XTCPCONFIG']._serialized_start=5273 - _globals['_XTCPCONFIG']._serialized_end=11283 - _globals['_ENABLEDDESERIALIZERS']._serialized_start=11286 - _globals['_ENABLEDDESERIALIZERS']._serialized_end=11445 - _globals['_ENABLEDDESERIALIZERS_ENABLEDENTRY']._serialized_start=11387 - _globals['_ENABLEDDESERIALIZERS_ENABLEDENTRY']._serialized_end=11445 - _globals['_CONFIGSERVICE']._serialized_start=11968 - _globals['_CONFIGSERVICE']._serialized_end=12901 + _globals['_XTCPCONFIG']._serialized_end=11580 + _globals['_ENABLEDDESERIALIZERS']._serialized_start=11583 + _globals['_ENABLEDDESERIALIZERS']._serialized_end=11742 + _globals['_ENABLEDDESERIALIZERS_ENABLEDENTRY']._serialized_start=11684 + _globals['_ENABLEDDESERIALIZERS_ENABLEDENTRY']._serialized_end=11742 + _globals['_CONFIGSERVICE']._serialized_start=12265 + _globals['_CONFIGSERVICE']._serialized_end=13198 # @@protoc_insertion_point(module_scope) diff --git a/gen/python/xtcp_config/v1/xtcp_config_pb2.pyi b/gen/python/xtcp_config/v1/xtcp_config_pb2.pyi index 362ff1d6d..169f466b4 100644 --- a/gen/python/xtcp_config/v1/xtcp_config_pb2.pyi +++ b/gen/python/xtcp_config/v1/xtcp_config_pb2.pyi @@ -253,7 +253,7 @@ class LinkMonitorConfig(_message.Message): def __init__(self, enable: _Optional[bool] = ..., baseline_file: _Optional[str] = ..., settle: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., resync: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., stats_interval: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., stats_include: _Optional[str] = ..., stats_exclude: _Optional[str] = ..., netstat_fields: _Optional[str] = ..., max_speed_exceptions: _Optional[_Iterable[str]] = ..., metrics_core_include: _Optional[str] = ..., metrics_core_exclude: _Optional[str] = ..., metrics_all: _Optional[bool] = ..., collection_mode: _Optional[str] = ..., watch_interval: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., slow_interval: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., on_demand_ttl: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., on_demand_wait: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., error_window: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., flap_window: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., error_classes: _Optional[str] = ..., error_exclude: _Optional[str] = ..., metrics_categories: _Optional[str] = ..., metrics_interface_paths: _Optional[bool] = ..., metrics_all_path: _Optional[str] = ..., ip_paths: _Optional[bool] = ..., ip_max_bytes: _Optional[int] = ..., ip_listen: _Optional[str] = ..., learn_deadline: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ...) -> None: ... class XtcpConfig(_message.Message): - __slots__ = ("nl_timeout_milliseconds", "poll_frequency", "poll_timeout", "poll_jitter_pct", "max_loops", "netlinkers", "netlinkers_done_chan_size", "nlmsg_seq", "packet_size", "packet_size_mply", "modulus", "enabled_deserializers", "io_uring", "io_uring_recv_batch_size", "io_uring_cqe_batch_size", "max_dump_bytes", "max_records_per_netns", "max_records_per_poll", "io_uring_sockstat_batch_size", "io_uring_sockstat_workers", "reconcile_frequency", "reconcile_before_poll", "max_netns", "reconcile_timeout", "max_netns_per_owner", "max_netns_adds_per_reconcile", "write_files", "capture_path", "dest_write_files", "debug_level", "debug_prometheus", "dest", "marshal_to", "csv_columns", "xtcp_proto_file", "envelope_flush_threshold_bytes", "envelope_flush_threshold_rows", "topic", "kafka_schema_url", "kafka_produce_timeout", "kafka_compression", "s3_endpoint", "s3_region", "s3_bucket", "s3_prefix", "s3_access_key", "s3_secret_key", "s3_skip_bucket_probe", "s3_allow_insecure", "s3_ca_file", "s3_parquet_flush_threshold_bytes", "s3_flush_interval", "s3_flush_jitter_pct", "s3_flush_threshold_jitter_pct", "s3_upload_max_attempts", "s3_upload_backoff_cap", "s3_queue_depth", "s3_max_buffered_bytes", "s3_spill_dir", "s3_spill_max_bytes", "tcp_write_timeout", "tcp_queue_depth", "tcp_max_buffered_bytes", "hostname", "location", "label", "tag", "daemon_version", "ipv4_ttl", "ipv6_hop_limit", "listener_auth", "prometheus_listener", "admin_listener_auth", "grpc_port", "grpc_listener", "listeners", "pyroscope_url", "pyroscope_app_name", "pyroscope_sample_hz", "pyroscope_upload_interval_sec", "resolve_container_id", "enrich_container_enable", "docker_socket_path", "enrich_lldp_enable", "lldpd_socket_path", "lldpd_version_hint", "enrich_nic_enable", "uplink_count", "uplink_interfaces", "populate_nsid", "enrich_asn_enable", "asn_db_path", "asn_refresh_interval", "ipmeta_bootstrap_path", "ipmeta_cache_path", "enrich_locality_enable", "locality_refresh_interval", "locality_events_enable", "link_monitor") + __slots__ = ("nl_timeout_milliseconds", "poll_frequency", "poll_timeout", "poll_jitter_pct", "max_loops", "netlinkers", "netlinkers_done_chan_size", "nlmsg_seq", "packet_size", "packet_size_mply", "modulus", "enabled_deserializers", "io_uring", "io_uring_recv_batch_size", "io_uring_cqe_batch_size", "max_dump_bytes", "max_records_per_netns", "max_records_per_poll", "io_uring_sockstat_batch_size", "io_uring_sockstat_workers", "reconcile_frequency", "reconcile_before_poll", "max_netns", "reconcile_timeout", "max_netns_per_owner", "max_netns_adds_per_reconcile", "write_files", "capture_path", "dest_write_files", "debug_level", "debug_prometheus", "dest", "marshal_to", "csv_columns", "xtcp_proto_file", "envelope_flush_threshold_bytes", "envelope_flush_threshold_rows", "topic", "kafka_schema_url", "kafka_produce_timeout", "kafka_compression", "s3_endpoint", "s3_region", "s3_bucket", "s3_prefix", "s3_access_key", "s3_secret_key", "s3_skip_bucket_probe", "s3_allow_insecure", "s3_ca_file", "s3_parquet_flush_threshold_bytes", "s3_flush_interval", "s3_flush_jitter_pct", "s3_flush_threshold_jitter_pct", "s3_upload_max_attempts", "s3_upload_backoff_cap", "s3_queue_depth", "s3_max_buffered_bytes", "s3_spill_dir", "s3_spill_max_bytes", "tcp_write_timeout", "tcp_queue_depth", "tcp_max_buffered_bytes", "hostname", "location", "label", "tag", "daemon_version", "ipv4_ttl", "ipv6_hop_limit", "listener_auth", "prometheus_listener", "admin_listener_auth", "grpc_port", "grpc_listener", "listeners", "pyroscope_url", "pyroscope_app_name", "pyroscope_sample_hz", "pyroscope_upload_interval_sec", "resolve_container_id", "enrich_container_enable", "docker_socket_path", "enrich_lldp_enable", "lldpd_socket_path", "lldpd_version_hint", "enrich_nic_enable", "uplink_count", "uplink_interfaces", "populate_nsid", "enrich_asn_enable", "asn_db_path", "asn_refresh_interval", "ipmeta_bootstrap_path", "ipmeta_cache_path", "enrich_locality_enable", "locality_refresh_interval", "locality_events_enable", "link_monitor", "events_enable", "events_dest", "events_flush_interval_ms", "events_flush_threshold_rows", "events_flush_threshold_bytes") NL_TIMEOUT_MILLISECONDS_FIELD_NUMBER: _ClassVar[int] POLL_FREQUENCY_FIELD_NUMBER: _ClassVar[int] POLL_TIMEOUT_FIELD_NUMBER: _ClassVar[int] @@ -353,6 +353,11 @@ class XtcpConfig(_message.Message): LOCALITY_REFRESH_INTERVAL_FIELD_NUMBER: _ClassVar[int] LOCALITY_EVENTS_ENABLE_FIELD_NUMBER: _ClassVar[int] LINK_MONITOR_FIELD_NUMBER: _ClassVar[int] + EVENTS_ENABLE_FIELD_NUMBER: _ClassVar[int] + EVENTS_DEST_FIELD_NUMBER: _ClassVar[int] + EVENTS_FLUSH_INTERVAL_MS_FIELD_NUMBER: _ClassVar[int] + EVENTS_FLUSH_THRESHOLD_ROWS_FIELD_NUMBER: _ClassVar[int] + EVENTS_FLUSH_THRESHOLD_BYTES_FIELD_NUMBER: _ClassVar[int] nl_timeout_milliseconds: int poll_frequency: _duration_pb2.Duration poll_timeout: _duration_pb2.Duration @@ -452,7 +457,12 @@ class XtcpConfig(_message.Message): locality_refresh_interval: _duration_pb2.Duration locality_events_enable: bool link_monitor: LinkMonitorConfig - def __init__(self, nl_timeout_milliseconds: _Optional[int] = ..., poll_frequency: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., poll_timeout: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., poll_jitter_pct: _Optional[int] = ..., max_loops: _Optional[int] = ..., netlinkers: _Optional[int] = ..., netlinkers_done_chan_size: _Optional[int] = ..., nlmsg_seq: _Optional[int] = ..., packet_size: _Optional[int] = ..., packet_size_mply: _Optional[int] = ..., modulus: _Optional[int] = ..., enabled_deserializers: _Optional[_Union[EnabledDeserializers, _Mapping]] = ..., io_uring: _Optional[bool] = ..., io_uring_recv_batch_size: _Optional[int] = ..., io_uring_cqe_batch_size: _Optional[int] = ..., max_dump_bytes: _Optional[int] = ..., max_records_per_netns: _Optional[int] = ..., max_records_per_poll: _Optional[int] = ..., io_uring_sockstat_batch_size: _Optional[int] = ..., io_uring_sockstat_workers: _Optional[int] = ..., reconcile_frequency: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., reconcile_before_poll: _Optional[bool] = ..., max_netns: _Optional[int] = ..., reconcile_timeout: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., max_netns_per_owner: _Optional[int] = ..., max_netns_adds_per_reconcile: _Optional[int] = ..., write_files: _Optional[int] = ..., capture_path: _Optional[str] = ..., dest_write_files: _Optional[int] = ..., debug_level: _Optional[int] = ..., debug_prometheus: _Optional[bool] = ..., dest: _Optional[str] = ..., marshal_to: _Optional[str] = ..., csv_columns: _Optional[str] = ..., xtcp_proto_file: _Optional[str] = ..., envelope_flush_threshold_bytes: _Optional[int] = ..., envelope_flush_threshold_rows: _Optional[int] = ..., topic: _Optional[str] = ..., kafka_schema_url: _Optional[str] = ..., kafka_produce_timeout: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., kafka_compression: _Optional[str] = ..., s3_endpoint: _Optional[str] = ..., s3_region: _Optional[str] = ..., s3_bucket: _Optional[str] = ..., s3_prefix: _Optional[str] = ..., s3_access_key: _Optional[str] = ..., s3_secret_key: _Optional[str] = ..., s3_skip_bucket_probe: _Optional[bool] = ..., s3_allow_insecure: _Optional[bool] = ..., s3_ca_file: _Optional[str] = ..., s3_parquet_flush_threshold_bytes: _Optional[int] = ..., s3_flush_interval: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., s3_flush_jitter_pct: _Optional[int] = ..., s3_flush_threshold_jitter_pct: _Optional[int] = ..., s3_upload_max_attempts: _Optional[int] = ..., s3_upload_backoff_cap: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., s3_queue_depth: _Optional[int] = ..., s3_max_buffered_bytes: _Optional[int] = ..., s3_spill_dir: _Optional[str] = ..., s3_spill_max_bytes: _Optional[int] = ..., tcp_write_timeout: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., tcp_queue_depth: _Optional[int] = ..., tcp_max_buffered_bytes: _Optional[int] = ..., hostname: _Optional[str] = ..., location: _Optional[str] = ..., label: _Optional[str] = ..., tag: _Optional[str] = ..., daemon_version: _Optional[str] = ..., ipv4_ttl: _Optional[int] = ..., ipv6_hop_limit: _Optional[int] = ..., listener_auth: _Optional[_Union[ListenerAuth, _Mapping]] = ..., prometheus_listener: _Optional[_Union[ListenerEndpoint, _Mapping]] = ..., admin_listener_auth: _Optional[_Union[ListenerAuth, _Mapping]] = ..., grpc_port: _Optional[int] = ..., grpc_listener: _Optional[_Union[ListenerEndpoint, _Mapping]] = ..., listeners: _Optional[_Iterable[_Union[Listener, _Mapping]]] = ..., pyroscope_url: _Optional[str] = ..., pyroscope_app_name: _Optional[str] = ..., pyroscope_sample_hz: _Optional[int] = ..., pyroscope_upload_interval_sec: _Optional[int] = ..., resolve_container_id: _Optional[bool] = ..., enrich_container_enable: _Optional[bool] = ..., docker_socket_path: _Optional[str] = ..., enrich_lldp_enable: _Optional[bool] = ..., lldpd_socket_path: _Optional[str] = ..., lldpd_version_hint: _Optional[str] = ..., enrich_nic_enable: _Optional[bool] = ..., uplink_count: _Optional[int] = ..., uplink_interfaces: _Optional[_Iterable[str]] = ..., populate_nsid: _Optional[bool] = ..., enrich_asn_enable: _Optional[bool] = ..., asn_db_path: _Optional[str] = ..., asn_refresh_interval: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., ipmeta_bootstrap_path: _Optional[str] = ..., ipmeta_cache_path: _Optional[str] = ..., enrich_locality_enable: _Optional[bool] = ..., locality_refresh_interval: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., locality_events_enable: _Optional[bool] = ..., link_monitor: _Optional[_Union[LinkMonitorConfig, _Mapping]] = ...) -> None: ... + events_enable: bool + events_dest: str + events_flush_interval_ms: int + events_flush_threshold_rows: int + events_flush_threshold_bytes: int + def __init__(self, nl_timeout_milliseconds: _Optional[int] = ..., poll_frequency: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., poll_timeout: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., poll_jitter_pct: _Optional[int] = ..., max_loops: _Optional[int] = ..., netlinkers: _Optional[int] = ..., netlinkers_done_chan_size: _Optional[int] = ..., nlmsg_seq: _Optional[int] = ..., packet_size: _Optional[int] = ..., packet_size_mply: _Optional[int] = ..., modulus: _Optional[int] = ..., enabled_deserializers: _Optional[_Union[EnabledDeserializers, _Mapping]] = ..., io_uring: _Optional[bool] = ..., io_uring_recv_batch_size: _Optional[int] = ..., io_uring_cqe_batch_size: _Optional[int] = ..., max_dump_bytes: _Optional[int] = ..., max_records_per_netns: _Optional[int] = ..., max_records_per_poll: _Optional[int] = ..., io_uring_sockstat_batch_size: _Optional[int] = ..., io_uring_sockstat_workers: _Optional[int] = ..., reconcile_frequency: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., reconcile_before_poll: _Optional[bool] = ..., max_netns: _Optional[int] = ..., reconcile_timeout: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., max_netns_per_owner: _Optional[int] = ..., max_netns_adds_per_reconcile: _Optional[int] = ..., write_files: _Optional[int] = ..., capture_path: _Optional[str] = ..., dest_write_files: _Optional[int] = ..., debug_level: _Optional[int] = ..., debug_prometheus: _Optional[bool] = ..., dest: _Optional[str] = ..., marshal_to: _Optional[str] = ..., csv_columns: _Optional[str] = ..., xtcp_proto_file: _Optional[str] = ..., envelope_flush_threshold_bytes: _Optional[int] = ..., envelope_flush_threshold_rows: _Optional[int] = ..., topic: _Optional[str] = ..., kafka_schema_url: _Optional[str] = ..., kafka_produce_timeout: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., kafka_compression: _Optional[str] = ..., s3_endpoint: _Optional[str] = ..., s3_region: _Optional[str] = ..., s3_bucket: _Optional[str] = ..., s3_prefix: _Optional[str] = ..., s3_access_key: _Optional[str] = ..., s3_secret_key: _Optional[str] = ..., s3_skip_bucket_probe: _Optional[bool] = ..., s3_allow_insecure: _Optional[bool] = ..., s3_ca_file: _Optional[str] = ..., s3_parquet_flush_threshold_bytes: _Optional[int] = ..., s3_flush_interval: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., s3_flush_jitter_pct: _Optional[int] = ..., s3_flush_threshold_jitter_pct: _Optional[int] = ..., s3_upload_max_attempts: _Optional[int] = ..., s3_upload_backoff_cap: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., s3_queue_depth: _Optional[int] = ..., s3_max_buffered_bytes: _Optional[int] = ..., s3_spill_dir: _Optional[str] = ..., s3_spill_max_bytes: _Optional[int] = ..., tcp_write_timeout: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., tcp_queue_depth: _Optional[int] = ..., tcp_max_buffered_bytes: _Optional[int] = ..., hostname: _Optional[str] = ..., location: _Optional[str] = ..., label: _Optional[str] = ..., tag: _Optional[str] = ..., daemon_version: _Optional[str] = ..., ipv4_ttl: _Optional[int] = ..., ipv6_hop_limit: _Optional[int] = ..., listener_auth: _Optional[_Union[ListenerAuth, _Mapping]] = ..., prometheus_listener: _Optional[_Union[ListenerEndpoint, _Mapping]] = ..., admin_listener_auth: _Optional[_Union[ListenerAuth, _Mapping]] = ..., grpc_port: _Optional[int] = ..., grpc_listener: _Optional[_Union[ListenerEndpoint, _Mapping]] = ..., listeners: _Optional[_Iterable[_Union[Listener, _Mapping]]] = ..., pyroscope_url: _Optional[str] = ..., pyroscope_app_name: _Optional[str] = ..., pyroscope_sample_hz: _Optional[int] = ..., pyroscope_upload_interval_sec: _Optional[int] = ..., resolve_container_id: _Optional[bool] = ..., enrich_container_enable: _Optional[bool] = ..., docker_socket_path: _Optional[str] = ..., enrich_lldp_enable: _Optional[bool] = ..., lldpd_socket_path: _Optional[str] = ..., lldpd_version_hint: _Optional[str] = ..., enrich_nic_enable: _Optional[bool] = ..., uplink_count: _Optional[int] = ..., uplink_interfaces: _Optional[_Iterable[str]] = ..., populate_nsid: _Optional[bool] = ..., enrich_asn_enable: _Optional[bool] = ..., asn_db_path: _Optional[str] = ..., asn_refresh_interval: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., ipmeta_bootstrap_path: _Optional[str] = ..., ipmeta_cache_path: _Optional[str] = ..., enrich_locality_enable: _Optional[bool] = ..., locality_refresh_interval: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., locality_events_enable: _Optional[bool] = ..., link_monitor: _Optional[_Union[LinkMonitorConfig, _Mapping]] = ..., events_enable: _Optional[bool] = ..., events_dest: _Optional[str] = ..., events_flush_interval_ms: _Optional[int] = ..., events_flush_threshold_rows: _Optional[int] = ..., events_flush_threshold_bytes: _Optional[int] = ...) -> None: ... class EnabledDeserializers(_message.Message): __slots__ = ("enabled",) diff --git a/pkg/recordfmt/delimited.go b/pkg/recordfmt/delimited.go new file mode 100644 index 000000000..1e4385f37 --- /dev/null +++ b/pkg/recordfmt/delimited.go @@ -0,0 +1,54 @@ +package recordfmt + +// Length-delimited protobuf framing, generic over the message: the +// ProtobufList wire ClickHouse reads (varint(size) || bytes). The record +// path's Envelope encoding (AppendEnvelopeProtobufList) is the established +// consumer; the events exporter (pkg/xtcp/events_export.go) needs the same +// framing for its own Envelope type, so the pair lives here once. + +import ( + "fmt" + "slices" + + "google.golang.org/protobuf/encoding/protowire" +) + +// vtSized is the vtprotobuf pair the delimited encoding needs. Every +// generated message under gen/go has it (the vtproto plugin's SizeVT and +// MarshalToSizedBufferVT). +type vtSized interface { + SizeVT() int + MarshalToSizedBufferVT([]byte) (int, error) +} + +// AppendDelimited appends the length-delimited protobuf encoding of msg — +// varint(size) || bytes — to dst and returns the extended slice. The +// events exporter uses it for its Envelope; the record path's +// AppendEnvelopeProtobufList (marshal_envelope.go) delegates here. Pass +// nil for a fresh allocation, or dst[:0] to reuse a buffer. +func AppendDelimited[T vtSized](dst []byte, msg T) ([]byte, error) { + size := msg.SizeVT() + dst = protowire.AppendVarint(dst, uint64(size)) + n := len(dst) + dst = slices.Grow(dst, size)[:n+size] + if _, err := msg.MarshalToSizedBufferVT(dst[n : n+size]); err != nil { + return dst[:n], fmt.Errorf("recordfmt: MarshalToSizedBufferVT: %w", err) + } + return dst[:n+size], nil +} + +// NextDelimited reads one length-delimited message back off src: the bytes +// of one varint-framed message plus everything after it. The reader a +// destination file's consumer walks; AppendDelimited's inverse. An empty or +// truncated src is an error, never a silent short read — a consumer that +// needs to tolerate a torn final message checks len(src) first. +func NextDelimited(src []byte) (msg []byte, rest []byte, err error) { + size, n := protowire.ConsumeVarint(src) + if n <= 0 { + return nil, nil, fmt.Errorf("recordfmt: NextDelimited: no varint at head of %d bytes", len(src)) + } + if n+int(size) > len(src) { + return nil, nil, fmt.Errorf("recordfmt: NextDelimited: message %d bytes past end (have %d)", size, len(src)-n) + } + return src[n : n+int(size)], src[n+int(size):], nil +} diff --git a/pkg/recordfmt/delimited_test.go b/pkg/recordfmt/delimited_test.go new file mode 100644 index 000000000..5c1dce0b6 --- /dev/null +++ b/pkg/recordfmt/delimited_test.go @@ -0,0 +1,97 @@ +package recordfmt + +// The generic delimited pair (AppendDelimited/NextDelimited): the +// ProtobufList wire ClickHouse reads, over both the record's and the +// events' Envelope types — varint(size) || bytes, and the reader that +// walks a destination file back. The record's framing was verified against +// ClickHouse's own artifacts (proto/clickhouse_protolist); this pins the +// generic pair to the same bytes and the read-back. + +import ( + "testing" + + "github.com/randomizedcoder/xtcp2/gen/go/xtcp_flat_record" + "github.com/randomizedcoder/xtcp2/gen/go/xtcp_netlink_events" +) + +func TestDelimitedRoundTrip(t *testing.T) { + t.Run("positive: the record's Envelope, two messages in one buffer", func(t *testing.T) { + var buf []byte + want := []*xtcp_flat_record.Envelope{ + {Row: []*xtcp_flat_record.XtcpFlatRecord{{Hostname: "a"}, {Hostname: "b"}}}, + {Row: []*xtcp_flat_record.XtcpFlatRecord{{Hostname: "c"}}}, + } + for _, e := range want { + var err error + buf, err = AppendDelimited(buf, e) + if err != nil { + t.Fatalf("append: %v", err) + } + } + rest := buf + for i, e := range want { + msg, next, err := NextDelimited(rest) + if err != nil { + t.Fatalf("read %d: %v", i, err) + } + got := &xtcp_flat_record.Envelope{} + if err := got.UnmarshalVT(msg); err != nil { + t.Fatalf("read %d: %v", i, err) + } + if got.Row[0].Hostname != e.Row[0].Hostname { + t.Fatalf("read %d: hostname %q, want %q", i, got.Row[0].Hostname, e.Row[0].Hostname) + } + rest = next + } + if len(rest) != 0 { + t.Fatalf("%d bytes left over after the last message", len(rest)) + } + }) + + t.Run("positive: the events' Envelope (the exporter's type)", func(t *testing.T) { + var buf []byte + want := []*xtcp_netlink_events.Envelope{ + {Row: []*xtcp_netlink_events.NetlinkEvent{{Netns: "pod-abc", NlmsgSeq: 1}}}, + {Row: []*xtcp_netlink_events.NetlinkEvent{{Netns: "netns:[42]", NlmsgSeq: 2}}}, + } + for _, e := range want { + var err error + buf, err = AppendDelimited(buf, e) + if err != nil { + t.Fatalf("append: %v", err) + } + } + rest := buf + for i, e := range want { + msg, next, err := NextDelimited(rest) + if err != nil { + t.Fatalf("read %d: %v", i, err) + } + got := &xtcp_netlink_events.Envelope{} + if err := got.UnmarshalVT(msg); err != nil { + t.Fatalf("read %d: %v", i, err) + } + if got.Row[0].Netns != e.Row[0].Netns || got.Row[0].NlmsgSeq != e.Row[0].NlmsgSeq { + t.Fatalf("read %d: %v, want %v", i, got.Row[0], e.Row[0]) + } + rest = next + } + if len(rest) != 0 { + t.Fatalf("%d bytes left over after the last message", len(rest)) + } + }) + + t.Run("boundary: an empty message is a valid delimiter payload", func(t *testing.T) { + buf, err := AppendDelimited(nil, &xtcp_netlink_events.Envelope{}) + if err != nil { + t.Fatalf("append: %v", err) + } + msg, rest, err := NextDelimited(buf) + if err != nil { + t.Fatalf("read: %v", err) + } + if len(msg) != 0 || len(rest) != 0 { + t.Fatalf("empty message round trip: msg %d bytes, rest %d bytes", len(msg), len(rest)) + } + }) +} diff --git a/pkg/recordfmt/marshal_envelope.go b/pkg/recordfmt/marshal_envelope.go index ddc0cb944..7927f04f6 100644 --- a/pkg/recordfmt/marshal_envelope.go +++ b/pkg/recordfmt/marshal_envelope.go @@ -4,13 +4,11 @@ import ( "bytes" "encoding/csv" "fmt" - "slices" "github.com/randomizedcoder/xtcp2/gen/go/xtcp_flat_record" msgpack "github.com/vmihailenco/msgpack/v5" "google.golang.org/protobuf/encoding/protojson" "google.golang.org/protobuf/encoding/prototext" - "google.golang.org/protobuf/encoding/protowire" ) // Framing note: the text/line formats below terminate their output with a @@ -29,19 +27,12 @@ func MarshalEnvelopeProtobufList(e *xtcp_flat_record.Envelope) ([]byte, error) { // dst and returns the extended slice. Lets a caller reuse a pooled buffer // (pass dst[:0]) on a hot path; pass nil for a fresh allocation. // -// Uses vtprotobuf's reflection-free SizeVT/MarshalToSizedBufferVT: write the -// varint length prefix, grow dst by exactly that many bytes, then marshal the -// Envelope into the tail in place. The output is identical to the protobuf -// runtime's length-delimited encoding (the ClickHouse ProtobufList contract). +// The framing is the generic delimited pair (delimited.go): vtprotobuf's +// reflection-free SizeVT/MarshalToSizedBufferVT write the varint length +// prefix, then the Envelope bytes — identical to the protobuf runtime's +// length-delimited encoding (the ClickHouse ProtobufList contract). func AppendEnvelopeProtobufList(dst []byte, e *xtcp_flat_record.Envelope) ([]byte, error) { - size := e.SizeVT() - dst = protowire.AppendVarint(dst, uint64(size)) - n := len(dst) - dst = slices.Grow(dst, size)[:n+size] - if _, err := e.MarshalToSizedBufferVT(dst[n : n+size]); err != nil { - return dst[:n], fmt.Errorf("recordfmt: Envelope.MarshalToSizedBufferVT: %w", err) - } - return dst, nil + return AppendDelimited(dst, e) } // MarshalEnvelopeJSON encodes the whole Envelope as one compact JSON object, diff --git a/pkg/rtnlmon/rtnlmon_hdr_test.go b/pkg/rtnlmon/rtnlmon_hdr_test.go new file mode 100644 index 000000000..c7b9126f8 --- /dev/null +++ b/pkg/rtnlmon/rtnlmon_hdr_test.go @@ -0,0 +1,161 @@ +package rtnlmon + +// The HandlerHdr dispatch: Run hands a header-carrying consumer the +// notification's own nlmsghdr — the type, flags, sequence and pid the +// kernel sent — instead of the plain Event. The header fields are the ones +// the events export (pkg/xtcp/events_export.go) wraps; this pins that they +// survive the interface, byte for byte, and that the rule groups are valid +// but contribute no snapshot dump. + +import ( + "context" + "encoding/binary" + "errors" + "testing" + + "golang.org/x/sys/unix" + + "github.com/randomizedcoder/xtcp2/pkg/xtcpnl" +) + +// hdrRecorder records each EventHdr call: the header and the event, plus a +// flag proving Event itself never ran. +type hdrRecorder struct { + log *[]string + hdrs []xtcpnl.NlMsgHdr + sawEv bool +} + +func (r *hdrRecorder) Snapshot(_ Snapshot, reason Reason) error { + *r.log = append(*r.log, "snapshot "+reason.String()) + return nil +} + +func (r *hdrRecorder) Event(ev any) error { + r.sawEv = true + *r.log = append(*r.log, "event "+describe(ev)) + return nil +} + +func (r *hdrRecorder) EventHdr(hdr xtcpnl.NlMsgHdr, ev any) error { + r.hdrs = append(r.hdrs, hdr) + *r.log = append(*r.log, "eventhdr "+describe(ev)) + return nil +} + +// retag rewrites d's nlmsghdr flags, seq and pid in place: distinctive +// values the test can demand back, proving the handler saw the kernel's +// header and not a zero-valued struct. +func retag(t *testing.T, d []byte, flags uint16, seq, pid uint32) { + t.Helper() + if len(d) < xtcpnl.NlMsgHdrSizeCst { + t.Fatalf("datagram %d bytes < header %d", len(d), xtcpnl.NlMsgHdrSizeCst) + } + binary.LittleEndian.PutUint16(d[6:8], flags) + binary.LittleEndian.PutUint32(d[8:12], seq) + binary.LittleEndian.PutUint32(d[12:16], pid) +} + +func TestRunHandlerHdr(t *testing.T) { + link := datagrams(t, tdLink) + // NLM_F_ECHO (0x0008): distinctive yet still a notification — + // WalkNotifications drops REQUEST|MULTI-flagged messages, so those bits + // must stay clear (IsRtnetlinkNotification's documented trap). + retag(t, link[0], unix.NLM_F_ECHO, 0x6b03d2bc, 725) + retag(t, link[1], 0, 42, 1) + + for _, row := range []struct { + description string + hdr bool + expected []string + }{ + { + description: "positive: HandlerHdr dispatches through EventHdr with the header", + hdr: true, + expected: []string{"snapshot start", "eventhdr link add 3", "eventhdr link add 3"}, + }, + { + description: "positive: a plain Handler still dispatches through Event", + expected: []string{"snapshot start", "event link add 3", "event link add 3"}, + }, + } { + t.Run(row.description, func(t *testing.T) { + ctx, cancel := context.WithCancel(context.Background()) + var log []string + var h Handler + var hr *hdrRecorder + if row.hdr { + hr = &hdrRecorder{log: &log} + h = hr + } else { + h = recorder{log: &log} + } + conn := &fakeConn{items: items([][]byte{link[0], link[1]}, false), log: &log, cancel: cancel, t: t} + dump := func(context.Context) (Snapshot, error) { return Snapshot{}, nil } + err := run(ctx, conn, dump, defaultConfig(), h) + if !errors.Is(err, context.Canceled) { + t.Fatalf("run: %v", err) + } + if len(log) != len(row.expected) { + t.Fatalf("log = %v, want %v", log, row.expected) + } + for i := range log { + if log[i] != row.expected[i] { + t.Fatalf("log[%d] = %q, want %q (log %v)", i, log[i], row.expected[i], log) + } + } + if hr != nil { + if hr.sawEv { + t.Error("Event ran for a HandlerHdr consumer — run must dispatch through EventHdr") + } + wantHdrs := []struct { + flags uint16 + seq, pid uint32 + }{ + {unix.NLM_F_ECHO, 0x6b03d2bc, 725}, {0, 42, 1}, + } + if len(hr.hdrs) != len(wantHdrs) { + t.Fatalf("captured %d headers, want %d", len(hr.hdrs), len(wantHdrs)) + } + for i, w := range wantHdrs { + g := hr.hdrs[i] + if g.Flags != w.flags || g.Seq != w.seq || g.Pid != w.pid { + t.Errorf("hdr[%d] = flags %#x seq %d pid %d, want %#x %d %d", i, g.Flags, g.Seq, g.Pid, w.flags, w.seq, w.pid) + } + if g.Type != unix.RTM_NEWLINK && g.Type != unix.RTM_DELLINK { + t.Errorf("hdr[%d] type = %d, want RTM_NEWLINK/DELLINK", i, g.Type) + } + } + } + }) + } +} + +func TestPlanDumpsRuleGroups(t *testing.T) { + for _, row := range []struct { + description string + groups []Group + expected [][]byte + }{ + { + description: "positive: the rule groups are valid and contribute no dump", + groups: []Group{GroupLink, GroupIPv4Rule, GroupIPv6Rule}, + expected: [][]byte{xtcpnl.BuildDumpLinkRequest(1)}, + }, + { + description: "positive: rules alone plan nothing — a live-only consumer", + groups: []Group{GroupIPv4Rule, GroupIPv6Rule}, + expected: nil, + }, + } { + t.Run(row.description, func(t *testing.T) { + plan, err := planDumps(row.groups) + if err != nil { + t.Fatalf("planDumps: %v", err) + } + if len(plan) != len(row.expected) { + t.Fatalf("plan has %d dumps, want %d", len(plan), len(row.expected)) + } + }) + } +} diff --git a/pkg/rtnlmon/rtnlmon_linux.go b/pkg/rtnlmon/rtnlmon_linux.go index 7be5ed5d6..1359ca0a5 100644 --- a/pkg/rtnlmon/rtnlmon_linux.go +++ b/pkg/rtnlmon/rtnlmon_linux.go @@ -24,6 +24,8 @@ const ( GroupIPv4Route Group = unix.RTNLGRP_IPV4_ROUTE GroupIPv6Route Group = unix.RTNLGRP_IPV6_ROUTE GroupNeigh Group = unix.RTNLGRP_NEIGH + GroupIPv4Rule Group = unix.RTNLGRP_IPV4_RULE + GroupIPv6Rule Group = unix.RTNLGRP_IPV6_RULE ) // Reason says why a Snapshot was taken. @@ -76,9 +78,29 @@ type Handler interface { Event(ev any) error } +// HandlerHdr is Handler plus the notification's own nlmsghdr. Run detects it +// once and routes each event through EventHdr instead of Event, handing the +// handler the header the kernel sent with the message — the type, flags, +// sequence and pid (an RTM_NEW* notification's seq and pid echo the request +// that caused it; see docs/netlink/goip-parity-events.md's notifications +// chapter). Handlers that do not need the header implement Handler alone and +// are dispatched unchanged. The export path (pkg/xtcp/events_export.go) is +// the consumer that asked for this: its proto wrapper carries the header +// fields, and they would vanish at this interface without it. +type HandlerHdr interface { + Handler + // EventHdr is Event with the notification's own header. hdr.Type is + // what ParseRtnetlinkEvent decoded body with — identical values. + EventHdr(hdr xtcpnl.NlMsgHdr, ev any) error +} + // Options configure Run. type Options struct { - // Groups to join; at least one, each one of the six Group constants. + // Groups to join; at least one, each one of the eight Group constants. + // The rule groups deliver RTM_NEW*/DEL RULE notifications but contribute + // no dump to the startup snapshot: nothing folds rules today, and a + // consumer that wants them live joins the groups and ignores (or no-ops) + // the snapshot. Groups []Group // RcvBuf sizes the listening socket's receive buffer; zero keeps the // kernel default. See nlconn.Options. @@ -105,7 +127,7 @@ const ( var ( // ErrNoGroups is Run's error when Options.Groups is empty. ErrNoGroups = errors.New("rtnlmon: no groups to join") - // ErrUnknownGroup is Run's error for a group outside the six. + // ErrUnknownGroup is Run's error for a group outside the eight. ErrUnknownGroup = errors.New("rtnlmon: unsupported group") ) @@ -187,6 +209,10 @@ func run(ctx context.Context, conn eventConn, dump dumpFunc, cfg runConfig, h Ha if err := resync(ctx, dump, cfg.retries, h, ReasonStart); err != nil { return err } + var hh HandlerHdr + if v, ok := h.(HandlerHdr); ok { + hh = v + } last := cfg.now() deliver := func(data []byte) error { return xtcpnl.WalkNotifications(data, func(hdr xtcpnl.NlMsgHdr, body []byte) error { @@ -194,6 +220,9 @@ func run(ctx context.Context, conn eventConn, dump dumpFunc, cfg runConfig, h Ha if err != nil { return fmt.Errorf("rtnlmon: decode nlmsg_type %d: %w", hdr.Type, err) } + if hh != nil { + return hh.EventHdr(hdr, ev) + } return h.Event(ev) }) } @@ -268,7 +297,7 @@ func planDumps(groups []Group) ([]dumpReq, error) { } for _, g := range groups { switch g { - case GroupLink, GroupIPv4Addr, GroupIPv6Addr, GroupIPv4Route, GroupIPv6Route, GroupNeigh: + case GroupLink, GroupIPv4Addr, GroupIPv6Addr, GroupIPv4Route, GroupIPv6Route, GroupNeigh, GroupIPv4Rule, GroupIPv6Rule: default: return nil, fmt.Errorf("%w: %d", ErrUnknownGroup, g) } diff --git a/pkg/xtcp/events_export.go b/pkg/xtcp/events_export.go new file mode 100644 index 000000000..88d7cd9fa --- /dev/null +++ b/pkg/xtcp/events_export.go @@ -0,0 +1,415 @@ +package xtcp + +// The -eventsEnable producer (docs/netlink/events-export.md, Tier EXD): one +// rtnlmon listener per monitored namespace converts each rtnetlink +// notification (link, address, route, neigh, rule) to a +// gen/go/xtcp_netlink_events NetlinkEvent row and appends it to an envelope, +// which flushes to the events destination on EXM's caps — rows, bytes, the +// interval, and shutdown. The constants are events_export_policy.go's, +// measured from the committed event corpora; the config knobs +// (events_flush_*; 0 = the constant) let an operator tighten them. +// +// Off by default, and the record path is untouched: this file owns its own +// destination (a file at v1), because the destinations' factories are +// single-dest — every one reads the record's -dest at build — so a second +// instance for -eventsDest cannot resolve through the registry. The +// factory generalization is the ClickHouse tier's measured need. + +import ( + "context" + "fmt" + "log" + "os" + "runtime" + "strconv" + "strings" + "sync" + "sync/atomic" + "time" + + "golang.org/x/sys/unix" + + "github.com/randomizedcoder/xtcp2/gen/go/xtcp_netlink_events" + "github.com/randomizedcoder/xtcp2/pkg/misc" + "github.com/randomizedcoder/xtcp2/pkg/recordfmt" + "github.com/randomizedcoder/xtcp2/pkg/rtnlmon" + "github.com/randomizedcoder/xtcp2/pkg/xtcpnl" +) + +// eventsRcvBufCst sizes each listener's receive buffer, the locality +// listener's 1 MiB choice (enrich_locality_listen.go): an overrun is a +// drain-plus-resync in rtnlmon, but each one is a full dump. +const eventsRcvBufCst = 1 << 20 + +// eventsExportGroups are all eight rtnlmon groups: the parser's five event +// families (link, addr, route, neigh, rule). The rule groups contribute no +// dump to the startup snapshot — nothing folds rules — and this consumer +// no-ops the snapshot anyway. +var eventsExportGroups = []rtnlmon.Group{ + rtnlmon.GroupLink, + rtnlmon.GroupIPv4Addr, rtnlmon.GroupIPv6Addr, + rtnlmon.GroupIPv4Route, rtnlmon.GroupIPv6Route, + rtnlmon.GroupNeigh, + rtnlmon.GroupIPv4Rule, rtnlmon.GroupIPv6Rule, +} + +// eventsExport is the shared exporter: every namespace's listener appends +// here, and one flush writes the whole envelope. Not per-namespace because +// EXM measured the kernel sends one notification per datagram — the flush +// policy is the batching, and low volume across namespaces shares it. +type eventsExport struct { + x *XTCP + // f is the events destination file (-eventsDest file:/path). The sink is + // owned here at v1; see the file comment for why it is not a registry + // Destination. + f *os.File + + // mu guards env, bytes and epoch: appends (each namespace listener), the + // interval timer's callback and the caps check all serialize here. + mu sync.Mutex + env *xtcp_netlink_events.Envelope + bytes int + + // interval / thresholdRows / thresholdBytes are the flush triggers, the + // config's events_flush_* knobs with 0 = the EXM constants. + interval time.Duration + thresholdRows int + thresholdBytes int + + // epoch guards the one-shot timer chain: each flush schedules the next + // interval flush; a stale callback (a timer that fired while a cap flush + // held the mutex) must not schedule again, or a second timer stacks + // behind the live one and doubles the cadence forever after. + epoch uint64 + + // seams: nil means the real thing (the locality listener's pattern). + // run is rtnlmon.Run; afterFunc schedules like time.AfterFunc; wait + // sleeps d returning false if ctx ended first. + run func(ctx context.Context, opts rtnlmon.Options, h rtnlmon.Handler) error + afterFunc func(d time.Duration, f func()) + wait func(ctx context.Context, d time.Duration) bool + + live atomic.Int64 +} + +// eventsNetnsLabel is the label the export stamps per row: the discovered +// name, else the record path's synthetic form (nsdiscover.Resolver.Name's +// fallback, pkg/nsdiscover/resolve.go:93). +func eventsNetnsLabel(name string, inode uint64) string { + if name != "" { + return name + } + return "netns:[" + strconv.FormatUint(inode, 10) + "]" +} + +// newEventsExport opens the sink and resolves the flush knobs. +func newEventsExport(x *XTCP) (*eventsExport, error) { + dest := x.config.GetEventsDest() + path, ok := strings.CutPrefix(dest, "file:") + if !ok { + return nil, fmt.Errorf("xtcp: -eventsDest %q: v1 supports file: destinations (the registry's factories are single-dest; see docs/netlink/events-export.md EXD-T02)", dest) + } + if path == "" { + return nil, fmt.Errorf("xtcp: -eventsDest: empty path (use -eventsDest file:/path/to/file)") + } + f, err := os.OpenFile(path, os.O_WRONLY|os.O_CREATE|os.O_APPEND, 0o600) + if err != nil { + return nil, fmt.Errorf("xtcp: -eventsDest OpenFile(%q): %w", path, err) + } + interval := time.Duration(x.config.GetEventsFlushIntervalMs()) * time.Millisecond + if interval <= 0 { + interval = EventsFlushIntervalCst + } + rows := int(x.config.GetEventsFlushThresholdRows()) + if rows <= 0 { + rows = EventsFlushThresholdRowsCst + } + bytes := int(x.config.GetEventsFlushThresholdBytes()) + if bytes <= 0 { + bytes = EventsFlushThresholdBytesCst + } + return &eventsExport{ + x: x, + f: f, + env: &xtcp_netlink_events.Envelope{}, + interval: interval, + thresholdRows: rows, + thresholdBytes: bytes, + }, nil +} + +// initEventsExport constructs the exporter when events_enable is set; a bad +// -eventsDest is a startup error, not a silent no-op — the operator asked +// for the export. +func (x *XTCP) initEventsExport() { + if !x.config.GetEventsEnable() { + return + } + ex, err := newEventsExport(x) + if err != nil { + x.fatalf("startup events export: %v", err) + return + } + x.eventsExport = ex +} + +// eventsExportOn reports whether namespaces get an events listener. +func (x *XTCP) eventsExportOn() bool { return x.eventsExport != nil } + +// closeEventsExport is Run's terminal step: the final flush (rows buffered +// under the interval) then the sink close. Listeners are already down — Run +// waits on the workers, and the per-namespace listeners end with their +// namespace ctx, a child of Run's ctx. +func (x *XTCP) closeEventsExport() { + if x.eventsExport == nil { + return + } + x.eventsExport.flush("shutdown") + if err := x.eventsExport.f.Close(); err != nil { + x.pC.WithLabelValues("eventsExport", "close", "error").Inc() + } +} + +// arm schedules the next interval flush. Caller holds ex.mu. +func (ex *eventsExport) arm() { + ex.epoch++ + ep := ex.epoch + f := ex.afterFunc + if f == nil { + f = func(d time.Duration, fn func()) { time.AfterFunc(d, fn) } + } + f(ex.interval, func() { ex.onTimer(ep) }) +} + +// onTimer is the interval trigger; a stale epoch no-ops (see epoch's field +// comment). +func (ex *eventsExport) onTimer(ep uint64) { + ex.mu.Lock() + defer ex.mu.Unlock() + if ep != ex.epoch { + return + } + ex.flushLocked("interval") +} + +// append adds one converted row and flushes on the caps. +func (ex *eventsExport) append(row *xtcp_netlink_events.NetlinkEvent) { + ex.mu.Lock() + defer ex.mu.Unlock() + ex.env.Row = append(ex.env.Row, row) + ex.bytes += row.SizeVT() + if len(ex.env.Row) >= ex.thresholdRows { + ex.flushLocked("rows_cap") + return + } + if ex.bytes >= ex.thresholdBytes { + ex.flushLocked("bytes_cap") + } +} + +// flush is the external entry (shutdown, the timer's onTimer through +// flushLocked): take the lock, drain the envelope, write it delimited, and +// schedule the next interval flush. An empty envelope is a no-op that still +// re-arms — the interval is since the last flush, empty or not. +func (ex *eventsExport) flush(reason string) { + ex.mu.Lock() + defer ex.mu.Unlock() + ex.flushLocked(reason) +} + +// flushLocked is flush with the lock held. The write goes to the sink +// verbatim; the framing is the ProtobufList wire (recordfmt.AppendDelimited +// — varint(size) || Envelope bytes), the record path's own envelope form. +func (ex *eventsExport) flushLocked(reason string) { + defer ex.arm() + if len(ex.env.Row) == 0 { + return + } + buf, err := recordfmt.AppendDelimited(nil, ex.env) + if err == nil { + _, err = ex.f.Write(buf) + } + x := ex.x + x.pC.WithLabelValues("eventsExport", "flush", reason).Inc() + x.pC.WithLabelValues("eventsExport", "rows", "count").Add(float64(len(ex.env.Row))) + if err != nil { + x.pC.WithLabelValues("eventsExport", "flush", "error").Inc() + if x.debugLevel > 10 { + log.Printf("eventsExport flush reason=%s err:%v rows:%d", reason, err, len(ex.env.Row)) + } + } + ex.env.Row = ex.env.Row[:0] + ex.bytes = 0 +} + +// eventsExportHandler is one namespace's consumer: each event becomes a +// NetlinkEvent row. It implements rtnlmon.HandlerHdr — the header-carrying +// variant — because the wrapper's nlmsg_seq/nlmsg_pid (the originating +// process's echo; the §13 note's own trap) would vanish at the plain +// Handler interface. +type eventsExportHandler struct { + x *XTCP + inode uint64 + label string + // now is the row timestamp source; nil means time.Now. + now func() time.Time +} + +// Snapshot no-ops: Run's snapshot (startup, overrun, truncated, periodic) is +// resync state, not events — the export must not emit a namespace's whole +// table at startup. The non-startup reasons still count: an overrun means +// the kernel dropped notifications to this socket, and the drop is visible +// here, not silent. +func (h *eventsExportHandler) Snapshot(_ rtnlmon.Snapshot, reason rtnlmon.Reason) error { + if reason != rtnlmon.ReasonStart { + h.x.pC.WithLabelValues("eventsExport", "resync", string(reason)).Inc() + } + return nil +} + +// Event is unreachable (HandlerHdr consumers dispatch through EventHdr); it +// exists only to satisfy Handler. +func (h *eventsExportHandler) Event(ev any) error { + return fmt.Errorf("xtcp: eventsExportHandler: Event(%T) called — run dispatched a HandlerHdr consumer through Event", ev) +} + +// EventHdr converts one notification and appends it. A conversion failure +// counts and drops the row rather than ending Run: an unsupported payload +// is a bug, and one bad message must not restart the listener (rtnlmon +// treats a Handler error as fatal to the run). +func (h *eventsExportHandler) EventHdr(hdr xtcpnl.NlMsgHdr, ev any) error { + nsid, assigned := uint64(0), false + if m := h.x.nsidByInode.Load(); m != nil { + if id, ok := (*m)[h.inode]; ok { + nsid, assigned = uint64(id), true + } + } + now := time.Now + if h.now != nil { + now = h.now + } + row, err := ConvertNetlinkEvent(hdr, ev, now().UnixNano(), h.label, h.inode, nsid, assigned) + if err != nil { + h.x.pC.WithLabelValues("eventsExport", "convert", "error").Inc() + return nil + } + h.x.eventsExport.append(row) + return nil +} + +// listenEventsExport keeps one rtnlmon.Run alive until ctx ends, on the +// caller's OS thread — which must already be in the namespace (rtnlmon +// opens its sockets, the resync dumps included, in the calling thread's +// namespace). Restarts back off 30s→5m; a run that lasted the 5m cap +// starts the backoff over. +func (x *XTCP) listenEventsExport(ctx context.Context, inode uint64, label string) { + if x.eventsExport == nil { + <-ctx.Done() + return + } + ex := x.eventsExport + ex.live.Add(1) + defer ex.live.Add(-1) + h := &eventsExportHandler{x: x, inode: inode, label: label} + opts := rtnlmon.Options{Groups: eventsExportGroups, RcvBuf: eventsRcvBufCst} + run := ex.run + if run == nil { + run = rtnlmon.Run + } + wait := ex.wait + if wait == nil { + wait = misc.SleepCtx + } + const firstBackoff = 30 * time.Second + const capBackoff = 5 * time.Minute + backoff := firstBackoff + for { + started := time.Now() + err := run(ctx, opts, h) + if ctx.Err() != nil { + return + } + x.pC.WithLabelValues("eventsExport", "run", "error").Inc() + if x.debugLevel > 10 { + log.Printf("eventsExport: inode=%d: %v", inode, err) + } + if time.Since(started) >= capBackoff { + backoff = firstBackoff + } + if !wait(ctx, backoff) { + return + } + x.pC.WithLabelValues("eventsExport", "restarts", "count").Inc() + if backoff *= 2; backoff > capBackoff { + backoff = capBackoff + } + } +} + +// listenEventsExportThread is the second in-namespace thread for the +// both-on composition (-localityEvents holds the namespace's own thread; +// the design's simple composition is two sockets — the shared-listener +// fan-out is the follow-up if this thread ever measures as a cost). The +// dance mirrors netNamespaceInstance's: setns in, run, restore out — and +// on a failed restore keep the thread locked so the runtime terminates it +// rather than returning it to the pool in the wrong namespace. +func (x *XTCP) listenEventsExportThread(ctx context.Context, nsFD int, inode uint64, label string) { + runtime.LockOSThread() + // The restore handle, opened before the setns moves this thread. + // The restore happens BEFORE any Unlock: on failure the thread is + // tainted (in a namespace it must not run other goroutines in), so it + // stays locked and the runtime terminates it — netNamespaceInstance's + // documented lesson, mirrored here including the nolint on the one + // Unlock that runs only after a successful restore. + orig, err := os.Open("/proc/thread-self/ns/net") + if err != nil { + x.pC.WithLabelValues("eventsExport", "thread", "openOrigError").Inc() + x.closeFD(nsFD) + runtime.UnlockOSThread() //nolint:forbidigo // safe: Setns was never attempted — this thread never left its namespace. + return + } + defer orig.Close() + if err := unix.Setns(nsFD, unix.CLONE_NEWNET); err != nil { + x.pC.WithLabelValues("eventsExport", "thread", "setnsError").Inc() + x.closeFD(nsFD) + runtime.UnlockOSThread() //nolint:forbidigo // safe: Setns failed — this thread never left its namespace. + return + } + x.closeFD(nsFD) + x.listenEventsExport(ctx, inode, label) + if err := unix.Setns(int(orig.Fd()), unix.CLONE_NEWNET); err != nil { + x.pC.WithLabelValues("eventsExport", "thread", "restoreError").Inc() + if x.debugLevel > 10 { + log.Printf("eventsExport: inode=%d restore-netns err: %v (keeping thread locked → runtime will terminate it)", inode, err) + } + return + } + runtime.UnlockOSThread() //nolint:forbidigo // safe: only called after the restore Setns returned nil; the tainted case takes the early return above. +} + +// listenNamespace is netNamespaceInstance's wait: this thread is in the +// namespace and hosts exactly one listener — +// - events off: the locality fold or the plain wait (today's path); +// - events on, locality off (the default): the export takes the thread; +// - both on: the fold keeps the thread (unchanged) and the export gets +// its own in-namespace thread through the dup'd nsFD. +func (x *XTCP) listenNamespace(ctx context.Context, inode uint64, name *string, nsFD int) { + label := "" + if name != nil { + label = *name + } + label = eventsNetnsLabel(label, inode) + switch { + case !x.eventsExportOn(): + x.listenLocality(ctx, inode) + case x.localityEventsOn(): + if nsFD >= 0 { + go x.listenEventsExportThread(ctx, nsFD, inode, label) + } else { + x.pC.WithLabelValues("eventsExport", "dup", "error").Inc() + } + x.listenLocality(ctx, inode) + default: + x.listenEventsExport(ctx, inode, label) + } +} diff --git a/pkg/xtcp/events_export_test.go b/pkg/xtcp/events_export_test.go new file mode 100644 index 000000000..c2914d52e --- /dev/null +++ b/pkg/xtcp/events_export_test.go @@ -0,0 +1,416 @@ +package xtcp + +// The events export producer (pkg/xtcp/events_export.go): the flush +// triggers (rows cap, bytes cap, the interval, shutdown), the ProtobufList +// wire each flush writes, the header-carrying handler's glue (the +// netns/nsid provenance and the header fields reaching the row), and the +// namespace-wait dispatch. The conversion itself is round-trip tested over +// every committed event pcap in events_export_convert_test.go (V404); +// these pin the producer around it. + +import ( + "context" + "net/netip" + "os" + "path/filepath" + "sync" + "testing" + "time" + + "github.com/randomizedcoder/xtcp2/gen/go/xtcp_config" + + "github.com/prometheus/client_golang/prometheus" + + "github.com/randomizedcoder/xtcp2/gen/go/xtcp_netlink_events" + "github.com/randomizedcoder/xtcp2/pkg/recordfmt" + "github.com/randomizedcoder/xtcp2/pkg/rtnlmon" + "github.com/randomizedcoder/xtcp2/pkg/xtcpnl" +) + +// newTestExporter builds the smallest eventsExport that flushes: a temp +// file sink, tiny thresholds, and the seams captured so a test can fire the +// interval itself. The XTCP is only counters + debugLevel. +func newTestExporter(t *testing.T) (*eventsExport, *eventsSeams) { + t.Helper() + x := &XTCP{ + pC: prometheus.NewCounterVec(prometheus.CounterOpts{Name: "test"}, []string{"component", "variable", "reason"}), + debugLevel: 0, + } + f := filepath.Join(t.TempDir(), "events.bin") + sink, err := os.OpenFile(f, os.O_WRONLY|os.O_CREATE|os.O_APPEND, 0o600) + if err != nil { + t.Fatal(err) + } + t.Cleanup(func() { _ = sink.Close() }) + ex := &eventsExport{ + x: x, + f: sink, + env: &xtcp_netlink_events.Envelope{}, + interval: time.Hour, // the timer never fires on its own here + thresholdRows: 2, + thresholdBytes: 1 << 30, // effectively off; rows cap rules + } + seams := &eventsSeams{ex: ex} + return ex, seams +} + +// eventsSeams swaps the exporter's seams and tracks what was scheduled. +type eventsSeams struct { + ex *eventsExport + mu sync.Mutex + timers []func() + waiting bool +} + +func (s *eventsSeams) install() { + s.ex.afterFunc = func(_ time.Duration, f func()) { + s.mu.Lock() + s.timers = append(s.timers, f) + s.mu.Unlock() + } + s.ex.wait = func(ctx context.Context, _ time.Duration) bool { + s.mu.Lock() + s.waiting = true + s.mu.Unlock() + <-ctx.Done() + return false + } +} + +// fire runs the oldest scheduled timer callback. +func (s *eventsSeams) fire() { + s.mu.Lock() + f := s.timers[0] + s.timers = s.timers[1:] + s.mu.Unlock() + f() +} + +func (s *eventsSeams) scheduled() int { + s.mu.Lock() + defer s.mu.Unlock() + return len(s.timers) +} + +// readBack walks the sink with recordfmt's delimited reader and +// unmarshals each envelope. +func readBack(t *testing.T, ex *eventsExport) []*xtcp_netlink_events.Envelope { + t.Helper() + bs, err := os.ReadFile(ex.f.Name()) + if err != nil { + t.Fatal(err) + } + var out []*xtcp_netlink_events.Envelope + for len(bs) > 0 { + msg, rest, err := recordfmt.NextDelimited(bs) + if err != nil { + t.Fatalf("readBack: %v (after %d envelopes)", err, len(out)) + } + e := &xtcp_netlink_events.Envelope{} + if err := e.UnmarshalVT(msg); err != nil { + t.Fatalf("UnmarshalVT: %v", err) + } + out = append(out, e) + bs = rest + } + return out +} + +// aRow builds one minimal converted row — the producer's tests care about +// the flush accounting, not the family payloads (V404's tests cover those). +func aRow(seq uint32) *xtcp_netlink_events.NetlinkEvent { + return &xtcp_netlink_events.NetlinkEvent{ + SchemaVersion: XtcpNetlinkEventsSchemaVersion, + NlmsgSeq: seq, + Netns: "test", + NetnsInode: 42, + Action: xtcp_netlink_events.NetlinkEvent_EVENT_ACTION_ADD, + Payload: &xtcp_netlink_events.NetlinkEvent_Link{Link: &xtcp_netlink_events.LinkEvent{}}, + } +} + +func TestEventsExportFlushRowsCap(t *testing.T) { + ex, seams := newTestExporter(t) + seams.install() + ex.append(aRow(1)) + if got := len(ex.env.Row); got != 1 { + t.Fatalf("first append buffered, rows = %d, want 1", got) + } + ex.append(aRow(2)) // hits thresholdRows=2 → flush + if got := len(ex.env.Row); got != 0 { + t.Fatalf("rows cap did not drain the envelope: %d rows", got) + } + envs := readBack(t, ex) + if len(envs) != 1 { + t.Fatalf("sink holds %d envelopes, want 1", len(envs)) + } + if len(envs[0].Row) != 2 { + t.Fatalf("first envelope holds %d rows, want 2", len(envs[0].Row)) + } + if envs[0].Row[0].NlmsgSeq != 1 || envs[0].Row[1].NlmsgSeq != 2 { + t.Fatalf("row order not preserved: seqs %d, %d", envs[0].Row[0].NlmsgSeq, envs[0].Row[1].NlmsgSeq) + } + if seams.scheduled() != 1 { + t.Fatalf("flush armed %d timers, want exactly 1 (the epoch chain)", seams.scheduled()) + } +} + +func TestEventsExportFlushBytesCap(t *testing.T) { + ex, seams := newTestExporter(t) + seams.install() + ex.thresholdRows = 1 << 30 // off; bytes cap rules + row := aRow(1) + ex.bytes = ex.thresholdBytes // the cap is on bytes ALREADY buffered… + // …and append adds the row then checks: the row lands, the envelope drains. + ex.append(row) + envs := readBack(t, ex) + if len(envs) != 1 || len(envs[0].Row) != 1 { + t.Fatalf("bytes cap: sink holds %d envelopes / %d rows", len(envs), len(envs[0].Row)) + } + if ex.bytes != 0 { + t.Fatalf("bytes counter not reset: %d", ex.bytes) + } +} + +func TestEventsExportFlushInterval(t *testing.T) { + ex, seams := newTestExporter(t) + seams.install() + ex.append(aRow(1)) // buffered, no cap hit + if envs := readBack(t, ex); len(envs) != 0 { + t.Fatalf("interval: sink written before the timer fired") + } + if seams.scheduled() != 0 { + t.Fatalf("no flush yet — no timer should be armed by append") + } + // The startup arm: the first timer comes from the first flush only + // (the producer arms in flushLocked); simulate the daemon's lifecycle + // by arming once, then firing. + ex.mu.Lock() + ex.arm() + ex.mu.Unlock() + seams.fire() + envs := readBack(t, ex) + if len(envs) != 1 || len(envs[0].Row) != 1 { + t.Fatalf("interval flush: sink holds %d envelopes, want 1 with the buffered row", len(envs)) + } + // The empty second interval: the chain re-arms, an empty flush writes + // nothing but keeps the chain alive. + seams.fire() + if envs := readBack(t, ex); len(envs) != 1 { + t.Fatalf("empty interval flush wrote bytes: %d envelopes", len(envs)) + } + if seams.scheduled() != 1 { + t.Fatalf("the epoch chain lost its timer: %d scheduled", seams.scheduled()) + } +} + +func TestEventsExportStaleTimerNoOp(t *testing.T) { + ex, seams := newTestExporter(t) + seams.install() + ex.mu.Lock() + ex.arm() + ex.mu.Unlock() + // A cap flush happens between the arm and the fire: its own arm makes + // the pending timer stale. + ex.append(aRow(1)) + ex.append(aRow(2)) // rows cap flush → re-arm (epoch moves) + seams.fire() // the STALE timer: must no-op without stacking + if got := seams.scheduled(); got != 1 { + t.Fatalf("stale timer stacked a second one: %d scheduled, want 1", got) + } + envs := readBack(t, ex) + if len(envs) != 1 || len(envs[0].Row) != 2 { + t.Fatalf("stale fire split the envelope: %d envelopes", len(envs)) + } +} + +func TestEventsExportShutdownFlush(t *testing.T) { + ex, seams := newTestExporter(t) + seams.install() + ex.append(aRow(1)) // buffered, under every cap + closeEventsExport := func() { ex.flush("shutdown") } + closeEventsExport() + envs := readBack(t, ex) + if len(envs) != 1 || len(envs[0].Row) != 1 { + t.Fatalf("shutdown flush lost the buffered row: %d envelopes", len(envs)) + } +} + +func TestEventsExportHandler(t *testing.T) { + ex, seams := newTestExporter(t) + seams.install() + x := ex.x + x.eventsExport = ex + // The nsid snapshot the handler reads at event time. + m := map[uint64]int32{42: 7} + x.nsidByInode.Store(&m) + h := &eventsExportHandler{x: x, inode: 42, label: "netns:[42]", now: func() time.Time { + return time.Unix(1700000000, 0) + }} + + // The startup snapshot is resync state, not events. + if err := h.Snapshot(rtnlmon.Snapshot{}, rtnlmon.ReasonStart); err != nil { + t.Fatalf("Snapshot(start): %v", err) + } + if envs := readBack(t, ex); len(envs) != 0 { + t.Fatalf("startup snapshot wrote rows: %d envelopes", len(envs)) + } + + // A notification: the header reaches the row, the nsid resolves. + hdr := xtcpnl.NlMsgHdr{Type: 16, Flags: 8, Seq: 0x6b03d2bc, Pid: 725} + if err := h.EventHdr(hdr, xtcpnl.LinkEvent{Action: xtcpnl.EventActionAdd, Link: xtcpnl.LinkInfo{Index: 3}}); err != nil { + t.Fatalf("EventHdr: %v", err) + } + if got := len(ex.env.Row); got != 1 { + t.Fatalf("EventHdr buffered %d rows, want 1", got) + } + row := ex.env.Row[0] + if row.NlmsgType != 16 || row.NlmsgFlags != 8 || row.NlmsgSeq != 0x6b03d2bc || row.NlmsgPid != 725 { + t.Fatalf("header fields did not reach the row: %+v", row) + } + if row.Netns != "netns:[42]" || row.NetnsInode != 42 || row.Nsid != 7 || !row.NsidAssigned { + t.Fatalf("provenance wrong: netns=%q inode=%d nsid=%d assigned=%t", row.Netns, row.NetnsInode, row.Nsid, row.NsidAssigned) + } + if row.TimestampNs != 1700000000*1e9 { + t.Fatalf("timestamp = %d", row.TimestampNs) + } + + // A conversion failure counts and drops, never ends the run. + if err := h.EventHdr(hdr, "not an event"); err != nil { + t.Fatalf("EventHdr(unsupported): %v", err) + } + if got := len(ex.env.Row); got != 1 { + t.Fatalf("unsupported payload appended a row: %d", got) + } + + // The plain Event is the documented unreachable branch. + if err := h.Event("anything"); err == nil { + t.Fatal("Event (not EventHdr) must fail loudly, not silently") + } +} + +func TestEventsNetnsLabel(t *testing.T) { + for _, row := range []struct { + description string + name string + inode uint64 + expected string + }{ + {description: "positive: the discovered name", name: "pod-abc", inode: 42, expected: "pod-abc"}, + {description: "positive: the record path's synthetic form", name: "", inode: 42, expected: "netns:[42]"}, + {description: "boundary: inode 0", name: "", inode: 0, expected: "netns:[0]"}, + } { + t.Run(row.description, func(t *testing.T) { + if got := eventsNetnsLabel(row.name, row.inode); got != row.expected { + t.Fatalf("eventsNetnsLabel(%q, %d) = %q, want %q", row.name, row.inode, got, row.expected) + } + }) + } +} + +// dispatchLocality implements localityEnricher for the dispatch test (the +// enrich_seam_test.go fakeLocality is a fixed-table resolver whose Listen +// records nothing): Listen reports that it ran on the wait thread. +type dispatchLocality struct { + listened chan struct{} +} + +func newDispatchLocality() *dispatchLocality { + return &dispatchLocality{listened: make(chan struct{})} +} + +func (f *dispatchLocality) Refresh(map[uint64]nsIdentity) {} +func (f *dispatchLocality) Resolve(uint64, netip.Addr, uint32) (localityResult, bool) { + return localityResult{}, false +} +func (f *dispatchLocality) Active() bool { return true } +func (f *dispatchLocality) Listen(context.Context, uint64) { + close(f.listened) +} + +// TestEventsExportWaitDispatch pins netNamespaceInstance's wait: the thread +// hosts exactly one listener, and which one is a pure function of the two +// config bits. +func TestEventsExportWaitDispatch(t *testing.T) { + name := "pod-abc" + for _, row := range []struct { + description string + events bool + locality bool + // which listener the wait thread runs + threadEvents bool + threadLocality bool + }{ + { + description: "positive: events off — today's path (the fold or the wait)", + }, + { + description: "positive: events on, locality off (the default composition) — the export takes the thread", + events: true, + threadEvents: true, + }, + { + description: "positive: both on — the fold keeps the thread, the export moves to its own", + events: true, + locality: true, + threadLocality: true, + }, + } { + t.Run(row.description, func(t *testing.T) { + ctx, cancel := context.WithCancel(context.Background()) + defer cancel() + ex, seams := newTestExporter(t) + seams.install() + x := ex.x + x.eventsExport = ex + x.config = &xtcp_config.XtcpConfig{ + EventsEnable: row.events, + LocalityEventsEnable: row.locality, + } + var loc *dispatchLocality + if row.locality { + loc = newDispatchLocality() + x.locality = loc + } + if row.events { + // The wait thread calls the run seam; return the ctx error + // so the listener loop ends without the backoff. + ex.run = func(ctx context.Context, _ rtnlmon.Options, _ rtnlmon.Handler) error { + return ctx.Err() + } + } + go x.listenNamespace(ctx, 42, &name, -1) + deadline := time.After(5 * time.Second) + for { + select { + case <-deadline: + t.Fatal("listenNamespace never settled") + default: + } + seams.mu.Lock() + done := seams.waiting + seams.mu.Unlock() + if loc != nil { + select { + case <-loc.listened: + if row.threadLocality { + return // the fold holds the thread, as composed + } + default: + } + } + if done && row.threadEvents { + return // the export holds the thread (its backoff wait) + } + if !row.events && !row.locality { + // the plain wait: ctx done, no listener at all — give the + // goroutine a moment, then cancel and call it settled. + cancel() + time.Sleep(10 * time.Millisecond) + return + } + time.Sleep(time.Millisecond) + } + }) + } +} diff --git a/pkg/xtcp/init.go b/pkg/xtcp/init.go index b7e39152c..c8866a196 100644 --- a/pkg/xtcp/init.go +++ b/pkg/xtcp/init.go @@ -91,6 +91,11 @@ func (x *XTCP) Init(ctx context.Context) { x.initHostname() x.initContainerResolver() + // The -eventsEnable producer (docs/netlink/events-export.md, Tier EXD). + // After InputValidation, so a bad -eventsDest fails on the validated + // config; before the workers start, so every listener sees it. + x.initEventsExport() + wg.Wait() // After InitPromethus, like the enrichers below: it sets a gauge. diff --git a/pkg/xtcp/ns_net_namespace.go b/pkg/xtcp/ns_net_namespace.go index 46b83eec0..9ee766808 100644 --- a/pkg/xtcp/ns_net_namespace.go +++ b/pkg/xtcp/ns_net_namespace.go @@ -180,12 +180,26 @@ func (x *XTCP) netNamespaceInstance(nsCtx context.Context, nsCancel context.Canc x.pH.WithLabelValues("netNamespaceInstance", "store", "counter").Observe(time.Since(startTime).Seconds()) + // When the events export and the locality fold are both on, the export + // needs a second in-namespace thread (listenNamespace below); the ns fd + // is about to close, so dup it now — setns works with any open ns fd, + // even after the discover path's pid is gone. + nsFD := -1 + if x.eventsExportOn() && x.localityEventsOn() { + if d, derr := unix.Dup(fd); derr == nil { + nsFD = d + } else { + x.pC.WithLabelValues("netNamespaceInstance", "dupForEvents", "error").Inc() + } + } + x.closeFD(fd) // Block until done (per-ns ctx, not parent — see comment above). With // -localityEvents the wait runs the namespace's locality listener, on - // this thread, which is already in the namespace. - x.listenLocality(nsCtx, inode) + // this thread, which is already in the namespace; with -eventsEnable the + // events listener takes the thread when the fold is off. + x.listenNamespace(nsCtx, inode, name, nsFD) x.pC.WithLabelValues("netNamespaceInstance", "ctx.Done", "count").Inc() } @@ -279,6 +293,12 @@ func (x *XTCP) openDefaultNetLinkSocket(ctx context.Context) { go x.locality.Listen(nsCtx, x.selfNsInode) } + // The events export's root listener, the same way: any unlocked thread + // is already in this namespace. The record label stays "default". + if x.eventsExportOn() { + go x.listenEventsExport(nsCtx, x.selfNsInode, "default") + } + if x.debugLevel > 10 { log.Printf("openDefaultNetLinkSocket default net namespace netlink socket stored (inode=%d)", x.selfNsInode) } diff --git a/pkg/xtcp/xtcp.go b/pkg/xtcp/xtcp.go index 38ab2617a..cb06d62ae 100644 --- a/pkg/xtcp/xtcp.go +++ b/pkg/xtcp/xtcp.go @@ -152,6 +152,15 @@ type XTCP struct { asn asnLookuper locality localityEnricher + // eventsExport is the -eventsEnable producer (docs/netlink/events-export.md, + // Tier EXD): one rtnlmon listener per namespace feeding an envelope that + // flushes on EXM's caps. nil (the default — events_enable unset) means no + // listener is ever started; the struct is not an interface because it costs + // nothing to carry (pure Go, no third-party dependency beyond the already- + // core proto runtime) — the same reasoning as the container/nsid enrichers + // in enrich_core.go, unlike asn/locality above. + eventsExport *eventsExport + RTATypeDeserializer map[int]func(buf []byte, xtcpRecord *xtcp_flat_record.XtcpFlatRecord) (err error) RTATypeDeserializerStr map[int]string @@ -492,6 +501,11 @@ func (x *XTCP) Run(ctx context.Context, wg *sync.WaitGroup, runPoller bool) { x.closeDestination() + // The events export's terminal flush: the workers (each namespace's + // listener among them) are down, so nothing appends after this. After + // closeDestination, whose drains are the record path's own. + x.closeEventsExport() + // Release the persistent /proc scanner fd. Safe here: wg.Wait above means // both scanner users — the background mapReconciler and the Poller's pre-poll // reconcile — have already exited. diff --git a/proto/xtcp_config/v1/xtcp_config.proto b/proto/xtcp_config/v1/xtcp_config.proto index aabbf879a..3499d59d3 100644 --- a/proto/xtcp_config/v1/xtcp_config.proto +++ b/proto/xtcp_config/v1/xtcp_config.proto @@ -1531,6 +1531,48 @@ message XtcpConfig { // Physical link monitor; see LinkMonitorConfig. LinkMonitorConfig link_monitor = 250; + + // ---- rtnetlink events export (260-264) ------------------------------------- + + // Export rtnetlink notifications (link, address, route, neigh, rule) as + // xtcp_netlink_events NetlinkEvent rows, one listener per monitored + // namespace (docs/netlink/events-export.md). Default false; the record + // path is untouched either way. + bool events_enable = 260; + + // The events destination, a destinations URL. v1 supports file: only: + // the registry's factories are single-dest (every one reads the record's + // dest at build), so the exporter owns its file sink; the factory + // generalization is the ClickHouse tier's measured need. + string events_dest = 261 [ + (buf.validate.field).required = false, + (buf.validate.field).string = { + max_len: 512, + }]; + + // Time between interval flushes of the events envelope. 0 = the + // compile-time default (EventsFlushIntervalCst in + // pkg/xtcp/events_export_policy.go; 1s, EXM's measurement — the locality + // consumer's own chosen latency). + uint32 events_flush_interval_ms = 262 [ + (buf.validate.field).required = false + ]; + + // Row-count cap: the envelope flushes when it holds this many rows. + // 0 = the compile-time default (EventsFlushThresholdRowsCst, 64 — the + // boot flood peak is 56 events per 100ms, so the cap fires first under + // load and the interval carries the lone event). + uint32 events_flush_threshold_rows = 263 [ + (buf.validate.field).required = false + ]; + + // Size cap on the in-flight envelope's marshalled size, in bytes + // (proto.SizeVT of the rows). 0 = the compile-time default + // (EventsFlushThresholdBytesCst, 64 KiB — measured bodies run + // 40-1548 bytes). + uint32 events_flush_threshold_bytes = 264 [ + (buf.validate.field).required = false + ]; }; message EnabledDeserializers {