aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/unified_agent_client/client_proto_weighing.h
diff options
context:
space:
mode:
authorDaniil Cherednik <dan.cherednik@gmail.com>2023-03-31 10:54:08 +0300
committerDaniil Cherednik <dan.cherednik@gmail.com>2023-03-31 12:28:07 +0300
commitfc1cffcfa7f0497a1f97b384a24bcbf23362f3be (patch)
treec15f7ab5b9e9b20fd0ef8fc07d598d28e8b32004 /library/cpp/unified_agent_client/client_proto_weighing.h
parent8a749596d40e91c896a1907afcd108d9221fbde1 (diff)
downloadydb-fc1cffcfa7f0497a1f97b384a24bcbf23362f3be.tar.gz
Ydb stable 23-1-1923.1.19
x-stable-origin-commit: c5d5a396e89d0a72e0267a55e93d8404d4fb54fe
Diffstat (limited to 'library/cpp/unified_agent_client/client_proto_weighing.h')
-rw-r--r--library/cpp/unified_agent_client/client_proto_weighing.h75
1 files changed, 75 insertions, 0 deletions
diff --git a/library/cpp/unified_agent_client/client_proto_weighing.h b/library/cpp/unified_agent_client/client_proto_weighing.h
new file mode 100644
index 0000000000..728792e49f
--- /dev/null
+++ b/library/cpp/unified_agent_client/client_proto_weighing.h
@@ -0,0 +1,75 @@
+#pragma once
+
+#include <library/cpp/unified_agent_client/f_maybe.h>
+#include <library/cpp/unified_agent_client/proto_weighing.h>
+
+namespace NUnifiedAgent::NPW {
+ struct TMessageMetaItem: public TMessage {
+ TMessageMetaItem()
+ : TMessage()
+ , Key(this)
+ , Value(this)
+ , SkipStart(this)
+ , SkipLength(this)
+ {
+ }
+
+ explicit TMessageMetaItem(TMessage* parent)
+ : TMessage(parent)
+ , Key(this)
+ , Value(this)
+ , SkipStart(this)
+ , SkipLength(this)
+ {
+ }
+
+ explicit TMessageMetaItem(const NUnifiedAgent::TFMaybe<TFieldLink>& link)
+ : TMessage(link)
+ , Key(this)
+ , Value(this)
+ , SkipStart(this)
+ , SkipLength(this)
+ {
+ }
+
+ TStringField Key;
+ TRepeatedPtrField<TStringField> Value;
+ TRepeatedField<ui32> SkipStart;
+ TRepeatedField<ui32> SkipLength;
+ };
+
+ struct TDataBatch: public TMessage {
+ TDataBatch()
+ : TMessage()
+ , SeqNo(this)
+ , Timestamp(this)
+ , Payload(this, 2)
+ , Meta(this, 2)
+ {
+ }
+
+ TDataBatch(TMessage* parent)
+ : TMessage(parent)
+ , SeqNo(this)
+ , Timestamp(this)
+ , Payload(this, 2)
+ , Meta(this, 2)
+ {
+ }
+
+ TRepeatedField<ui64> SeqNo; // 1
+ TRepeatedField<ui64> Timestamp; // 2
+ TRepeatedPtrField<TStringField> Payload; // 100
+ TRepeatedPtrField<TMessageMetaItem> Meta; // 101
+ };
+
+ struct TRequest: public TMessage {
+ TRequest()
+ : TMessage()
+ , DataBatch(this)
+ {
+ }
+
+ TDataBatch DataBatch;
+ };
+}