starpc 0.41.2 → 0.43.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1381 @@
1
+ //go:build deps_only && cgo
2
+
3
+ // Generated by the protocol buffer compiler. DO NOT EDIT!
4
+ // NO CHECKED-IN PROTOBUF GENCODE
5
+ // source: github.com/aperturerobotics/starpc/srpc/rpcproto.proto
6
+ // Protobuf C++ Version: 6.33.4
7
+
8
+ #include "rpcproto.pb.h"
9
+
10
+ #include <algorithm>
11
+ #include <type_traits>
12
+ #include "google/protobuf/io/coded_stream.h"
13
+ #include "google/protobuf/generated_message_tctable_impl.h"
14
+ #include "google/protobuf/extension_set.h"
15
+ #include "google/protobuf/generated_message_util.h"
16
+ #include "google/protobuf/wire_format_lite.h"
17
+ #include "google/protobuf/descriptor.h"
18
+ #include "google/protobuf/generated_message_reflection.h"
19
+ #include "google/protobuf/reflection_ops.h"
20
+ #include "google/protobuf/wire_format.h"
21
+ // @@protoc_insertion_point(includes)
22
+
23
+ // Must be included last.
24
+ #include "google/protobuf/port_def.inc"
25
+ PROTOBUF_PRAGMA_INIT_SEG
26
+ namespace _pb = ::google::protobuf;
27
+ namespace _pbi = ::google::protobuf::internal;
28
+ namespace _fl = ::google::protobuf::internal::field_layout;
29
+ namespace srpc {
30
+
31
+ inline constexpr CallStart::Impl_::Impl_(
32
+ ::_pbi::ConstantInitialized) noexcept
33
+ : _cached_size_{0},
34
+ rpc_service_(
35
+ &::google::protobuf::internal::fixed_address_empty_string,
36
+ ::_pbi::ConstantInitialized()),
37
+ rpc_method_(
38
+ &::google::protobuf::internal::fixed_address_empty_string,
39
+ ::_pbi::ConstantInitialized()),
40
+ data_(
41
+ &::google::protobuf::internal::fixed_address_empty_string,
42
+ ::_pbi::ConstantInitialized()),
43
+ data_is_zero_{false} {}
44
+
45
+ template <typename>
46
+ PROTOBUF_CONSTEXPR CallStart::CallStart(::_pbi::ConstantInitialized)
47
+ #if defined(PROTOBUF_CUSTOM_VTABLE)
48
+ : ::google::protobuf::Message(CallStart_class_data_.base()),
49
+ #else // PROTOBUF_CUSTOM_VTABLE
50
+ : ::google::protobuf::Message(),
51
+ #endif // PROTOBUF_CUSTOM_VTABLE
52
+ _impl_(::_pbi::ConstantInitialized()) {
53
+ }
54
+ struct CallStartDefaultTypeInternal {
55
+ PROTOBUF_CONSTEXPR CallStartDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
56
+ ~CallStartDefaultTypeInternal() {}
57
+ union {
58
+ CallStart _instance;
59
+ };
60
+ };
61
+
62
+ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
63
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CallStartDefaultTypeInternal _CallStart_default_instance_;
64
+
65
+ inline constexpr CallData::Impl_::Impl_(
66
+ ::_pbi::ConstantInitialized) noexcept
67
+ : _cached_size_{0},
68
+ data_(
69
+ &::google::protobuf::internal::fixed_address_empty_string,
70
+ ::_pbi::ConstantInitialized()),
71
+ error_(
72
+ &::google::protobuf::internal::fixed_address_empty_string,
73
+ ::_pbi::ConstantInitialized()),
74
+ data_is_zero_{false},
75
+ complete_{false} {}
76
+
77
+ template <typename>
78
+ PROTOBUF_CONSTEXPR CallData::CallData(::_pbi::ConstantInitialized)
79
+ #if defined(PROTOBUF_CUSTOM_VTABLE)
80
+ : ::google::protobuf::Message(CallData_class_data_.base()),
81
+ #else // PROTOBUF_CUSTOM_VTABLE
82
+ : ::google::protobuf::Message(),
83
+ #endif // PROTOBUF_CUSTOM_VTABLE
84
+ _impl_(::_pbi::ConstantInitialized()) {
85
+ }
86
+ struct CallDataDefaultTypeInternal {
87
+ PROTOBUF_CONSTEXPR CallDataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
88
+ ~CallDataDefaultTypeInternal() {}
89
+ union {
90
+ CallData _instance;
91
+ };
92
+ };
93
+
94
+ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
95
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CallDataDefaultTypeInternal _CallData_default_instance_;
96
+
97
+ inline constexpr Packet::Impl_::Impl_(
98
+ ::_pbi::ConstantInitialized) noexcept
99
+ : body_{},
100
+ _cached_size_{0},
101
+ _oneof_case_{} {}
102
+
103
+ template <typename>
104
+ PROTOBUF_CONSTEXPR Packet::Packet(::_pbi::ConstantInitialized)
105
+ #if defined(PROTOBUF_CUSTOM_VTABLE)
106
+ : ::google::protobuf::Message(Packet_class_data_.base()),
107
+ #else // PROTOBUF_CUSTOM_VTABLE
108
+ : ::google::protobuf::Message(),
109
+ #endif // PROTOBUF_CUSTOM_VTABLE
110
+ _impl_(::_pbi::ConstantInitialized()) {
111
+ }
112
+ struct PacketDefaultTypeInternal {
113
+ PROTOBUF_CONSTEXPR PacketDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
114
+ ~PacketDefaultTypeInternal() {}
115
+ union {
116
+ Packet _instance;
117
+ };
118
+ };
119
+
120
+ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
121
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PacketDefaultTypeInternal _Packet_default_instance_;
122
+ } // namespace srpc
123
+ static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
124
+ file_level_enum_descriptors_github_2ecom_2faperturerobotics_2fstarpc_2fsrpc_2frpcproto_2eproto = nullptr;
125
+ static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
126
+ file_level_service_descriptors_github_2ecom_2faperturerobotics_2fstarpc_2fsrpc_2frpcproto_2eproto = nullptr;
127
+ const ::uint32_t
128
+ TableStruct_github_2ecom_2faperturerobotics_2fstarpc_2fsrpc_2frpcproto_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
129
+ protodesc_cold) = {
130
+ 0x004, // bitmap
131
+ PROTOBUF_FIELD_OFFSET(::srpc::Packet, _impl_._oneof_case_[0]),
132
+ PROTOBUF_FIELD_OFFSET(::srpc::Packet, _impl_.body_),
133
+ PROTOBUF_FIELD_OFFSET(::srpc::Packet, _impl_.body_),
134
+ PROTOBUF_FIELD_OFFSET(::srpc::Packet, _impl_.body_),
135
+ PROTOBUF_FIELD_OFFSET(::srpc::Packet, _impl_.body_),
136
+ 0x081, // bitmap
137
+ PROTOBUF_FIELD_OFFSET(::srpc::CallStart, _impl_._has_bits_),
138
+ 7, // hasbit index offset
139
+ PROTOBUF_FIELD_OFFSET(::srpc::CallStart, _impl_.rpc_service_),
140
+ PROTOBUF_FIELD_OFFSET(::srpc::CallStart, _impl_.rpc_method_),
141
+ PROTOBUF_FIELD_OFFSET(::srpc::CallStart, _impl_.data_),
142
+ PROTOBUF_FIELD_OFFSET(::srpc::CallStart, _impl_.data_is_zero_),
143
+ 0,
144
+ 1,
145
+ 2,
146
+ 3,
147
+ 0x081, // bitmap
148
+ PROTOBUF_FIELD_OFFSET(::srpc::CallData, _impl_._has_bits_),
149
+ 7, // hasbit index offset
150
+ PROTOBUF_FIELD_OFFSET(::srpc::CallData, _impl_.data_),
151
+ PROTOBUF_FIELD_OFFSET(::srpc::CallData, _impl_.data_is_zero_),
152
+ PROTOBUF_FIELD_OFFSET(::srpc::CallData, _impl_.complete_),
153
+ PROTOBUF_FIELD_OFFSET(::srpc::CallData, _impl_.error_),
154
+ 0,
155
+ 2,
156
+ 3,
157
+ 1,
158
+ };
159
+
160
+ static const ::_pbi::MigrationSchema
161
+ schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
162
+ {0, sizeof(::srpc::Packet)},
163
+ {6, sizeof(::srpc::CallStart)},
164
+ {17, sizeof(::srpc::CallData)},
165
+ };
166
+ static const ::_pb::Message* PROTOBUF_NONNULL const file_default_instances[] = {
167
+ &::srpc::_Packet_default_instance_._instance,
168
+ &::srpc::_CallStart_default_instance_._instance,
169
+ &::srpc::_CallData_default_instance_._instance,
170
+ };
171
+ const char descriptor_table_protodef_github_2ecom_2faperturerobotics_2fstarpc_2fsrpc_2frpcproto_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
172
+ protodesc_cold) = {
173
+ "\n6github.com/aperturerobotics/starpc/srp"
174
+ "c/rpcproto.proto\022\004srpc\"s\n\006Packet\022%\n\ncall"
175
+ "_start\030\001 \001(\0132\017.srpc.CallStartH\000\022#\n\tcall_"
176
+ "data\030\002 \001(\0132\016.srpc.CallDataH\000\022\025\n\013call_can"
177
+ "cel\030\003 \001(\010H\000B\006\n\004body\"X\n\tCallStart\022\023\n\013rpc_"
178
+ "service\030\001 \001(\t\022\022\n\nrpc_method\030\002 \001(\t\022\014\n\004dat"
179
+ "a\030\003 \001(\014\022\024\n\014data_is_zero\030\004 \001(\010\"O\n\010CallDat"
180
+ "a\022\014\n\004data\030\001 \001(\014\022\024\n\014data_is_zero\030\002 \001(\010\022\020\n"
181
+ "\010complete\030\003 \001(\010\022\r\n\005error\030\004 \001(\tb\006proto3"
182
+ };
183
+ static ::absl::once_flag descriptor_table_github_2ecom_2faperturerobotics_2fstarpc_2fsrpc_2frpcproto_2eproto_once;
184
+ PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_github_2ecom_2faperturerobotics_2fstarpc_2fsrpc_2frpcproto_2eproto = {
185
+ false,
186
+ false,
187
+ 358,
188
+ descriptor_table_protodef_github_2ecom_2faperturerobotics_2fstarpc_2fsrpc_2frpcproto_2eproto,
189
+ "github.com/aperturerobotics/starpc/srpc/rpcproto.proto",
190
+ &descriptor_table_github_2ecom_2faperturerobotics_2fstarpc_2fsrpc_2frpcproto_2eproto_once,
191
+ nullptr,
192
+ 0,
193
+ 3,
194
+ schemas,
195
+ file_default_instances,
196
+ TableStruct_github_2ecom_2faperturerobotics_2fstarpc_2fsrpc_2frpcproto_2eproto::offsets,
197
+ file_level_enum_descriptors_github_2ecom_2faperturerobotics_2fstarpc_2fsrpc_2frpcproto_2eproto,
198
+ file_level_service_descriptors_github_2ecom_2faperturerobotics_2fstarpc_2fsrpc_2frpcproto_2eproto,
199
+ };
200
+ namespace srpc {
201
+ // ===================================================================
202
+
203
+ class Packet::_Internal {
204
+ public:
205
+ static constexpr ::int32_t kOneofCaseOffset =
206
+ PROTOBUF_FIELD_OFFSET(::srpc::Packet, _impl_._oneof_case_);
207
+ };
208
+
209
+ void Packet::set_allocated_call_start(::srpc::CallStart* PROTOBUF_NULLABLE call_start) {
210
+ ::google::protobuf::Arena* message_arena = GetArena();
211
+ clear_body();
212
+ if (call_start) {
213
+ ::google::protobuf::Arena* submessage_arena = call_start->GetArena();
214
+ if (message_arena != submessage_arena) {
215
+ call_start = ::google::protobuf::internal::GetOwnedMessage(message_arena, call_start, submessage_arena);
216
+ }
217
+ set_has_call_start();
218
+ _impl_.body_.call_start_ = call_start;
219
+ }
220
+ // @@protoc_insertion_point(field_set_allocated:srpc.Packet.call_start)
221
+ }
222
+ void Packet::set_allocated_call_data(::srpc::CallData* PROTOBUF_NULLABLE call_data) {
223
+ ::google::protobuf::Arena* message_arena = GetArena();
224
+ clear_body();
225
+ if (call_data) {
226
+ ::google::protobuf::Arena* submessage_arena = call_data->GetArena();
227
+ if (message_arena != submessage_arena) {
228
+ call_data = ::google::protobuf::internal::GetOwnedMessage(message_arena, call_data, submessage_arena);
229
+ }
230
+ set_has_call_data();
231
+ _impl_.body_.call_data_ = call_data;
232
+ }
233
+ // @@protoc_insertion_point(field_set_allocated:srpc.Packet.call_data)
234
+ }
235
+ Packet::Packet(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
236
+ #if defined(PROTOBUF_CUSTOM_VTABLE)
237
+ : ::google::protobuf::Message(arena, Packet_class_data_.base()) {
238
+ #else // PROTOBUF_CUSTOM_VTABLE
239
+ : ::google::protobuf::Message(arena) {
240
+ #endif // PROTOBUF_CUSTOM_VTABLE
241
+ SharedCtor(arena);
242
+ // @@protoc_insertion_point(arena_constructor:srpc.Packet)
243
+ }
244
+ PROTOBUF_NDEBUG_INLINE Packet::Impl_::Impl_(
245
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
246
+ [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
247
+ [[maybe_unused]] const ::srpc::Packet& from_msg)
248
+ : body_{},
249
+ _cached_size_{0},
250
+ _oneof_case_{from._oneof_case_[0]} {}
251
+
252
+ Packet::Packet(
253
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
254
+ const Packet& from)
255
+ #if defined(PROTOBUF_CUSTOM_VTABLE)
256
+ : ::google::protobuf::Message(arena, Packet_class_data_.base()) {
257
+ #else // PROTOBUF_CUSTOM_VTABLE
258
+ : ::google::protobuf::Message(arena) {
259
+ #endif // PROTOBUF_CUSTOM_VTABLE
260
+ Packet* const _this = this;
261
+ (void)_this;
262
+ _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
263
+ from._internal_metadata_);
264
+ new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
265
+ switch (body_case()) {
266
+ case BODY_NOT_SET:
267
+ break;
268
+ case kCallStart:
269
+ _impl_.body_.call_start_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.body_.call_start_);
270
+ break;
271
+ case kCallData:
272
+ _impl_.body_.call_data_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.body_.call_data_);
273
+ break;
274
+ case kCallCancel:
275
+ _impl_.body_.call_cancel_ = from._impl_.body_.call_cancel_;
276
+ break;
277
+ }
278
+
279
+ // @@protoc_insertion_point(copy_constructor:srpc.Packet)
280
+ }
281
+ PROTOBUF_NDEBUG_INLINE Packet::Impl_::Impl_(
282
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
283
+ [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
284
+ : body_{},
285
+ _cached_size_{0},
286
+ _oneof_case_{} {}
287
+
288
+ inline void Packet::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
289
+ new (&_impl_) Impl_(internal_visibility(), arena);
290
+ }
291
+ Packet::~Packet() {
292
+ // @@protoc_insertion_point(destructor:srpc.Packet)
293
+ SharedDtor(*this);
294
+ }
295
+ inline void Packet::SharedDtor(MessageLite& self) {
296
+ Packet& this_ = static_cast<Packet&>(self);
297
+ if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
298
+ this_.CheckHasBitConsistency();
299
+ }
300
+ this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
301
+ ABSL_DCHECK(this_.GetArena() == nullptr);
302
+ if (this_.has_body()) {
303
+ this_.clear_body();
304
+ }
305
+ this_._impl_.~Impl_();
306
+ }
307
+
308
+ void Packet::clear_body() {
309
+ // @@protoc_insertion_point(one_of_clear_start:srpc.Packet)
310
+ ::google::protobuf::internal::TSanWrite(&_impl_);
311
+ switch (body_case()) {
312
+ case kCallStart: {
313
+ if (GetArena() == nullptr) {
314
+ delete _impl_.body_.call_start_;
315
+ } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
316
+ ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.body_.call_start_);
317
+ }
318
+ break;
319
+ }
320
+ case kCallData: {
321
+ if (GetArena() == nullptr) {
322
+ delete _impl_.body_.call_data_;
323
+ } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
324
+ ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.body_.call_data_);
325
+ }
326
+ break;
327
+ }
328
+ case kCallCancel: {
329
+ // No need to clear
330
+ break;
331
+ }
332
+ case BODY_NOT_SET: {
333
+ break;
334
+ }
335
+ }
336
+ _impl_._oneof_case_[0] = BODY_NOT_SET;
337
+ }
338
+
339
+
340
+ inline void* PROTOBUF_NONNULL Packet::PlacementNew_(
341
+ const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
342
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
343
+ return ::new (mem) Packet(arena);
344
+ }
345
+ constexpr auto Packet::InternalNewImpl_() {
346
+ return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Packet),
347
+ alignof(Packet));
348
+ }
349
+ constexpr auto Packet::InternalGenerateClassData_() {
350
+ return ::google::protobuf::internal::ClassDataFull{
351
+ ::google::protobuf::internal::ClassData{
352
+ &_Packet_default_instance_._instance,
353
+ &_table_.header,
354
+ nullptr, // OnDemandRegisterArenaDtor
355
+ nullptr, // IsInitialized
356
+ &Packet::MergeImpl,
357
+ ::google::protobuf::Message::GetNewImpl<Packet>(),
358
+ #if defined(PROTOBUF_CUSTOM_VTABLE)
359
+ &Packet::SharedDtor,
360
+ ::google::protobuf::Message::GetClearImpl<Packet>(), &Packet::ByteSizeLong,
361
+ &Packet::_InternalSerialize,
362
+ #endif // PROTOBUF_CUSTOM_VTABLE
363
+ PROTOBUF_FIELD_OFFSET(Packet, _impl_._cached_size_),
364
+ false,
365
+ },
366
+ &Packet::kDescriptorMethods,
367
+ &descriptor_table_github_2ecom_2faperturerobotics_2fstarpc_2fsrpc_2frpcproto_2eproto,
368
+ nullptr, // tracker
369
+ };
370
+ }
371
+
372
+ PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
373
+ ::google::protobuf::internal::ClassDataFull Packet_class_data_ =
374
+ Packet::InternalGenerateClassData_();
375
+
376
+ PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
377
+ Packet::GetClassData() const {
378
+ ::google::protobuf::internal::PrefetchToLocalCache(&Packet_class_data_);
379
+ ::google::protobuf::internal::PrefetchToLocalCache(Packet_class_data_.tc_table);
380
+ return Packet_class_data_.base();
381
+ }
382
+ PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
383
+ const ::_pbi::TcParseTable<0, 3, 2, 0, 2>
384
+ Packet::_table_ = {
385
+ {
386
+ 0, // no _has_bits_
387
+ 0, // no _extensions_
388
+ 3, 0, // max_field_number, fast_idx_mask
389
+ offsetof(decltype(_table_), field_lookup_table),
390
+ 4294967288, // skipmap
391
+ offsetof(decltype(_table_), field_entries),
392
+ 3, // num_field_entries
393
+ 2, // num_aux_entries
394
+ offsetof(decltype(_table_), aux_entries),
395
+ Packet_class_data_.base(),
396
+ nullptr, // post_loop_handler
397
+ ::_pbi::TcParser::GenericFallback, // fallback
398
+ #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
399
+ ::_pbi::TcParser::GetTable<::srpc::Packet>(), // to_prefetch
400
+ #endif // PROTOBUF_PREFETCH_PARSE_TABLE
401
+ }, {{
402
+ {::_pbi::TcParser::MiniParse, {}},
403
+ }}, {{
404
+ 65535, 65535
405
+ }}, {{
406
+ // .srpc.CallStart call_start = 1;
407
+ {PROTOBUF_FIELD_OFFSET(Packet, _impl_.body_.call_start_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
408
+ // .srpc.CallData call_data = 2;
409
+ {PROTOBUF_FIELD_OFFSET(Packet, _impl_.body_.call_data_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
410
+ // bool call_cancel = 3;
411
+ {PROTOBUF_FIELD_OFFSET(Packet, _impl_.body_.call_cancel_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kBool)},
412
+ }},
413
+ {{
414
+ {::_pbi::TcParser::GetTable<::srpc::CallStart>()},
415
+ {::_pbi::TcParser::GetTable<::srpc::CallData>()},
416
+ }},
417
+ {{
418
+ }},
419
+ };
420
+ PROTOBUF_NOINLINE void Packet::Clear() {
421
+ // @@protoc_insertion_point(message_clear_start:srpc.Packet)
422
+ ::google::protobuf::internal::TSanWrite(&_impl_);
423
+ ::uint32_t cached_has_bits = 0;
424
+ // Prevent compiler warnings about cached_has_bits being unused
425
+ (void) cached_has_bits;
426
+
427
+ clear_body();
428
+ _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
429
+ }
430
+
431
+ #if defined(PROTOBUF_CUSTOM_VTABLE)
432
+ ::uint8_t* PROTOBUF_NONNULL Packet::_InternalSerialize(
433
+ const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
434
+ ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
435
+ const Packet& this_ = static_cast<const Packet&>(base);
436
+ #else // PROTOBUF_CUSTOM_VTABLE
437
+ ::uint8_t* PROTOBUF_NONNULL Packet::_InternalSerialize(
438
+ ::uint8_t* PROTOBUF_NONNULL target,
439
+ ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
440
+ const Packet& this_ = *this;
441
+ #endif // PROTOBUF_CUSTOM_VTABLE
442
+ if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
443
+ this_.CheckHasBitConsistency();
444
+ }
445
+ // @@protoc_insertion_point(serialize_to_array_start:srpc.Packet)
446
+ ::uint32_t cached_has_bits = 0;
447
+ (void)cached_has_bits;
448
+
449
+ switch (this_.body_case()) {
450
+ case kCallStart: {
451
+ target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
452
+ 1, *this_._impl_.body_.call_start_, this_._impl_.body_.call_start_->GetCachedSize(), target,
453
+ stream);
454
+ break;
455
+ }
456
+ case kCallData: {
457
+ target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
458
+ 2, *this_._impl_.body_.call_data_, this_._impl_.body_.call_data_->GetCachedSize(), target,
459
+ stream);
460
+ break;
461
+ }
462
+ case kCallCancel: {
463
+ target = stream->EnsureSpace(target);
464
+ target = ::_pbi::WireFormatLite::WriteBoolToArray(
465
+ 3, this_._internal_call_cancel(), target);
466
+ break;
467
+ }
468
+ default:
469
+ break;
470
+ }
471
+ if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
472
+ target =
473
+ ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
474
+ this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
475
+ }
476
+ // @@protoc_insertion_point(serialize_to_array_end:srpc.Packet)
477
+ return target;
478
+ }
479
+
480
+ #if defined(PROTOBUF_CUSTOM_VTABLE)
481
+ ::size_t Packet::ByteSizeLong(const MessageLite& base) {
482
+ const Packet& this_ = static_cast<const Packet&>(base);
483
+ #else // PROTOBUF_CUSTOM_VTABLE
484
+ ::size_t Packet::ByteSizeLong() const {
485
+ const Packet& this_ = *this;
486
+ #endif // PROTOBUF_CUSTOM_VTABLE
487
+ // @@protoc_insertion_point(message_byte_size_start:srpc.Packet)
488
+ ::size_t total_size = 0;
489
+
490
+ ::uint32_t cached_has_bits = 0;
491
+ // Prevent compiler warnings about cached_has_bits being unused
492
+ (void)cached_has_bits;
493
+
494
+ switch (this_.body_case()) {
495
+ // .srpc.CallStart call_start = 1;
496
+ case kCallStart: {
497
+ total_size += 1 +
498
+ ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.body_.call_start_);
499
+ break;
500
+ }
501
+ // .srpc.CallData call_data = 2;
502
+ case kCallData: {
503
+ total_size += 1 +
504
+ ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.body_.call_data_);
505
+ break;
506
+ }
507
+ // bool call_cancel = 3;
508
+ case kCallCancel: {
509
+ total_size += 2;
510
+ break;
511
+ }
512
+ case BODY_NOT_SET: {
513
+ break;
514
+ }
515
+ }
516
+ return this_.MaybeComputeUnknownFieldsSize(total_size,
517
+ &this_._impl_._cached_size_);
518
+ }
519
+
520
+ void Packet::MergeImpl(::google::protobuf::MessageLite& to_msg,
521
+ const ::google::protobuf::MessageLite& from_msg) {
522
+ auto* const _this =
523
+ static_cast<Packet*>(&to_msg);
524
+ auto& from = static_cast<const Packet&>(from_msg);
525
+ if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
526
+ from.CheckHasBitConsistency();
527
+ }
528
+ ::google::protobuf::Arena* arena = _this->GetArena();
529
+ // @@protoc_insertion_point(class_specific_merge_from_start:srpc.Packet)
530
+ ABSL_DCHECK_NE(&from, _this);
531
+ ::uint32_t cached_has_bits = 0;
532
+ (void)cached_has_bits;
533
+
534
+ if (const uint32_t oneof_from_case =
535
+ from._impl_._oneof_case_[0]) {
536
+ const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0];
537
+ const bool oneof_needs_init = oneof_to_case != oneof_from_case;
538
+ if (oneof_needs_init) {
539
+ if (oneof_to_case != 0) {
540
+ _this->clear_body();
541
+ }
542
+ _this->_impl_._oneof_case_[0] = oneof_from_case;
543
+ }
544
+
545
+ switch (oneof_from_case) {
546
+ case kCallStart: {
547
+ if (oneof_needs_init) {
548
+ _this->_impl_.body_.call_start_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.body_.call_start_);
549
+ } else {
550
+ _this->_impl_.body_.call_start_->MergeFrom(*from._impl_.body_.call_start_);
551
+ }
552
+ break;
553
+ }
554
+ case kCallData: {
555
+ if (oneof_needs_init) {
556
+ _this->_impl_.body_.call_data_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.body_.call_data_);
557
+ } else {
558
+ _this->_impl_.body_.call_data_->MergeFrom(*from._impl_.body_.call_data_);
559
+ }
560
+ break;
561
+ }
562
+ case kCallCancel: {
563
+ _this->_impl_.body_.call_cancel_ = from._impl_.body_.call_cancel_;
564
+ break;
565
+ }
566
+ case BODY_NOT_SET:
567
+ break;
568
+ }
569
+ }
570
+ _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
571
+ from._internal_metadata_);
572
+ }
573
+
574
+ void Packet::CopyFrom(const Packet& from) {
575
+ // @@protoc_insertion_point(class_specific_copy_from_start:srpc.Packet)
576
+ if (&from == this) return;
577
+ Clear();
578
+ MergeFrom(from);
579
+ }
580
+
581
+
582
+ void Packet::InternalSwap(Packet* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
583
+ using ::std::swap;
584
+ _internal_metadata_.InternalSwap(&other->_internal_metadata_);
585
+ swap(_impl_.body_, other->_impl_.body_);
586
+ swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
587
+ }
588
+
589
+ ::google::protobuf::Metadata Packet::GetMetadata() const {
590
+ return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
591
+ }
592
+ // ===================================================================
593
+
594
+ class CallStart::_Internal {
595
+ public:
596
+ using HasBits =
597
+ decltype(::std::declval<CallStart>()._impl_._has_bits_);
598
+ static constexpr ::int32_t kHasBitsOffset =
599
+ 8 * PROTOBUF_FIELD_OFFSET(CallStart, _impl_._has_bits_);
600
+ };
601
+
602
+ CallStart::CallStart(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
603
+ #if defined(PROTOBUF_CUSTOM_VTABLE)
604
+ : ::google::protobuf::Message(arena, CallStart_class_data_.base()) {
605
+ #else // PROTOBUF_CUSTOM_VTABLE
606
+ : ::google::protobuf::Message(arena) {
607
+ #endif // PROTOBUF_CUSTOM_VTABLE
608
+ SharedCtor(arena);
609
+ // @@protoc_insertion_point(arena_constructor:srpc.CallStart)
610
+ }
611
+ PROTOBUF_NDEBUG_INLINE CallStart::Impl_::Impl_(
612
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
613
+ [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
614
+ [[maybe_unused]] const ::srpc::CallStart& from_msg)
615
+ : _has_bits_{from._has_bits_},
616
+ _cached_size_{0},
617
+ rpc_service_(arena, from.rpc_service_),
618
+ rpc_method_(arena, from.rpc_method_),
619
+ data_(arena, from.data_) {}
620
+
621
+ CallStart::CallStart(
622
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
623
+ const CallStart& from)
624
+ #if defined(PROTOBUF_CUSTOM_VTABLE)
625
+ : ::google::protobuf::Message(arena, CallStart_class_data_.base()) {
626
+ #else // PROTOBUF_CUSTOM_VTABLE
627
+ : ::google::protobuf::Message(arena) {
628
+ #endif // PROTOBUF_CUSTOM_VTABLE
629
+ CallStart* const _this = this;
630
+ (void)_this;
631
+ _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
632
+ from._internal_metadata_);
633
+ new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
634
+ _impl_.data_is_zero_ = from._impl_.data_is_zero_;
635
+
636
+ // @@protoc_insertion_point(copy_constructor:srpc.CallStart)
637
+ }
638
+ PROTOBUF_NDEBUG_INLINE CallStart::Impl_::Impl_(
639
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
640
+ [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
641
+ : _cached_size_{0},
642
+ rpc_service_(arena),
643
+ rpc_method_(arena),
644
+ data_(arena) {}
645
+
646
+ inline void CallStart::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
647
+ new (&_impl_) Impl_(internal_visibility(), arena);
648
+ _impl_.data_is_zero_ = {};
649
+ }
650
+ CallStart::~CallStart() {
651
+ // @@protoc_insertion_point(destructor:srpc.CallStart)
652
+ SharedDtor(*this);
653
+ }
654
+ inline void CallStart::SharedDtor(MessageLite& self) {
655
+ CallStart& this_ = static_cast<CallStart&>(self);
656
+ if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
657
+ this_.CheckHasBitConsistency();
658
+ }
659
+ this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
660
+ ABSL_DCHECK(this_.GetArena() == nullptr);
661
+ this_._impl_.rpc_service_.Destroy();
662
+ this_._impl_.rpc_method_.Destroy();
663
+ this_._impl_.data_.Destroy();
664
+ this_._impl_.~Impl_();
665
+ }
666
+
667
+ inline void* PROTOBUF_NONNULL CallStart::PlacementNew_(
668
+ const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
669
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
670
+ return ::new (mem) CallStart(arena);
671
+ }
672
+ constexpr auto CallStart::InternalNewImpl_() {
673
+ return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(CallStart),
674
+ alignof(CallStart));
675
+ }
676
+ constexpr auto CallStart::InternalGenerateClassData_() {
677
+ return ::google::protobuf::internal::ClassDataFull{
678
+ ::google::protobuf::internal::ClassData{
679
+ &_CallStart_default_instance_._instance,
680
+ &_table_.header,
681
+ nullptr, // OnDemandRegisterArenaDtor
682
+ nullptr, // IsInitialized
683
+ &CallStart::MergeImpl,
684
+ ::google::protobuf::Message::GetNewImpl<CallStart>(),
685
+ #if defined(PROTOBUF_CUSTOM_VTABLE)
686
+ &CallStart::SharedDtor,
687
+ ::google::protobuf::Message::GetClearImpl<CallStart>(), &CallStart::ByteSizeLong,
688
+ &CallStart::_InternalSerialize,
689
+ #endif // PROTOBUF_CUSTOM_VTABLE
690
+ PROTOBUF_FIELD_OFFSET(CallStart, _impl_._cached_size_),
691
+ false,
692
+ },
693
+ &CallStart::kDescriptorMethods,
694
+ &descriptor_table_github_2ecom_2faperturerobotics_2fstarpc_2fsrpc_2frpcproto_2eproto,
695
+ nullptr, // tracker
696
+ };
697
+ }
698
+
699
+ PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
700
+ ::google::protobuf::internal::ClassDataFull CallStart_class_data_ =
701
+ CallStart::InternalGenerateClassData_();
702
+
703
+ PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
704
+ CallStart::GetClassData() const {
705
+ ::google::protobuf::internal::PrefetchToLocalCache(&CallStart_class_data_);
706
+ ::google::protobuf::internal::PrefetchToLocalCache(CallStart_class_data_.tc_table);
707
+ return CallStart_class_data_.base();
708
+ }
709
+ PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
710
+ const ::_pbi::TcParseTable<2, 4, 0, 44, 2>
711
+ CallStart::_table_ = {
712
+ {
713
+ PROTOBUF_FIELD_OFFSET(CallStart, _impl_._has_bits_),
714
+ 0, // no _extensions_
715
+ 4, 24, // max_field_number, fast_idx_mask
716
+ offsetof(decltype(_table_), field_lookup_table),
717
+ 4294967280, // skipmap
718
+ offsetof(decltype(_table_), field_entries),
719
+ 4, // num_field_entries
720
+ 0, // num_aux_entries
721
+ offsetof(decltype(_table_), field_names), // no aux_entries
722
+ CallStart_class_data_.base(),
723
+ nullptr, // post_loop_handler
724
+ ::_pbi::TcParser::GenericFallback, // fallback
725
+ #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
726
+ ::_pbi::TcParser::GetTable<::srpc::CallStart>(), // to_prefetch
727
+ #endif // PROTOBUF_PREFETCH_PARSE_TABLE
728
+ }, {{
729
+ // bool data_is_zero = 4;
730
+ {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(CallStart, _impl_.data_is_zero_), 3>(),
731
+ {32, 3, 0,
732
+ PROTOBUF_FIELD_OFFSET(CallStart, _impl_.data_is_zero_)}},
733
+ // string rpc_service = 1;
734
+ {::_pbi::TcParser::FastUS1,
735
+ {10, 0, 0,
736
+ PROTOBUF_FIELD_OFFSET(CallStart, _impl_.rpc_service_)}},
737
+ // string rpc_method = 2;
738
+ {::_pbi::TcParser::FastUS1,
739
+ {18, 1, 0,
740
+ PROTOBUF_FIELD_OFFSET(CallStart, _impl_.rpc_method_)}},
741
+ // bytes data = 3;
742
+ {::_pbi::TcParser::FastBS1,
743
+ {26, 2, 0,
744
+ PROTOBUF_FIELD_OFFSET(CallStart, _impl_.data_)}},
745
+ }}, {{
746
+ 65535, 65535
747
+ }}, {{
748
+ // string rpc_service = 1;
749
+ {PROTOBUF_FIELD_OFFSET(CallStart, _impl_.rpc_service_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
750
+ // string rpc_method = 2;
751
+ {PROTOBUF_FIELD_OFFSET(CallStart, _impl_.rpc_method_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
752
+ // bytes data = 3;
753
+ {PROTOBUF_FIELD_OFFSET(CallStart, _impl_.data_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
754
+ // bool data_is_zero = 4;
755
+ {PROTOBUF_FIELD_OFFSET(CallStart, _impl_.data_is_zero_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
756
+ }},
757
+ // no aux_entries
758
+ {{
759
+ "\16\13\12\0\0\0\0\0"
760
+ "srpc.CallStart"
761
+ "rpc_service"
762
+ "rpc_method"
763
+ }},
764
+ };
765
+ PROTOBUF_NOINLINE void CallStart::Clear() {
766
+ // @@protoc_insertion_point(message_clear_start:srpc.CallStart)
767
+ ::google::protobuf::internal::TSanWrite(&_impl_);
768
+ ::uint32_t cached_has_bits = 0;
769
+ // Prevent compiler warnings about cached_has_bits being unused
770
+ (void) cached_has_bits;
771
+
772
+ cached_has_bits = _impl_._has_bits_[0];
773
+ if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
774
+ if (CheckHasBit(cached_has_bits, 0x00000001U)) {
775
+ _impl_.rpc_service_.ClearNonDefaultToEmpty();
776
+ }
777
+ if (CheckHasBit(cached_has_bits, 0x00000002U)) {
778
+ _impl_.rpc_method_.ClearNonDefaultToEmpty();
779
+ }
780
+ if (CheckHasBit(cached_has_bits, 0x00000004U)) {
781
+ _impl_.data_.ClearNonDefaultToEmpty();
782
+ }
783
+ }
784
+ _impl_.data_is_zero_ = false;
785
+ _impl_._has_bits_.Clear();
786
+ _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
787
+ }
788
+
789
+ #if defined(PROTOBUF_CUSTOM_VTABLE)
790
+ ::uint8_t* PROTOBUF_NONNULL CallStart::_InternalSerialize(
791
+ const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
792
+ ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
793
+ const CallStart& this_ = static_cast<const CallStart&>(base);
794
+ #else // PROTOBUF_CUSTOM_VTABLE
795
+ ::uint8_t* PROTOBUF_NONNULL CallStart::_InternalSerialize(
796
+ ::uint8_t* PROTOBUF_NONNULL target,
797
+ ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
798
+ const CallStart& this_ = *this;
799
+ #endif // PROTOBUF_CUSTOM_VTABLE
800
+ if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
801
+ this_.CheckHasBitConsistency();
802
+ }
803
+ // @@protoc_insertion_point(serialize_to_array_start:srpc.CallStart)
804
+ ::uint32_t cached_has_bits = 0;
805
+ (void)cached_has_bits;
806
+
807
+ cached_has_bits = this_._impl_._has_bits_[0];
808
+ // string rpc_service = 1;
809
+ if (CheckHasBit(cached_has_bits, 0x00000001U)) {
810
+ if (!this_._internal_rpc_service().empty()) {
811
+ const ::std::string& _s = this_._internal_rpc_service();
812
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
813
+ _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "srpc.CallStart.rpc_service");
814
+ target = stream->WriteStringMaybeAliased(1, _s, target);
815
+ }
816
+ }
817
+
818
+ // string rpc_method = 2;
819
+ if (CheckHasBit(cached_has_bits, 0x00000002U)) {
820
+ if (!this_._internal_rpc_method().empty()) {
821
+ const ::std::string& _s = this_._internal_rpc_method();
822
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
823
+ _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "srpc.CallStart.rpc_method");
824
+ target = stream->WriteStringMaybeAliased(2, _s, target);
825
+ }
826
+ }
827
+
828
+ // bytes data = 3;
829
+ if (CheckHasBit(cached_has_bits, 0x00000004U)) {
830
+ if (!this_._internal_data().empty()) {
831
+ const ::std::string& _s = this_._internal_data();
832
+ target = stream->WriteBytesMaybeAliased(3, _s, target);
833
+ }
834
+ }
835
+
836
+ // bool data_is_zero = 4;
837
+ if (CheckHasBit(cached_has_bits, 0x00000008U)) {
838
+ if (this_._internal_data_is_zero() != 0) {
839
+ target = stream->EnsureSpace(target);
840
+ target = ::_pbi::WireFormatLite::WriteBoolToArray(
841
+ 4, this_._internal_data_is_zero(), target);
842
+ }
843
+ }
844
+
845
+ if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
846
+ target =
847
+ ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
848
+ this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
849
+ }
850
+ // @@protoc_insertion_point(serialize_to_array_end:srpc.CallStart)
851
+ return target;
852
+ }
853
+
854
+ #if defined(PROTOBUF_CUSTOM_VTABLE)
855
+ ::size_t CallStart::ByteSizeLong(const MessageLite& base) {
856
+ const CallStart& this_ = static_cast<const CallStart&>(base);
857
+ #else // PROTOBUF_CUSTOM_VTABLE
858
+ ::size_t CallStart::ByteSizeLong() const {
859
+ const CallStart& this_ = *this;
860
+ #endif // PROTOBUF_CUSTOM_VTABLE
861
+ // @@protoc_insertion_point(message_byte_size_start:srpc.CallStart)
862
+ ::size_t total_size = 0;
863
+
864
+ ::uint32_t cached_has_bits = 0;
865
+ // Prevent compiler warnings about cached_has_bits being unused
866
+ (void)cached_has_bits;
867
+
868
+ ::_pbi::Prefetch5LinesFrom7Lines(&this_);
869
+ cached_has_bits = this_._impl_._has_bits_[0];
870
+ if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
871
+ // string rpc_service = 1;
872
+ if (CheckHasBit(cached_has_bits, 0x00000001U)) {
873
+ if (!this_._internal_rpc_service().empty()) {
874
+ total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
875
+ this_._internal_rpc_service());
876
+ }
877
+ }
878
+ // string rpc_method = 2;
879
+ if (CheckHasBit(cached_has_bits, 0x00000002U)) {
880
+ if (!this_._internal_rpc_method().empty()) {
881
+ total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
882
+ this_._internal_rpc_method());
883
+ }
884
+ }
885
+ // bytes data = 3;
886
+ if (CheckHasBit(cached_has_bits, 0x00000004U)) {
887
+ if (!this_._internal_data().empty()) {
888
+ total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
889
+ this_._internal_data());
890
+ }
891
+ }
892
+ // bool data_is_zero = 4;
893
+ if (CheckHasBit(cached_has_bits, 0x00000008U)) {
894
+ if (this_._internal_data_is_zero() != 0) {
895
+ total_size += 2;
896
+ }
897
+ }
898
+ }
899
+ return this_.MaybeComputeUnknownFieldsSize(total_size,
900
+ &this_._impl_._cached_size_);
901
+ }
902
+
903
+ void CallStart::MergeImpl(::google::protobuf::MessageLite& to_msg,
904
+ const ::google::protobuf::MessageLite& from_msg) {
905
+ auto* const _this =
906
+ static_cast<CallStart*>(&to_msg);
907
+ auto& from = static_cast<const CallStart&>(from_msg);
908
+ if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
909
+ from.CheckHasBitConsistency();
910
+ }
911
+ // @@protoc_insertion_point(class_specific_merge_from_start:srpc.CallStart)
912
+ ABSL_DCHECK_NE(&from, _this);
913
+ ::uint32_t cached_has_bits = 0;
914
+ (void)cached_has_bits;
915
+
916
+ cached_has_bits = from._impl_._has_bits_[0];
917
+ if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
918
+ if (CheckHasBit(cached_has_bits, 0x00000001U)) {
919
+ if (!from._internal_rpc_service().empty()) {
920
+ _this->_internal_set_rpc_service(from._internal_rpc_service());
921
+ } else {
922
+ if (_this->_impl_.rpc_service_.IsDefault()) {
923
+ _this->_internal_set_rpc_service("");
924
+ }
925
+ }
926
+ }
927
+ if (CheckHasBit(cached_has_bits, 0x00000002U)) {
928
+ if (!from._internal_rpc_method().empty()) {
929
+ _this->_internal_set_rpc_method(from._internal_rpc_method());
930
+ } else {
931
+ if (_this->_impl_.rpc_method_.IsDefault()) {
932
+ _this->_internal_set_rpc_method("");
933
+ }
934
+ }
935
+ }
936
+ if (CheckHasBit(cached_has_bits, 0x00000004U)) {
937
+ if (!from._internal_data().empty()) {
938
+ _this->_internal_set_data(from._internal_data());
939
+ } else {
940
+ if (_this->_impl_.data_.IsDefault()) {
941
+ _this->_internal_set_data("");
942
+ }
943
+ }
944
+ }
945
+ if (CheckHasBit(cached_has_bits, 0x00000008U)) {
946
+ if (from._internal_data_is_zero() != 0) {
947
+ _this->_impl_.data_is_zero_ = from._impl_.data_is_zero_;
948
+ }
949
+ }
950
+ }
951
+ _this->_impl_._has_bits_[0] |= cached_has_bits;
952
+ _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
953
+ from._internal_metadata_);
954
+ }
955
+
956
+ void CallStart::CopyFrom(const CallStart& from) {
957
+ // @@protoc_insertion_point(class_specific_copy_from_start:srpc.CallStart)
958
+ if (&from == this) return;
959
+ Clear();
960
+ MergeFrom(from);
961
+ }
962
+
963
+
964
+ void CallStart::InternalSwap(CallStart* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
965
+ using ::std::swap;
966
+ auto* arena = GetArena();
967
+ ABSL_DCHECK_EQ(arena, other->GetArena());
968
+ _internal_metadata_.InternalSwap(&other->_internal_metadata_);
969
+ swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
970
+ ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.rpc_service_, &other->_impl_.rpc_service_, arena);
971
+ ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.rpc_method_, &other->_impl_.rpc_method_, arena);
972
+ ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.data_, &other->_impl_.data_, arena);
973
+ swap(_impl_.data_is_zero_, other->_impl_.data_is_zero_);
974
+ }
975
+
976
+ ::google::protobuf::Metadata CallStart::GetMetadata() const {
977
+ return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
978
+ }
979
+ // ===================================================================
980
+
981
+ class CallData::_Internal {
982
+ public:
983
+ using HasBits =
984
+ decltype(::std::declval<CallData>()._impl_._has_bits_);
985
+ static constexpr ::int32_t kHasBitsOffset =
986
+ 8 * PROTOBUF_FIELD_OFFSET(CallData, _impl_._has_bits_);
987
+ };
988
+
989
+ CallData::CallData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
990
+ #if defined(PROTOBUF_CUSTOM_VTABLE)
991
+ : ::google::protobuf::Message(arena, CallData_class_data_.base()) {
992
+ #else // PROTOBUF_CUSTOM_VTABLE
993
+ : ::google::protobuf::Message(arena) {
994
+ #endif // PROTOBUF_CUSTOM_VTABLE
995
+ SharedCtor(arena);
996
+ // @@protoc_insertion_point(arena_constructor:srpc.CallData)
997
+ }
998
+ PROTOBUF_NDEBUG_INLINE CallData::Impl_::Impl_(
999
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1000
+ [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1001
+ [[maybe_unused]] const ::srpc::CallData& from_msg)
1002
+ : _has_bits_{from._has_bits_},
1003
+ _cached_size_{0},
1004
+ data_(arena, from.data_),
1005
+ error_(arena, from.error_) {}
1006
+
1007
+ CallData::CallData(
1008
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1009
+ const CallData& from)
1010
+ #if defined(PROTOBUF_CUSTOM_VTABLE)
1011
+ : ::google::protobuf::Message(arena, CallData_class_data_.base()) {
1012
+ #else // PROTOBUF_CUSTOM_VTABLE
1013
+ : ::google::protobuf::Message(arena) {
1014
+ #endif // PROTOBUF_CUSTOM_VTABLE
1015
+ CallData* const _this = this;
1016
+ (void)_this;
1017
+ _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1018
+ from._internal_metadata_);
1019
+ new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1020
+ ::memcpy(reinterpret_cast<char*>(&_impl_) +
1021
+ offsetof(Impl_, data_is_zero_),
1022
+ reinterpret_cast<const char*>(&from._impl_) +
1023
+ offsetof(Impl_, data_is_zero_),
1024
+ offsetof(Impl_, complete_) -
1025
+ offsetof(Impl_, data_is_zero_) +
1026
+ sizeof(Impl_::complete_));
1027
+
1028
+ // @@protoc_insertion_point(copy_constructor:srpc.CallData)
1029
+ }
1030
+ PROTOBUF_NDEBUG_INLINE CallData::Impl_::Impl_(
1031
+ [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1032
+ [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1033
+ : _cached_size_{0},
1034
+ data_(arena),
1035
+ error_(arena) {}
1036
+
1037
+ inline void CallData::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1038
+ new (&_impl_) Impl_(internal_visibility(), arena);
1039
+ ::memset(reinterpret_cast<char*>(&_impl_) +
1040
+ offsetof(Impl_, data_is_zero_),
1041
+ 0,
1042
+ offsetof(Impl_, complete_) -
1043
+ offsetof(Impl_, data_is_zero_) +
1044
+ sizeof(Impl_::complete_));
1045
+ }
1046
+ CallData::~CallData() {
1047
+ // @@protoc_insertion_point(destructor:srpc.CallData)
1048
+ SharedDtor(*this);
1049
+ }
1050
+ inline void CallData::SharedDtor(MessageLite& self) {
1051
+ CallData& this_ = static_cast<CallData&>(self);
1052
+ if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1053
+ this_.CheckHasBitConsistency();
1054
+ }
1055
+ this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1056
+ ABSL_DCHECK(this_.GetArena() == nullptr);
1057
+ this_._impl_.data_.Destroy();
1058
+ this_._impl_.error_.Destroy();
1059
+ this_._impl_.~Impl_();
1060
+ }
1061
+
1062
+ inline void* PROTOBUF_NONNULL CallData::PlacementNew_(
1063
+ const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1064
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1065
+ return ::new (mem) CallData(arena);
1066
+ }
1067
+ constexpr auto CallData::InternalNewImpl_() {
1068
+ return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(CallData),
1069
+ alignof(CallData));
1070
+ }
1071
+ constexpr auto CallData::InternalGenerateClassData_() {
1072
+ return ::google::protobuf::internal::ClassDataFull{
1073
+ ::google::protobuf::internal::ClassData{
1074
+ &_CallData_default_instance_._instance,
1075
+ &_table_.header,
1076
+ nullptr, // OnDemandRegisterArenaDtor
1077
+ nullptr, // IsInitialized
1078
+ &CallData::MergeImpl,
1079
+ ::google::protobuf::Message::GetNewImpl<CallData>(),
1080
+ #if defined(PROTOBUF_CUSTOM_VTABLE)
1081
+ &CallData::SharedDtor,
1082
+ ::google::protobuf::Message::GetClearImpl<CallData>(), &CallData::ByteSizeLong,
1083
+ &CallData::_InternalSerialize,
1084
+ #endif // PROTOBUF_CUSTOM_VTABLE
1085
+ PROTOBUF_FIELD_OFFSET(CallData, _impl_._cached_size_),
1086
+ false,
1087
+ },
1088
+ &CallData::kDescriptorMethods,
1089
+ &descriptor_table_github_2ecom_2faperturerobotics_2fstarpc_2fsrpc_2frpcproto_2eproto,
1090
+ nullptr, // tracker
1091
+ };
1092
+ }
1093
+
1094
+ PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1095
+ ::google::protobuf::internal::ClassDataFull CallData_class_data_ =
1096
+ CallData::InternalGenerateClassData_();
1097
+
1098
+ PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1099
+ CallData::GetClassData() const {
1100
+ ::google::protobuf::internal::PrefetchToLocalCache(&CallData_class_data_);
1101
+ ::google::protobuf::internal::PrefetchToLocalCache(CallData_class_data_.tc_table);
1102
+ return CallData_class_data_.base();
1103
+ }
1104
+ PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1105
+ const ::_pbi::TcParseTable<2, 4, 0, 27, 2>
1106
+ CallData::_table_ = {
1107
+ {
1108
+ PROTOBUF_FIELD_OFFSET(CallData, _impl_._has_bits_),
1109
+ 0, // no _extensions_
1110
+ 4, 24, // max_field_number, fast_idx_mask
1111
+ offsetof(decltype(_table_), field_lookup_table),
1112
+ 4294967280, // skipmap
1113
+ offsetof(decltype(_table_), field_entries),
1114
+ 4, // num_field_entries
1115
+ 0, // num_aux_entries
1116
+ offsetof(decltype(_table_), field_names), // no aux_entries
1117
+ CallData_class_data_.base(),
1118
+ nullptr, // post_loop_handler
1119
+ ::_pbi::TcParser::GenericFallback, // fallback
1120
+ #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1121
+ ::_pbi::TcParser::GetTable<::srpc::CallData>(), // to_prefetch
1122
+ #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1123
+ }, {{
1124
+ // string error = 4;
1125
+ {::_pbi::TcParser::FastUS1,
1126
+ {34, 1, 0,
1127
+ PROTOBUF_FIELD_OFFSET(CallData, _impl_.error_)}},
1128
+ // bytes data = 1;
1129
+ {::_pbi::TcParser::FastBS1,
1130
+ {10, 0, 0,
1131
+ PROTOBUF_FIELD_OFFSET(CallData, _impl_.data_)}},
1132
+ // bool data_is_zero = 2;
1133
+ {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(CallData, _impl_.data_is_zero_), 2>(),
1134
+ {16, 2, 0,
1135
+ PROTOBUF_FIELD_OFFSET(CallData, _impl_.data_is_zero_)}},
1136
+ // bool complete = 3;
1137
+ {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(CallData, _impl_.complete_), 3>(),
1138
+ {24, 3, 0,
1139
+ PROTOBUF_FIELD_OFFSET(CallData, _impl_.complete_)}},
1140
+ }}, {{
1141
+ 65535, 65535
1142
+ }}, {{
1143
+ // bytes data = 1;
1144
+ {PROTOBUF_FIELD_OFFSET(CallData, _impl_.data_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
1145
+ // bool data_is_zero = 2;
1146
+ {PROTOBUF_FIELD_OFFSET(CallData, _impl_.data_is_zero_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
1147
+ // bool complete = 3;
1148
+ {PROTOBUF_FIELD_OFFSET(CallData, _impl_.complete_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
1149
+ // string error = 4;
1150
+ {PROTOBUF_FIELD_OFFSET(CallData, _impl_.error_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
1151
+ }},
1152
+ // no aux_entries
1153
+ {{
1154
+ "\15\0\0\0\5\0\0\0"
1155
+ "srpc.CallData"
1156
+ "error"
1157
+ }},
1158
+ };
1159
+ PROTOBUF_NOINLINE void CallData::Clear() {
1160
+ // @@protoc_insertion_point(message_clear_start:srpc.CallData)
1161
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1162
+ ::uint32_t cached_has_bits = 0;
1163
+ // Prevent compiler warnings about cached_has_bits being unused
1164
+ (void) cached_has_bits;
1165
+
1166
+ cached_has_bits = _impl_._has_bits_[0];
1167
+ if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
1168
+ if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1169
+ _impl_.data_.ClearNonDefaultToEmpty();
1170
+ }
1171
+ if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1172
+ _impl_.error_.ClearNonDefaultToEmpty();
1173
+ }
1174
+ }
1175
+ ::memset(&_impl_.data_is_zero_, 0, static_cast<::size_t>(
1176
+ reinterpret_cast<char*>(&_impl_.complete_) -
1177
+ reinterpret_cast<char*>(&_impl_.data_is_zero_)) + sizeof(_impl_.complete_));
1178
+ _impl_._has_bits_.Clear();
1179
+ _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1180
+ }
1181
+
1182
+ #if defined(PROTOBUF_CUSTOM_VTABLE)
1183
+ ::uint8_t* PROTOBUF_NONNULL CallData::_InternalSerialize(
1184
+ const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1185
+ ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1186
+ const CallData& this_ = static_cast<const CallData&>(base);
1187
+ #else // PROTOBUF_CUSTOM_VTABLE
1188
+ ::uint8_t* PROTOBUF_NONNULL CallData::_InternalSerialize(
1189
+ ::uint8_t* PROTOBUF_NONNULL target,
1190
+ ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1191
+ const CallData& this_ = *this;
1192
+ #endif // PROTOBUF_CUSTOM_VTABLE
1193
+ if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1194
+ this_.CheckHasBitConsistency();
1195
+ }
1196
+ // @@protoc_insertion_point(serialize_to_array_start:srpc.CallData)
1197
+ ::uint32_t cached_has_bits = 0;
1198
+ (void)cached_has_bits;
1199
+
1200
+ cached_has_bits = this_._impl_._has_bits_[0];
1201
+ // bytes data = 1;
1202
+ if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1203
+ if (!this_._internal_data().empty()) {
1204
+ const ::std::string& _s = this_._internal_data();
1205
+ target = stream->WriteBytesMaybeAliased(1, _s, target);
1206
+ }
1207
+ }
1208
+
1209
+ // bool data_is_zero = 2;
1210
+ if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1211
+ if (this_._internal_data_is_zero() != 0) {
1212
+ target = stream->EnsureSpace(target);
1213
+ target = ::_pbi::WireFormatLite::WriteBoolToArray(
1214
+ 2, this_._internal_data_is_zero(), target);
1215
+ }
1216
+ }
1217
+
1218
+ // bool complete = 3;
1219
+ if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1220
+ if (this_._internal_complete() != 0) {
1221
+ target = stream->EnsureSpace(target);
1222
+ target = ::_pbi::WireFormatLite::WriteBoolToArray(
1223
+ 3, this_._internal_complete(), target);
1224
+ }
1225
+ }
1226
+
1227
+ // string error = 4;
1228
+ if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1229
+ if (!this_._internal_error().empty()) {
1230
+ const ::std::string& _s = this_._internal_error();
1231
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1232
+ _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "srpc.CallData.error");
1233
+ target = stream->WriteStringMaybeAliased(4, _s, target);
1234
+ }
1235
+ }
1236
+
1237
+ if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1238
+ target =
1239
+ ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1240
+ this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1241
+ }
1242
+ // @@protoc_insertion_point(serialize_to_array_end:srpc.CallData)
1243
+ return target;
1244
+ }
1245
+
1246
+ #if defined(PROTOBUF_CUSTOM_VTABLE)
1247
+ ::size_t CallData::ByteSizeLong(const MessageLite& base) {
1248
+ const CallData& this_ = static_cast<const CallData&>(base);
1249
+ #else // PROTOBUF_CUSTOM_VTABLE
1250
+ ::size_t CallData::ByteSizeLong() const {
1251
+ const CallData& this_ = *this;
1252
+ #endif // PROTOBUF_CUSTOM_VTABLE
1253
+ // @@protoc_insertion_point(message_byte_size_start:srpc.CallData)
1254
+ ::size_t total_size = 0;
1255
+
1256
+ ::uint32_t cached_has_bits = 0;
1257
+ // Prevent compiler warnings about cached_has_bits being unused
1258
+ (void)cached_has_bits;
1259
+
1260
+ ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1261
+ cached_has_bits = this_._impl_._has_bits_[0];
1262
+ if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
1263
+ // bytes data = 1;
1264
+ if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1265
+ if (!this_._internal_data().empty()) {
1266
+ total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
1267
+ this_._internal_data());
1268
+ }
1269
+ }
1270
+ // string error = 4;
1271
+ if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1272
+ if (!this_._internal_error().empty()) {
1273
+ total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
1274
+ this_._internal_error());
1275
+ }
1276
+ }
1277
+ // bool data_is_zero = 2;
1278
+ if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1279
+ if (this_._internal_data_is_zero() != 0) {
1280
+ total_size += 2;
1281
+ }
1282
+ }
1283
+ // bool complete = 3;
1284
+ if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1285
+ if (this_._internal_complete() != 0) {
1286
+ total_size += 2;
1287
+ }
1288
+ }
1289
+ }
1290
+ return this_.MaybeComputeUnknownFieldsSize(total_size,
1291
+ &this_._impl_._cached_size_);
1292
+ }
1293
+
1294
+ void CallData::MergeImpl(::google::protobuf::MessageLite& to_msg,
1295
+ const ::google::protobuf::MessageLite& from_msg) {
1296
+ auto* const _this =
1297
+ static_cast<CallData*>(&to_msg);
1298
+ auto& from = static_cast<const CallData&>(from_msg);
1299
+ if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1300
+ from.CheckHasBitConsistency();
1301
+ }
1302
+ // @@protoc_insertion_point(class_specific_merge_from_start:srpc.CallData)
1303
+ ABSL_DCHECK_NE(&from, _this);
1304
+ ::uint32_t cached_has_bits = 0;
1305
+ (void)cached_has_bits;
1306
+
1307
+ cached_has_bits = from._impl_._has_bits_[0];
1308
+ if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
1309
+ if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1310
+ if (!from._internal_data().empty()) {
1311
+ _this->_internal_set_data(from._internal_data());
1312
+ } else {
1313
+ if (_this->_impl_.data_.IsDefault()) {
1314
+ _this->_internal_set_data("");
1315
+ }
1316
+ }
1317
+ }
1318
+ if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1319
+ if (!from._internal_error().empty()) {
1320
+ _this->_internal_set_error(from._internal_error());
1321
+ } else {
1322
+ if (_this->_impl_.error_.IsDefault()) {
1323
+ _this->_internal_set_error("");
1324
+ }
1325
+ }
1326
+ }
1327
+ if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1328
+ if (from._internal_data_is_zero() != 0) {
1329
+ _this->_impl_.data_is_zero_ = from._impl_.data_is_zero_;
1330
+ }
1331
+ }
1332
+ if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1333
+ if (from._internal_complete() != 0) {
1334
+ _this->_impl_.complete_ = from._impl_.complete_;
1335
+ }
1336
+ }
1337
+ }
1338
+ _this->_impl_._has_bits_[0] |= cached_has_bits;
1339
+ _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1340
+ from._internal_metadata_);
1341
+ }
1342
+
1343
+ void CallData::CopyFrom(const CallData& from) {
1344
+ // @@protoc_insertion_point(class_specific_copy_from_start:srpc.CallData)
1345
+ if (&from == this) return;
1346
+ Clear();
1347
+ MergeFrom(from);
1348
+ }
1349
+
1350
+
1351
+ void CallData::InternalSwap(CallData* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1352
+ using ::std::swap;
1353
+ auto* arena = GetArena();
1354
+ ABSL_DCHECK_EQ(arena, other->GetArena());
1355
+ _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1356
+ swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1357
+ ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.data_, &other->_impl_.data_, arena);
1358
+ ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.error_, &other->_impl_.error_, arena);
1359
+ ::google::protobuf::internal::memswap<
1360
+ PROTOBUF_FIELD_OFFSET(CallData, _impl_.complete_)
1361
+ + sizeof(CallData::_impl_.complete_)
1362
+ - PROTOBUF_FIELD_OFFSET(CallData, _impl_.data_is_zero_)>(
1363
+ reinterpret_cast<char*>(&_impl_.data_is_zero_),
1364
+ reinterpret_cast<char*>(&other->_impl_.data_is_zero_));
1365
+ }
1366
+
1367
+ ::google::protobuf::Metadata CallData::GetMetadata() const {
1368
+ return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1369
+ }
1370
+ // @@protoc_insertion_point(namespace_scope)
1371
+ } // namespace srpc
1372
+ namespace google {
1373
+ namespace protobuf {
1374
+ } // namespace protobuf
1375
+ } // namespace google
1376
+ // @@protoc_insertion_point(global_scope)
1377
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
1378
+ _static_init2_ [[maybe_unused]] =
1379
+ (::_pbi::AddDescriptors(&descriptor_table_github_2ecom_2faperturerobotics_2fstarpc_2fsrpc_2frpcproto_2eproto),
1380
+ ::std::false_type{});
1381
+ #include "google/protobuf/port_undef.inc"