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,1451 @@
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
+ #ifndef github_2ecom_2faperturerobotics_2fstarpc_2fsrpc_2frpcproto_2eproto_2epb_2eh
9
+ #define github_2ecom_2faperturerobotics_2fstarpc_2fsrpc_2frpcproto_2eproto_2epb_2eh
10
+
11
+ #include <limits>
12
+ #include <string>
13
+ #include <type_traits>
14
+ #include <utility>
15
+
16
+ #include "google/protobuf/runtime_version.h"
17
+ #if PROTOBUF_VERSION != 6033004
18
+ #error "Protobuf C++ gencode is built with an incompatible version of"
19
+ #error "Protobuf C++ headers/runtime. See"
20
+ #error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
21
+ #endif
22
+ #include "google/protobuf/io/coded_stream.h"
23
+ #include "google/protobuf/arena.h"
24
+ #include "google/protobuf/arenastring.h"
25
+ #include "google/protobuf/generated_message_tctable_decl.h"
26
+ #include "google/protobuf/generated_message_util.h"
27
+ #include "google/protobuf/metadata_lite.h"
28
+ #include "google/protobuf/generated_message_reflection.h"
29
+ #include "google/protobuf/message.h"
30
+ #include "google/protobuf/message_lite.h"
31
+ #include "google/protobuf/repeated_field.h" // IWYU pragma: export
32
+ #include "google/protobuf/extension_set.h" // IWYU pragma: export
33
+ #include "google/protobuf/unknown_field_set.h"
34
+ // @@protoc_insertion_point(includes)
35
+
36
+ // Must be included last.
37
+ #include "google/protobuf/port_def.inc"
38
+
39
+ #define PROTOBUF_INTERNAL_EXPORT_github_2ecom_2faperturerobotics_2fstarpc_2fsrpc_2frpcproto_2eproto
40
+
41
+ namespace google {
42
+ namespace protobuf {
43
+ namespace internal {
44
+ template <typename T>
45
+ ::absl::string_view GetAnyMessageName();
46
+ } // namespace internal
47
+ } // namespace protobuf
48
+ } // namespace google
49
+
50
+ // Internal implementation detail -- do not use these members.
51
+ struct TableStruct_github_2ecom_2faperturerobotics_2fstarpc_2fsrpc_2frpcproto_2eproto {
52
+ static const ::uint32_t offsets[];
53
+ };
54
+ extern "C" {
55
+ extern const ::google::protobuf::internal::DescriptorTable descriptor_table_github_2ecom_2faperturerobotics_2fstarpc_2fsrpc_2frpcproto_2eproto;
56
+ } // extern "C"
57
+ namespace srpc {
58
+ class CallData;
59
+ struct CallDataDefaultTypeInternal;
60
+ extern CallDataDefaultTypeInternal _CallData_default_instance_;
61
+ extern const ::google::protobuf::internal::ClassDataFull CallData_class_data_;
62
+ class CallStart;
63
+ struct CallStartDefaultTypeInternal;
64
+ extern CallStartDefaultTypeInternal _CallStart_default_instance_;
65
+ extern const ::google::protobuf::internal::ClassDataFull CallStart_class_data_;
66
+ class Packet;
67
+ struct PacketDefaultTypeInternal;
68
+ extern PacketDefaultTypeInternal _Packet_default_instance_;
69
+ extern const ::google::protobuf::internal::ClassDataFull Packet_class_data_;
70
+ } // namespace srpc
71
+ namespace google {
72
+ namespace protobuf {
73
+ } // namespace protobuf
74
+ } // namespace google
75
+
76
+ namespace srpc {
77
+
78
+ // ===================================================================
79
+
80
+
81
+ // -------------------------------------------------------------------
82
+
83
+ class CallStart final : public ::google::protobuf::Message
84
+ /* @@protoc_insertion_point(class_definition:srpc.CallStart) */ {
85
+ public:
86
+ inline CallStart() : CallStart(nullptr) {}
87
+ ~CallStart() PROTOBUF_FINAL;
88
+
89
+ #if defined(PROTOBUF_CUSTOM_VTABLE)
90
+ void operator delete(CallStart* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
91
+ SharedDtor(*msg);
92
+ ::google::protobuf::internal::SizedDelete(msg, sizeof(CallStart));
93
+ }
94
+ #endif
95
+
96
+ template <typename = void>
97
+ explicit PROTOBUF_CONSTEXPR CallStart(::google::protobuf::internal::ConstantInitialized);
98
+
99
+ inline CallStart(const CallStart& from) : CallStart(nullptr, from) {}
100
+ inline CallStart(CallStart&& from) noexcept
101
+ : CallStart(nullptr, ::std::move(from)) {}
102
+ inline CallStart& operator=(const CallStart& from) {
103
+ CopyFrom(from);
104
+ return *this;
105
+ }
106
+ inline CallStart& operator=(CallStart&& from) noexcept {
107
+ if (this == &from) return *this;
108
+ if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
109
+ InternalSwap(&from);
110
+ } else {
111
+ CopyFrom(from);
112
+ }
113
+ return *this;
114
+ }
115
+
116
+ inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
117
+ ABSL_ATTRIBUTE_LIFETIME_BOUND {
118
+ return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
119
+ }
120
+ inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
121
+ ABSL_ATTRIBUTE_LIFETIME_BOUND {
122
+ return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
123
+ }
124
+
125
+ static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
126
+ return GetDescriptor();
127
+ }
128
+ static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
129
+ return default_instance().GetMetadata().descriptor;
130
+ }
131
+ static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
132
+ return default_instance().GetMetadata().reflection;
133
+ }
134
+ static const CallStart& default_instance() {
135
+ return *reinterpret_cast<const CallStart*>(
136
+ &_CallStart_default_instance_);
137
+ }
138
+ static constexpr int kIndexInFileMessages = 1;
139
+ friend void swap(CallStart& a, CallStart& b) { a.Swap(&b); }
140
+ inline void Swap(CallStart* PROTOBUF_NONNULL other) {
141
+ if (other == this) return;
142
+ if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
143
+ InternalSwap(other);
144
+ } else {
145
+ ::google::protobuf::internal::GenericSwap(this, other);
146
+ }
147
+ }
148
+ void UnsafeArenaSwap(CallStart* PROTOBUF_NONNULL other) {
149
+ if (other == this) return;
150
+ ABSL_DCHECK(GetArena() == other->GetArena());
151
+ InternalSwap(other);
152
+ }
153
+
154
+ // implements Message ----------------------------------------------
155
+
156
+ CallStart* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
157
+ return ::google::protobuf::Message::DefaultConstruct<CallStart>(arena);
158
+ }
159
+ using ::google::protobuf::Message::CopyFrom;
160
+ void CopyFrom(const CallStart& from);
161
+ using ::google::protobuf::Message::MergeFrom;
162
+ void MergeFrom(const CallStart& from) { CallStart::MergeImpl(*this, from); }
163
+
164
+ private:
165
+ static void MergeImpl(::google::protobuf::MessageLite& to_msg,
166
+ const ::google::protobuf::MessageLite& from_msg);
167
+
168
+ public:
169
+ bool IsInitialized() const {
170
+ return true;
171
+ }
172
+ ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
173
+ #if defined(PROTOBUF_CUSTOM_VTABLE)
174
+ private:
175
+ static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
176
+ static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
177
+ const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
178
+ ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
179
+
180
+ public:
181
+ ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
182
+ ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
183
+ ::uint8_t* PROTOBUF_NONNULL target,
184
+ ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
185
+ return _InternalSerialize(*this, target, stream);
186
+ }
187
+ #else // PROTOBUF_CUSTOM_VTABLE
188
+ ::size_t ByteSizeLong() const final;
189
+ ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
190
+ ::uint8_t* PROTOBUF_NONNULL target,
191
+ ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
192
+ #endif // PROTOBUF_CUSTOM_VTABLE
193
+ int GetCachedSize() const { return _impl_._cached_size_.Get(); }
194
+
195
+ private:
196
+ void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
197
+ static void SharedDtor(MessageLite& self);
198
+ void InternalSwap(CallStart* PROTOBUF_NONNULL other);
199
+ private:
200
+ template <typename T>
201
+ friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
202
+ static ::absl::string_view FullMessageName() { return "srpc.CallStart"; }
203
+
204
+ explicit CallStart(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
205
+ CallStart(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CallStart& from);
206
+ CallStart(
207
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, CallStart&& from) noexcept
208
+ : CallStart(arena) {
209
+ *this = ::std::move(from);
210
+ }
211
+ const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
212
+ static void* PROTOBUF_NONNULL PlacementNew_(
213
+ const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
214
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
215
+ static constexpr auto InternalNewImpl_();
216
+
217
+ public:
218
+ static constexpr auto InternalGenerateClassData_();
219
+
220
+ ::google::protobuf::Metadata GetMetadata() const;
221
+ // nested types ----------------------------------------------------
222
+
223
+ // accessors -------------------------------------------------------
224
+ enum : int {
225
+ kRpcServiceFieldNumber = 1,
226
+ kRpcMethodFieldNumber = 2,
227
+ kDataFieldNumber = 3,
228
+ kDataIsZeroFieldNumber = 4,
229
+ };
230
+ // string rpc_service = 1;
231
+ void clear_rpc_service() ;
232
+ const ::std::string& rpc_service() const;
233
+ template <typename Arg_ = const ::std::string&, typename... Args_>
234
+ void set_rpc_service(Arg_&& arg, Args_... args);
235
+ ::std::string* PROTOBUF_NONNULL mutable_rpc_service();
236
+ [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_rpc_service();
237
+ void set_allocated_rpc_service(::std::string* PROTOBUF_NULLABLE value);
238
+
239
+ private:
240
+ const ::std::string& _internal_rpc_service() const;
241
+ PROTOBUF_ALWAYS_INLINE void _internal_set_rpc_service(const ::std::string& value);
242
+ ::std::string* PROTOBUF_NONNULL _internal_mutable_rpc_service();
243
+
244
+ public:
245
+ // string rpc_method = 2;
246
+ void clear_rpc_method() ;
247
+ const ::std::string& rpc_method() const;
248
+ template <typename Arg_ = const ::std::string&, typename... Args_>
249
+ void set_rpc_method(Arg_&& arg, Args_... args);
250
+ ::std::string* PROTOBUF_NONNULL mutable_rpc_method();
251
+ [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_rpc_method();
252
+ void set_allocated_rpc_method(::std::string* PROTOBUF_NULLABLE value);
253
+
254
+ private:
255
+ const ::std::string& _internal_rpc_method() const;
256
+ PROTOBUF_ALWAYS_INLINE void _internal_set_rpc_method(const ::std::string& value);
257
+ ::std::string* PROTOBUF_NONNULL _internal_mutable_rpc_method();
258
+
259
+ public:
260
+ // bytes data = 3;
261
+ void clear_data() ;
262
+ const ::std::string& data() const;
263
+ template <typename Arg_ = const ::std::string&, typename... Args_>
264
+ void set_data(Arg_&& arg, Args_... args);
265
+ ::std::string* PROTOBUF_NONNULL mutable_data();
266
+ [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_data();
267
+ void set_allocated_data(::std::string* PROTOBUF_NULLABLE value);
268
+
269
+ private:
270
+ const ::std::string& _internal_data() const;
271
+ PROTOBUF_ALWAYS_INLINE void _internal_set_data(const ::std::string& value);
272
+ ::std::string* PROTOBUF_NONNULL _internal_mutable_data();
273
+
274
+ public:
275
+ // bool data_is_zero = 4;
276
+ void clear_data_is_zero() ;
277
+ bool data_is_zero() const;
278
+ void set_data_is_zero(bool value);
279
+
280
+ private:
281
+ bool _internal_data_is_zero() const;
282
+ void _internal_set_data_is_zero(bool value);
283
+
284
+ public:
285
+ // @@protoc_insertion_point(class_scope:srpc.CallStart)
286
+ private:
287
+ class _Internal;
288
+ friend class ::google::protobuf::internal::TcParser;
289
+ static const ::google::protobuf::internal::TcParseTable<2, 4,
290
+ 0, 44,
291
+ 2>
292
+ _table_;
293
+
294
+ friend class ::google::protobuf::MessageLite;
295
+ friend class ::google::protobuf::Arena;
296
+ template <typename T>
297
+ friend class ::google::protobuf::Arena::InternalHelper;
298
+ using InternalArenaConstructable_ = void;
299
+ using DestructorSkippable_ = void;
300
+ struct Impl_ {
301
+ inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
302
+ inline explicit Impl_(
303
+ ::google::protobuf::internal::InternalVisibility visibility,
304
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
305
+ inline explicit Impl_(
306
+ ::google::protobuf::internal::InternalVisibility visibility,
307
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
308
+ const CallStart& from_msg);
309
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
310
+ ::google::protobuf::internal::CachedSize _cached_size_;
311
+ ::google::protobuf::internal::ArenaStringPtr rpc_service_;
312
+ ::google::protobuf::internal::ArenaStringPtr rpc_method_;
313
+ ::google::protobuf::internal::ArenaStringPtr data_;
314
+ bool data_is_zero_;
315
+ PROTOBUF_TSAN_DECLARE_MEMBER
316
+ };
317
+ union { Impl_ _impl_; };
318
+ friend struct ::TableStruct_github_2ecom_2faperturerobotics_2fstarpc_2fsrpc_2frpcproto_2eproto;
319
+ };
320
+
321
+ extern const ::google::protobuf::internal::ClassDataFull CallStart_class_data_;
322
+ // -------------------------------------------------------------------
323
+
324
+ class CallData final : public ::google::protobuf::Message
325
+ /* @@protoc_insertion_point(class_definition:srpc.CallData) */ {
326
+ public:
327
+ inline CallData() : CallData(nullptr) {}
328
+ ~CallData() PROTOBUF_FINAL;
329
+
330
+ #if defined(PROTOBUF_CUSTOM_VTABLE)
331
+ void operator delete(CallData* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
332
+ SharedDtor(*msg);
333
+ ::google::protobuf::internal::SizedDelete(msg, sizeof(CallData));
334
+ }
335
+ #endif
336
+
337
+ template <typename = void>
338
+ explicit PROTOBUF_CONSTEXPR CallData(::google::protobuf::internal::ConstantInitialized);
339
+
340
+ inline CallData(const CallData& from) : CallData(nullptr, from) {}
341
+ inline CallData(CallData&& from) noexcept
342
+ : CallData(nullptr, ::std::move(from)) {}
343
+ inline CallData& operator=(const CallData& from) {
344
+ CopyFrom(from);
345
+ return *this;
346
+ }
347
+ inline CallData& operator=(CallData&& from) noexcept {
348
+ if (this == &from) return *this;
349
+ if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
350
+ InternalSwap(&from);
351
+ } else {
352
+ CopyFrom(from);
353
+ }
354
+ return *this;
355
+ }
356
+
357
+ inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
358
+ ABSL_ATTRIBUTE_LIFETIME_BOUND {
359
+ return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
360
+ }
361
+ inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
362
+ ABSL_ATTRIBUTE_LIFETIME_BOUND {
363
+ return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
364
+ }
365
+
366
+ static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
367
+ return GetDescriptor();
368
+ }
369
+ static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
370
+ return default_instance().GetMetadata().descriptor;
371
+ }
372
+ static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
373
+ return default_instance().GetMetadata().reflection;
374
+ }
375
+ static const CallData& default_instance() {
376
+ return *reinterpret_cast<const CallData*>(
377
+ &_CallData_default_instance_);
378
+ }
379
+ static constexpr int kIndexInFileMessages = 2;
380
+ friend void swap(CallData& a, CallData& b) { a.Swap(&b); }
381
+ inline void Swap(CallData* PROTOBUF_NONNULL other) {
382
+ if (other == this) return;
383
+ if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
384
+ InternalSwap(other);
385
+ } else {
386
+ ::google::protobuf::internal::GenericSwap(this, other);
387
+ }
388
+ }
389
+ void UnsafeArenaSwap(CallData* PROTOBUF_NONNULL other) {
390
+ if (other == this) return;
391
+ ABSL_DCHECK(GetArena() == other->GetArena());
392
+ InternalSwap(other);
393
+ }
394
+
395
+ // implements Message ----------------------------------------------
396
+
397
+ CallData* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
398
+ return ::google::protobuf::Message::DefaultConstruct<CallData>(arena);
399
+ }
400
+ using ::google::protobuf::Message::CopyFrom;
401
+ void CopyFrom(const CallData& from);
402
+ using ::google::protobuf::Message::MergeFrom;
403
+ void MergeFrom(const CallData& from) { CallData::MergeImpl(*this, from); }
404
+
405
+ private:
406
+ static void MergeImpl(::google::protobuf::MessageLite& to_msg,
407
+ const ::google::protobuf::MessageLite& from_msg);
408
+
409
+ public:
410
+ bool IsInitialized() const {
411
+ return true;
412
+ }
413
+ ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
414
+ #if defined(PROTOBUF_CUSTOM_VTABLE)
415
+ private:
416
+ static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
417
+ static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
418
+ const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
419
+ ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
420
+
421
+ public:
422
+ ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
423
+ ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
424
+ ::uint8_t* PROTOBUF_NONNULL target,
425
+ ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
426
+ return _InternalSerialize(*this, target, stream);
427
+ }
428
+ #else // PROTOBUF_CUSTOM_VTABLE
429
+ ::size_t ByteSizeLong() const final;
430
+ ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
431
+ ::uint8_t* PROTOBUF_NONNULL target,
432
+ ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
433
+ #endif // PROTOBUF_CUSTOM_VTABLE
434
+ int GetCachedSize() const { return _impl_._cached_size_.Get(); }
435
+
436
+ private:
437
+ void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
438
+ static void SharedDtor(MessageLite& self);
439
+ void InternalSwap(CallData* PROTOBUF_NONNULL other);
440
+ private:
441
+ template <typename T>
442
+ friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
443
+ static ::absl::string_view FullMessageName() { return "srpc.CallData"; }
444
+
445
+ explicit CallData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
446
+ CallData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CallData& from);
447
+ CallData(
448
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, CallData&& from) noexcept
449
+ : CallData(arena) {
450
+ *this = ::std::move(from);
451
+ }
452
+ const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
453
+ static void* PROTOBUF_NONNULL PlacementNew_(
454
+ const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
455
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
456
+ static constexpr auto InternalNewImpl_();
457
+
458
+ public:
459
+ static constexpr auto InternalGenerateClassData_();
460
+
461
+ ::google::protobuf::Metadata GetMetadata() const;
462
+ // nested types ----------------------------------------------------
463
+
464
+ // accessors -------------------------------------------------------
465
+ enum : int {
466
+ kDataFieldNumber = 1,
467
+ kErrorFieldNumber = 4,
468
+ kDataIsZeroFieldNumber = 2,
469
+ kCompleteFieldNumber = 3,
470
+ };
471
+ // bytes data = 1;
472
+ void clear_data() ;
473
+ const ::std::string& data() const;
474
+ template <typename Arg_ = const ::std::string&, typename... Args_>
475
+ void set_data(Arg_&& arg, Args_... args);
476
+ ::std::string* PROTOBUF_NONNULL mutable_data();
477
+ [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_data();
478
+ void set_allocated_data(::std::string* PROTOBUF_NULLABLE value);
479
+
480
+ private:
481
+ const ::std::string& _internal_data() const;
482
+ PROTOBUF_ALWAYS_INLINE void _internal_set_data(const ::std::string& value);
483
+ ::std::string* PROTOBUF_NONNULL _internal_mutable_data();
484
+
485
+ public:
486
+ // string error = 4;
487
+ void clear_error() ;
488
+ const ::std::string& error() const;
489
+ template <typename Arg_ = const ::std::string&, typename... Args_>
490
+ void set_error(Arg_&& arg, Args_... args);
491
+ ::std::string* PROTOBUF_NONNULL mutable_error();
492
+ [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_error();
493
+ void set_allocated_error(::std::string* PROTOBUF_NULLABLE value);
494
+
495
+ private:
496
+ const ::std::string& _internal_error() const;
497
+ PROTOBUF_ALWAYS_INLINE void _internal_set_error(const ::std::string& value);
498
+ ::std::string* PROTOBUF_NONNULL _internal_mutable_error();
499
+
500
+ public:
501
+ // bool data_is_zero = 2;
502
+ void clear_data_is_zero() ;
503
+ bool data_is_zero() const;
504
+ void set_data_is_zero(bool value);
505
+
506
+ private:
507
+ bool _internal_data_is_zero() const;
508
+ void _internal_set_data_is_zero(bool value);
509
+
510
+ public:
511
+ // bool complete = 3;
512
+ void clear_complete() ;
513
+ bool complete() const;
514
+ void set_complete(bool value);
515
+
516
+ private:
517
+ bool _internal_complete() const;
518
+ void _internal_set_complete(bool value);
519
+
520
+ public:
521
+ // @@protoc_insertion_point(class_scope:srpc.CallData)
522
+ private:
523
+ class _Internal;
524
+ friend class ::google::protobuf::internal::TcParser;
525
+ static const ::google::protobuf::internal::TcParseTable<2, 4,
526
+ 0, 27,
527
+ 2>
528
+ _table_;
529
+
530
+ friend class ::google::protobuf::MessageLite;
531
+ friend class ::google::protobuf::Arena;
532
+ template <typename T>
533
+ friend class ::google::protobuf::Arena::InternalHelper;
534
+ using InternalArenaConstructable_ = void;
535
+ using DestructorSkippable_ = void;
536
+ struct Impl_ {
537
+ inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
538
+ inline explicit Impl_(
539
+ ::google::protobuf::internal::InternalVisibility visibility,
540
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
541
+ inline explicit Impl_(
542
+ ::google::protobuf::internal::InternalVisibility visibility,
543
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
544
+ const CallData& from_msg);
545
+ ::google::protobuf::internal::HasBits<1> _has_bits_;
546
+ ::google::protobuf::internal::CachedSize _cached_size_;
547
+ ::google::protobuf::internal::ArenaStringPtr data_;
548
+ ::google::protobuf::internal::ArenaStringPtr error_;
549
+ bool data_is_zero_;
550
+ bool complete_;
551
+ PROTOBUF_TSAN_DECLARE_MEMBER
552
+ };
553
+ union { Impl_ _impl_; };
554
+ friend struct ::TableStruct_github_2ecom_2faperturerobotics_2fstarpc_2fsrpc_2frpcproto_2eproto;
555
+ };
556
+
557
+ extern const ::google::protobuf::internal::ClassDataFull CallData_class_data_;
558
+ // -------------------------------------------------------------------
559
+
560
+ class Packet final : public ::google::protobuf::Message
561
+ /* @@protoc_insertion_point(class_definition:srpc.Packet) */ {
562
+ public:
563
+ inline Packet() : Packet(nullptr) {}
564
+ ~Packet() PROTOBUF_FINAL;
565
+
566
+ #if defined(PROTOBUF_CUSTOM_VTABLE)
567
+ void operator delete(Packet* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
568
+ SharedDtor(*msg);
569
+ ::google::protobuf::internal::SizedDelete(msg, sizeof(Packet));
570
+ }
571
+ #endif
572
+
573
+ template <typename = void>
574
+ explicit PROTOBUF_CONSTEXPR Packet(::google::protobuf::internal::ConstantInitialized);
575
+
576
+ inline Packet(const Packet& from) : Packet(nullptr, from) {}
577
+ inline Packet(Packet&& from) noexcept
578
+ : Packet(nullptr, ::std::move(from)) {}
579
+ inline Packet& operator=(const Packet& from) {
580
+ CopyFrom(from);
581
+ return *this;
582
+ }
583
+ inline Packet& operator=(Packet&& from) noexcept {
584
+ if (this == &from) return *this;
585
+ if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
586
+ InternalSwap(&from);
587
+ } else {
588
+ CopyFrom(from);
589
+ }
590
+ return *this;
591
+ }
592
+
593
+ inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
594
+ ABSL_ATTRIBUTE_LIFETIME_BOUND {
595
+ return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
596
+ }
597
+ inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
598
+ ABSL_ATTRIBUTE_LIFETIME_BOUND {
599
+ return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
600
+ }
601
+
602
+ static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
603
+ return GetDescriptor();
604
+ }
605
+ static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
606
+ return default_instance().GetMetadata().descriptor;
607
+ }
608
+ static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
609
+ return default_instance().GetMetadata().reflection;
610
+ }
611
+ static const Packet& default_instance() {
612
+ return *reinterpret_cast<const Packet*>(
613
+ &_Packet_default_instance_);
614
+ }
615
+ enum BodyCase {
616
+ kCallStart = 1,
617
+ kCallData = 2,
618
+ kCallCancel = 3,
619
+ BODY_NOT_SET = 0,
620
+ };
621
+ static constexpr int kIndexInFileMessages = 0;
622
+ friend void swap(Packet& a, Packet& b) { a.Swap(&b); }
623
+ inline void Swap(Packet* PROTOBUF_NONNULL other) {
624
+ if (other == this) return;
625
+ if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
626
+ InternalSwap(other);
627
+ } else {
628
+ ::google::protobuf::internal::GenericSwap(this, other);
629
+ }
630
+ }
631
+ void UnsafeArenaSwap(Packet* PROTOBUF_NONNULL other) {
632
+ if (other == this) return;
633
+ ABSL_DCHECK(GetArena() == other->GetArena());
634
+ InternalSwap(other);
635
+ }
636
+
637
+ // implements Message ----------------------------------------------
638
+
639
+ Packet* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
640
+ return ::google::protobuf::Message::DefaultConstruct<Packet>(arena);
641
+ }
642
+ using ::google::protobuf::Message::CopyFrom;
643
+ void CopyFrom(const Packet& from);
644
+ using ::google::protobuf::Message::MergeFrom;
645
+ void MergeFrom(const Packet& from) { Packet::MergeImpl(*this, from); }
646
+
647
+ private:
648
+ static void MergeImpl(::google::protobuf::MessageLite& to_msg,
649
+ const ::google::protobuf::MessageLite& from_msg);
650
+
651
+ public:
652
+ bool IsInitialized() const {
653
+ return true;
654
+ }
655
+ ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
656
+ #if defined(PROTOBUF_CUSTOM_VTABLE)
657
+ private:
658
+ static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
659
+ static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
660
+ const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
661
+ ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
662
+
663
+ public:
664
+ ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
665
+ ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
666
+ ::uint8_t* PROTOBUF_NONNULL target,
667
+ ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
668
+ return _InternalSerialize(*this, target, stream);
669
+ }
670
+ #else // PROTOBUF_CUSTOM_VTABLE
671
+ ::size_t ByteSizeLong() const final;
672
+ ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
673
+ ::uint8_t* PROTOBUF_NONNULL target,
674
+ ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
675
+ #endif // PROTOBUF_CUSTOM_VTABLE
676
+ int GetCachedSize() const { return _impl_._cached_size_.Get(); }
677
+
678
+ private:
679
+ void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
680
+ static void SharedDtor(MessageLite& self);
681
+ void InternalSwap(Packet* PROTOBUF_NONNULL other);
682
+ private:
683
+ template <typename T>
684
+ friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
685
+ static ::absl::string_view FullMessageName() { return "srpc.Packet"; }
686
+
687
+ explicit Packet(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
688
+ Packet(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Packet& from);
689
+ Packet(
690
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Packet&& from) noexcept
691
+ : Packet(arena) {
692
+ *this = ::std::move(from);
693
+ }
694
+ const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
695
+ static void* PROTOBUF_NONNULL PlacementNew_(
696
+ const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
697
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
698
+ static constexpr auto InternalNewImpl_();
699
+
700
+ public:
701
+ static constexpr auto InternalGenerateClassData_();
702
+
703
+ ::google::protobuf::Metadata GetMetadata() const;
704
+ // nested types ----------------------------------------------------
705
+
706
+ // accessors -------------------------------------------------------
707
+ enum : int {
708
+ kCallStartFieldNumber = 1,
709
+ kCallDataFieldNumber = 2,
710
+ kCallCancelFieldNumber = 3,
711
+ };
712
+ // .srpc.CallStart call_start = 1;
713
+ bool has_call_start() const;
714
+ private:
715
+ bool _internal_has_call_start() const;
716
+
717
+ public:
718
+ void clear_call_start() ;
719
+ const ::srpc::CallStart& call_start() const;
720
+ [[nodiscard]] ::srpc::CallStart* PROTOBUF_NULLABLE release_call_start();
721
+ ::srpc::CallStart* PROTOBUF_NONNULL mutable_call_start();
722
+ void set_allocated_call_start(::srpc::CallStart* PROTOBUF_NULLABLE value);
723
+ void unsafe_arena_set_allocated_call_start(::srpc::CallStart* PROTOBUF_NULLABLE value);
724
+ ::srpc::CallStart* PROTOBUF_NULLABLE unsafe_arena_release_call_start();
725
+
726
+ private:
727
+ const ::srpc::CallStart& _internal_call_start() const;
728
+ ::srpc::CallStart* PROTOBUF_NONNULL _internal_mutable_call_start();
729
+
730
+ public:
731
+ // .srpc.CallData call_data = 2;
732
+ bool has_call_data() const;
733
+ private:
734
+ bool _internal_has_call_data() const;
735
+
736
+ public:
737
+ void clear_call_data() ;
738
+ const ::srpc::CallData& call_data() const;
739
+ [[nodiscard]] ::srpc::CallData* PROTOBUF_NULLABLE release_call_data();
740
+ ::srpc::CallData* PROTOBUF_NONNULL mutable_call_data();
741
+ void set_allocated_call_data(::srpc::CallData* PROTOBUF_NULLABLE value);
742
+ void unsafe_arena_set_allocated_call_data(::srpc::CallData* PROTOBUF_NULLABLE value);
743
+ ::srpc::CallData* PROTOBUF_NULLABLE unsafe_arena_release_call_data();
744
+
745
+ private:
746
+ const ::srpc::CallData& _internal_call_data() const;
747
+ ::srpc::CallData* PROTOBUF_NONNULL _internal_mutable_call_data();
748
+
749
+ public:
750
+ // bool call_cancel = 3;
751
+ bool has_call_cancel() const;
752
+ void clear_call_cancel() ;
753
+ bool call_cancel() const;
754
+ void set_call_cancel(bool value);
755
+
756
+ private:
757
+ bool _internal_call_cancel() const;
758
+ void _internal_set_call_cancel(bool value);
759
+
760
+ public:
761
+ void clear_body();
762
+ BodyCase body_case() const;
763
+ // @@protoc_insertion_point(class_scope:srpc.Packet)
764
+ private:
765
+ class _Internal;
766
+ void set_has_call_start();
767
+ void set_has_call_data();
768
+ void set_has_call_cancel();
769
+ inline bool has_body() const;
770
+ inline void clear_has_body();
771
+ friend class ::google::protobuf::internal::TcParser;
772
+ static const ::google::protobuf::internal::TcParseTable<0, 3,
773
+ 2, 0,
774
+ 2>
775
+ _table_;
776
+
777
+ friend class ::google::protobuf::MessageLite;
778
+ friend class ::google::protobuf::Arena;
779
+ template <typename T>
780
+ friend class ::google::protobuf::Arena::InternalHelper;
781
+ using InternalArenaConstructable_ = void;
782
+ using DestructorSkippable_ = void;
783
+ struct Impl_ {
784
+ inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
785
+ inline explicit Impl_(
786
+ ::google::protobuf::internal::InternalVisibility visibility,
787
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
788
+ inline explicit Impl_(
789
+ ::google::protobuf::internal::InternalVisibility visibility,
790
+ ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
791
+ const Packet& from_msg);
792
+ union BodyUnion {
793
+ constexpr BodyUnion() : _constinit_{} {}
794
+ ::google::protobuf::internal::ConstantInitialized _constinit_;
795
+ ::srpc::CallStart* PROTOBUF_NULLABLE call_start_;
796
+ ::srpc::CallData* PROTOBUF_NULLABLE call_data_;
797
+ bool call_cancel_;
798
+ } body_;
799
+ ::google::protobuf::internal::CachedSize _cached_size_;
800
+ ::uint32_t _oneof_case_[1];
801
+ PROTOBUF_TSAN_DECLARE_MEMBER
802
+ };
803
+ union { Impl_ _impl_; };
804
+ friend struct ::TableStruct_github_2ecom_2faperturerobotics_2fstarpc_2fsrpc_2frpcproto_2eproto;
805
+ };
806
+
807
+ extern const ::google::protobuf::internal::ClassDataFull Packet_class_data_;
808
+
809
+ // ===================================================================
810
+
811
+
812
+
813
+
814
+ // ===================================================================
815
+
816
+
817
+ #ifdef __GNUC__
818
+ #pragma GCC diagnostic push
819
+ #pragma GCC diagnostic ignored "-Wstrict-aliasing"
820
+ #endif // __GNUC__
821
+ // -------------------------------------------------------------------
822
+
823
+ // Packet
824
+
825
+ // .srpc.CallStart call_start = 1;
826
+ inline bool Packet::has_call_start() const {
827
+ return body_case() == kCallStart;
828
+ }
829
+ inline bool Packet::_internal_has_call_start() const {
830
+ return body_case() == kCallStart;
831
+ }
832
+ inline void Packet::set_has_call_start() {
833
+ _impl_._oneof_case_[0] = kCallStart;
834
+ }
835
+ inline void Packet::clear_call_start() {
836
+ ::google::protobuf::internal::TSanWrite(&_impl_);
837
+ if (body_case() == kCallStart) {
838
+ if (GetArena() == nullptr) {
839
+ delete _impl_.body_.call_start_;
840
+ } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
841
+ ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.body_.call_start_);
842
+ }
843
+ clear_has_body();
844
+ }
845
+ }
846
+ inline ::srpc::CallStart* PROTOBUF_NULLABLE Packet::release_call_start() {
847
+ // @@protoc_insertion_point(field_release:srpc.Packet.call_start)
848
+ if (body_case() == kCallStart) {
849
+ clear_has_body();
850
+ auto* temp = _impl_.body_.call_start_;
851
+ if (GetArena() != nullptr) {
852
+ temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
853
+ }
854
+ _impl_.body_.call_start_ = nullptr;
855
+ return temp;
856
+ } else {
857
+ return nullptr;
858
+ }
859
+ }
860
+ inline const ::srpc::CallStart& Packet::_internal_call_start() const {
861
+ return body_case() == kCallStart ? static_cast<const ::srpc::CallStart&>(*_impl_.body_.call_start_)
862
+ : reinterpret_cast<const ::srpc::CallStart&>(::srpc::_CallStart_default_instance_);
863
+ }
864
+ inline const ::srpc::CallStart& Packet::call_start() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
865
+ // @@protoc_insertion_point(field_get:srpc.Packet.call_start)
866
+ return _internal_call_start();
867
+ }
868
+ inline ::srpc::CallStart* PROTOBUF_NULLABLE Packet::unsafe_arena_release_call_start() {
869
+ // @@protoc_insertion_point(field_unsafe_arena_release:srpc.Packet.call_start)
870
+ if (body_case() == kCallStart) {
871
+ clear_has_body();
872
+ auto* temp = _impl_.body_.call_start_;
873
+ _impl_.body_.call_start_ = nullptr;
874
+ return temp;
875
+ } else {
876
+ return nullptr;
877
+ }
878
+ }
879
+ inline void Packet::unsafe_arena_set_allocated_call_start(
880
+ ::srpc::CallStart* PROTOBUF_NULLABLE value) {
881
+ // We rely on the oneof clear method to free the earlier contents
882
+ // of this oneof. We can directly use the pointer we're given to
883
+ // set the new value.
884
+ clear_body();
885
+ if (value) {
886
+ set_has_call_start();
887
+ _impl_.body_.call_start_ = value;
888
+ }
889
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:srpc.Packet.call_start)
890
+ }
891
+ inline ::srpc::CallStart* PROTOBUF_NONNULL Packet::_internal_mutable_call_start() {
892
+ if (body_case() != kCallStart) {
893
+ clear_body();
894
+ set_has_call_start();
895
+ _impl_.body_.call_start_ =
896
+ ::google::protobuf::Message::DefaultConstruct<::srpc::CallStart>(GetArena());
897
+ }
898
+ return _impl_.body_.call_start_;
899
+ }
900
+ inline ::srpc::CallStart* PROTOBUF_NONNULL Packet::mutable_call_start()
901
+ ABSL_ATTRIBUTE_LIFETIME_BOUND {
902
+ ::srpc::CallStart* _msg = _internal_mutable_call_start();
903
+ // @@protoc_insertion_point(field_mutable:srpc.Packet.call_start)
904
+ return _msg;
905
+ }
906
+
907
+ // .srpc.CallData call_data = 2;
908
+ inline bool Packet::has_call_data() const {
909
+ return body_case() == kCallData;
910
+ }
911
+ inline bool Packet::_internal_has_call_data() const {
912
+ return body_case() == kCallData;
913
+ }
914
+ inline void Packet::set_has_call_data() {
915
+ _impl_._oneof_case_[0] = kCallData;
916
+ }
917
+ inline void Packet::clear_call_data() {
918
+ ::google::protobuf::internal::TSanWrite(&_impl_);
919
+ if (body_case() == kCallData) {
920
+ if (GetArena() == nullptr) {
921
+ delete _impl_.body_.call_data_;
922
+ } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
923
+ ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.body_.call_data_);
924
+ }
925
+ clear_has_body();
926
+ }
927
+ }
928
+ inline ::srpc::CallData* PROTOBUF_NULLABLE Packet::release_call_data() {
929
+ // @@protoc_insertion_point(field_release:srpc.Packet.call_data)
930
+ if (body_case() == kCallData) {
931
+ clear_has_body();
932
+ auto* temp = _impl_.body_.call_data_;
933
+ if (GetArena() != nullptr) {
934
+ temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
935
+ }
936
+ _impl_.body_.call_data_ = nullptr;
937
+ return temp;
938
+ } else {
939
+ return nullptr;
940
+ }
941
+ }
942
+ inline const ::srpc::CallData& Packet::_internal_call_data() const {
943
+ return body_case() == kCallData ? static_cast<const ::srpc::CallData&>(*_impl_.body_.call_data_)
944
+ : reinterpret_cast<const ::srpc::CallData&>(::srpc::_CallData_default_instance_);
945
+ }
946
+ inline const ::srpc::CallData& Packet::call_data() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
947
+ // @@protoc_insertion_point(field_get:srpc.Packet.call_data)
948
+ return _internal_call_data();
949
+ }
950
+ inline ::srpc::CallData* PROTOBUF_NULLABLE Packet::unsafe_arena_release_call_data() {
951
+ // @@protoc_insertion_point(field_unsafe_arena_release:srpc.Packet.call_data)
952
+ if (body_case() == kCallData) {
953
+ clear_has_body();
954
+ auto* temp = _impl_.body_.call_data_;
955
+ _impl_.body_.call_data_ = nullptr;
956
+ return temp;
957
+ } else {
958
+ return nullptr;
959
+ }
960
+ }
961
+ inline void Packet::unsafe_arena_set_allocated_call_data(
962
+ ::srpc::CallData* PROTOBUF_NULLABLE value) {
963
+ // We rely on the oneof clear method to free the earlier contents
964
+ // of this oneof. We can directly use the pointer we're given to
965
+ // set the new value.
966
+ clear_body();
967
+ if (value) {
968
+ set_has_call_data();
969
+ _impl_.body_.call_data_ = value;
970
+ }
971
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:srpc.Packet.call_data)
972
+ }
973
+ inline ::srpc::CallData* PROTOBUF_NONNULL Packet::_internal_mutable_call_data() {
974
+ if (body_case() != kCallData) {
975
+ clear_body();
976
+ set_has_call_data();
977
+ _impl_.body_.call_data_ =
978
+ ::google::protobuf::Message::DefaultConstruct<::srpc::CallData>(GetArena());
979
+ }
980
+ return _impl_.body_.call_data_;
981
+ }
982
+ inline ::srpc::CallData* PROTOBUF_NONNULL Packet::mutable_call_data()
983
+ ABSL_ATTRIBUTE_LIFETIME_BOUND {
984
+ ::srpc::CallData* _msg = _internal_mutable_call_data();
985
+ // @@protoc_insertion_point(field_mutable:srpc.Packet.call_data)
986
+ return _msg;
987
+ }
988
+
989
+ // bool call_cancel = 3;
990
+ inline bool Packet::has_call_cancel() const {
991
+ return body_case() == kCallCancel;
992
+ }
993
+ inline void Packet::set_has_call_cancel() {
994
+ _impl_._oneof_case_[0] = kCallCancel;
995
+ }
996
+ inline void Packet::clear_call_cancel() {
997
+ ::google::protobuf::internal::TSanWrite(&_impl_);
998
+ if (body_case() == kCallCancel) {
999
+ _impl_.body_.call_cancel_ = false;
1000
+ clear_has_body();
1001
+ }
1002
+ }
1003
+ inline bool Packet::call_cancel() const {
1004
+ // @@protoc_insertion_point(field_get:srpc.Packet.call_cancel)
1005
+ return _internal_call_cancel();
1006
+ }
1007
+ inline void Packet::set_call_cancel(bool value) {
1008
+ if (body_case() != kCallCancel) {
1009
+ clear_body();
1010
+ set_has_call_cancel();
1011
+ }
1012
+ _impl_.body_.call_cancel_ = value;
1013
+ // @@protoc_insertion_point(field_set:srpc.Packet.call_cancel)
1014
+ }
1015
+ inline bool Packet::_internal_call_cancel() const {
1016
+ if (body_case() == kCallCancel) {
1017
+ return _impl_.body_.call_cancel_;
1018
+ }
1019
+ return false;
1020
+ }
1021
+
1022
+ inline bool Packet::has_body() const {
1023
+ return body_case() != BODY_NOT_SET;
1024
+ }
1025
+ inline void Packet::clear_has_body() {
1026
+ _impl_._oneof_case_[0] = BODY_NOT_SET;
1027
+ }
1028
+ inline Packet::BodyCase Packet::body_case() const {
1029
+ return Packet::BodyCase(_impl_._oneof_case_[0]);
1030
+ }
1031
+ // -------------------------------------------------------------------
1032
+
1033
+ // CallStart
1034
+
1035
+ // string rpc_service = 1;
1036
+ inline void CallStart::clear_rpc_service() {
1037
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1038
+ _impl_.rpc_service_.ClearToEmpty();
1039
+ ClearHasBit(_impl_._has_bits_[0],
1040
+ 0x00000001U);
1041
+ }
1042
+ inline const ::std::string& CallStart::rpc_service() const
1043
+ ABSL_ATTRIBUTE_LIFETIME_BOUND {
1044
+ // @@protoc_insertion_point(field_get:srpc.CallStart.rpc_service)
1045
+ return _internal_rpc_service();
1046
+ }
1047
+ template <typename Arg_, typename... Args_>
1048
+ PROTOBUF_ALWAYS_INLINE void CallStart::set_rpc_service(Arg_&& arg, Args_... args) {
1049
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1050
+ SetHasBit(_impl_._has_bits_[0], 0x00000001U);
1051
+ _impl_.rpc_service_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
1052
+ // @@protoc_insertion_point(field_set:srpc.CallStart.rpc_service)
1053
+ }
1054
+ inline ::std::string* PROTOBUF_NONNULL CallStart::mutable_rpc_service()
1055
+ ABSL_ATTRIBUTE_LIFETIME_BOUND {
1056
+ SetHasBit(_impl_._has_bits_[0], 0x00000001U);
1057
+ ::std::string* _s = _internal_mutable_rpc_service();
1058
+ // @@protoc_insertion_point(field_mutable:srpc.CallStart.rpc_service)
1059
+ return _s;
1060
+ }
1061
+ inline const ::std::string& CallStart::_internal_rpc_service() const {
1062
+ ::google::protobuf::internal::TSanRead(&_impl_);
1063
+ return _impl_.rpc_service_.Get();
1064
+ }
1065
+ inline void CallStart::_internal_set_rpc_service(const ::std::string& value) {
1066
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1067
+ _impl_.rpc_service_.Set(value, GetArena());
1068
+ }
1069
+ inline ::std::string* PROTOBUF_NONNULL CallStart::_internal_mutable_rpc_service() {
1070
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1071
+ return _impl_.rpc_service_.Mutable( GetArena());
1072
+ }
1073
+ inline ::std::string* PROTOBUF_NULLABLE CallStart::release_rpc_service() {
1074
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1075
+ // @@protoc_insertion_point(field_release:srpc.CallStart.rpc_service)
1076
+ if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) {
1077
+ return nullptr;
1078
+ }
1079
+ ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
1080
+ auto* released = _impl_.rpc_service_.Release();
1081
+ if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
1082
+ _impl_.rpc_service_.Set("", GetArena());
1083
+ }
1084
+ return released;
1085
+ }
1086
+ inline void CallStart::set_allocated_rpc_service(::std::string* PROTOBUF_NULLABLE value) {
1087
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1088
+ if (value != nullptr) {
1089
+ SetHasBit(_impl_._has_bits_[0], 0x00000001U);
1090
+ } else {
1091
+ ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
1092
+ }
1093
+ _impl_.rpc_service_.SetAllocated(value, GetArena());
1094
+ if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.rpc_service_.IsDefault()) {
1095
+ _impl_.rpc_service_.Set("", GetArena());
1096
+ }
1097
+ // @@protoc_insertion_point(field_set_allocated:srpc.CallStart.rpc_service)
1098
+ }
1099
+
1100
+ // string rpc_method = 2;
1101
+ inline void CallStart::clear_rpc_method() {
1102
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1103
+ _impl_.rpc_method_.ClearToEmpty();
1104
+ ClearHasBit(_impl_._has_bits_[0],
1105
+ 0x00000002U);
1106
+ }
1107
+ inline const ::std::string& CallStart::rpc_method() const
1108
+ ABSL_ATTRIBUTE_LIFETIME_BOUND {
1109
+ // @@protoc_insertion_point(field_get:srpc.CallStart.rpc_method)
1110
+ return _internal_rpc_method();
1111
+ }
1112
+ template <typename Arg_, typename... Args_>
1113
+ PROTOBUF_ALWAYS_INLINE void CallStart::set_rpc_method(Arg_&& arg, Args_... args) {
1114
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1115
+ SetHasBit(_impl_._has_bits_[0], 0x00000002U);
1116
+ _impl_.rpc_method_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
1117
+ // @@protoc_insertion_point(field_set:srpc.CallStart.rpc_method)
1118
+ }
1119
+ inline ::std::string* PROTOBUF_NONNULL CallStart::mutable_rpc_method()
1120
+ ABSL_ATTRIBUTE_LIFETIME_BOUND {
1121
+ SetHasBit(_impl_._has_bits_[0], 0x00000002U);
1122
+ ::std::string* _s = _internal_mutable_rpc_method();
1123
+ // @@protoc_insertion_point(field_mutable:srpc.CallStart.rpc_method)
1124
+ return _s;
1125
+ }
1126
+ inline const ::std::string& CallStart::_internal_rpc_method() const {
1127
+ ::google::protobuf::internal::TSanRead(&_impl_);
1128
+ return _impl_.rpc_method_.Get();
1129
+ }
1130
+ inline void CallStart::_internal_set_rpc_method(const ::std::string& value) {
1131
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1132
+ _impl_.rpc_method_.Set(value, GetArena());
1133
+ }
1134
+ inline ::std::string* PROTOBUF_NONNULL CallStart::_internal_mutable_rpc_method() {
1135
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1136
+ return _impl_.rpc_method_.Mutable( GetArena());
1137
+ }
1138
+ inline ::std::string* PROTOBUF_NULLABLE CallStart::release_rpc_method() {
1139
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1140
+ // @@protoc_insertion_point(field_release:srpc.CallStart.rpc_method)
1141
+ if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) {
1142
+ return nullptr;
1143
+ }
1144
+ ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
1145
+ auto* released = _impl_.rpc_method_.Release();
1146
+ if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
1147
+ _impl_.rpc_method_.Set("", GetArena());
1148
+ }
1149
+ return released;
1150
+ }
1151
+ inline void CallStart::set_allocated_rpc_method(::std::string* PROTOBUF_NULLABLE value) {
1152
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1153
+ if (value != nullptr) {
1154
+ SetHasBit(_impl_._has_bits_[0], 0x00000002U);
1155
+ } else {
1156
+ ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
1157
+ }
1158
+ _impl_.rpc_method_.SetAllocated(value, GetArena());
1159
+ if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.rpc_method_.IsDefault()) {
1160
+ _impl_.rpc_method_.Set("", GetArena());
1161
+ }
1162
+ // @@protoc_insertion_point(field_set_allocated:srpc.CallStart.rpc_method)
1163
+ }
1164
+
1165
+ // bytes data = 3;
1166
+ inline void CallStart::clear_data() {
1167
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1168
+ _impl_.data_.ClearToEmpty();
1169
+ ClearHasBit(_impl_._has_bits_[0],
1170
+ 0x00000004U);
1171
+ }
1172
+ inline const ::std::string& CallStart::data() const
1173
+ ABSL_ATTRIBUTE_LIFETIME_BOUND {
1174
+ // @@protoc_insertion_point(field_get:srpc.CallStart.data)
1175
+ return _internal_data();
1176
+ }
1177
+ template <typename Arg_, typename... Args_>
1178
+ PROTOBUF_ALWAYS_INLINE void CallStart::set_data(Arg_&& arg, Args_... args) {
1179
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1180
+ SetHasBit(_impl_._has_bits_[0], 0x00000004U);
1181
+ _impl_.data_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
1182
+ // @@protoc_insertion_point(field_set:srpc.CallStart.data)
1183
+ }
1184
+ inline ::std::string* PROTOBUF_NONNULL CallStart::mutable_data()
1185
+ ABSL_ATTRIBUTE_LIFETIME_BOUND {
1186
+ SetHasBit(_impl_._has_bits_[0], 0x00000004U);
1187
+ ::std::string* _s = _internal_mutable_data();
1188
+ // @@protoc_insertion_point(field_mutable:srpc.CallStart.data)
1189
+ return _s;
1190
+ }
1191
+ inline const ::std::string& CallStart::_internal_data() const {
1192
+ ::google::protobuf::internal::TSanRead(&_impl_);
1193
+ return _impl_.data_.Get();
1194
+ }
1195
+ inline void CallStart::_internal_set_data(const ::std::string& value) {
1196
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1197
+ _impl_.data_.Set(value, GetArena());
1198
+ }
1199
+ inline ::std::string* PROTOBUF_NONNULL CallStart::_internal_mutable_data() {
1200
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1201
+ return _impl_.data_.Mutable( GetArena());
1202
+ }
1203
+ inline ::std::string* PROTOBUF_NULLABLE CallStart::release_data() {
1204
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1205
+ // @@protoc_insertion_point(field_release:srpc.CallStart.data)
1206
+ if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) {
1207
+ return nullptr;
1208
+ }
1209
+ ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
1210
+ auto* released = _impl_.data_.Release();
1211
+ if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
1212
+ _impl_.data_.Set("", GetArena());
1213
+ }
1214
+ return released;
1215
+ }
1216
+ inline void CallStart::set_allocated_data(::std::string* PROTOBUF_NULLABLE value) {
1217
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1218
+ if (value != nullptr) {
1219
+ SetHasBit(_impl_._has_bits_[0], 0x00000004U);
1220
+ } else {
1221
+ ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
1222
+ }
1223
+ _impl_.data_.SetAllocated(value, GetArena());
1224
+ if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.data_.IsDefault()) {
1225
+ _impl_.data_.Set("", GetArena());
1226
+ }
1227
+ // @@protoc_insertion_point(field_set_allocated:srpc.CallStart.data)
1228
+ }
1229
+
1230
+ // bool data_is_zero = 4;
1231
+ inline void CallStart::clear_data_is_zero() {
1232
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1233
+ _impl_.data_is_zero_ = false;
1234
+ ClearHasBit(_impl_._has_bits_[0],
1235
+ 0x00000008U);
1236
+ }
1237
+ inline bool CallStart::data_is_zero() const {
1238
+ // @@protoc_insertion_point(field_get:srpc.CallStart.data_is_zero)
1239
+ return _internal_data_is_zero();
1240
+ }
1241
+ inline void CallStart::set_data_is_zero(bool value) {
1242
+ _internal_set_data_is_zero(value);
1243
+ SetHasBit(_impl_._has_bits_[0], 0x00000008U);
1244
+ // @@protoc_insertion_point(field_set:srpc.CallStart.data_is_zero)
1245
+ }
1246
+ inline bool CallStart::_internal_data_is_zero() const {
1247
+ ::google::protobuf::internal::TSanRead(&_impl_);
1248
+ return _impl_.data_is_zero_;
1249
+ }
1250
+ inline void CallStart::_internal_set_data_is_zero(bool value) {
1251
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1252
+ _impl_.data_is_zero_ = value;
1253
+ }
1254
+
1255
+ // -------------------------------------------------------------------
1256
+
1257
+ // CallData
1258
+
1259
+ // bytes data = 1;
1260
+ inline void CallData::clear_data() {
1261
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1262
+ _impl_.data_.ClearToEmpty();
1263
+ ClearHasBit(_impl_._has_bits_[0],
1264
+ 0x00000001U);
1265
+ }
1266
+ inline const ::std::string& CallData::data() const
1267
+ ABSL_ATTRIBUTE_LIFETIME_BOUND {
1268
+ // @@protoc_insertion_point(field_get:srpc.CallData.data)
1269
+ return _internal_data();
1270
+ }
1271
+ template <typename Arg_, typename... Args_>
1272
+ PROTOBUF_ALWAYS_INLINE void CallData::set_data(Arg_&& arg, Args_... args) {
1273
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1274
+ SetHasBit(_impl_._has_bits_[0], 0x00000001U);
1275
+ _impl_.data_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
1276
+ // @@protoc_insertion_point(field_set:srpc.CallData.data)
1277
+ }
1278
+ inline ::std::string* PROTOBUF_NONNULL CallData::mutable_data()
1279
+ ABSL_ATTRIBUTE_LIFETIME_BOUND {
1280
+ SetHasBit(_impl_._has_bits_[0], 0x00000001U);
1281
+ ::std::string* _s = _internal_mutable_data();
1282
+ // @@protoc_insertion_point(field_mutable:srpc.CallData.data)
1283
+ return _s;
1284
+ }
1285
+ inline const ::std::string& CallData::_internal_data() const {
1286
+ ::google::protobuf::internal::TSanRead(&_impl_);
1287
+ return _impl_.data_.Get();
1288
+ }
1289
+ inline void CallData::_internal_set_data(const ::std::string& value) {
1290
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1291
+ _impl_.data_.Set(value, GetArena());
1292
+ }
1293
+ inline ::std::string* PROTOBUF_NONNULL CallData::_internal_mutable_data() {
1294
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1295
+ return _impl_.data_.Mutable( GetArena());
1296
+ }
1297
+ inline ::std::string* PROTOBUF_NULLABLE CallData::release_data() {
1298
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1299
+ // @@protoc_insertion_point(field_release:srpc.CallData.data)
1300
+ if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) {
1301
+ return nullptr;
1302
+ }
1303
+ ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
1304
+ auto* released = _impl_.data_.Release();
1305
+ if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
1306
+ _impl_.data_.Set("", GetArena());
1307
+ }
1308
+ return released;
1309
+ }
1310
+ inline void CallData::set_allocated_data(::std::string* PROTOBUF_NULLABLE value) {
1311
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1312
+ if (value != nullptr) {
1313
+ SetHasBit(_impl_._has_bits_[0], 0x00000001U);
1314
+ } else {
1315
+ ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
1316
+ }
1317
+ _impl_.data_.SetAllocated(value, GetArena());
1318
+ if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.data_.IsDefault()) {
1319
+ _impl_.data_.Set("", GetArena());
1320
+ }
1321
+ // @@protoc_insertion_point(field_set_allocated:srpc.CallData.data)
1322
+ }
1323
+
1324
+ // bool data_is_zero = 2;
1325
+ inline void CallData::clear_data_is_zero() {
1326
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1327
+ _impl_.data_is_zero_ = false;
1328
+ ClearHasBit(_impl_._has_bits_[0],
1329
+ 0x00000004U);
1330
+ }
1331
+ inline bool CallData::data_is_zero() const {
1332
+ // @@protoc_insertion_point(field_get:srpc.CallData.data_is_zero)
1333
+ return _internal_data_is_zero();
1334
+ }
1335
+ inline void CallData::set_data_is_zero(bool value) {
1336
+ _internal_set_data_is_zero(value);
1337
+ SetHasBit(_impl_._has_bits_[0], 0x00000004U);
1338
+ // @@protoc_insertion_point(field_set:srpc.CallData.data_is_zero)
1339
+ }
1340
+ inline bool CallData::_internal_data_is_zero() const {
1341
+ ::google::protobuf::internal::TSanRead(&_impl_);
1342
+ return _impl_.data_is_zero_;
1343
+ }
1344
+ inline void CallData::_internal_set_data_is_zero(bool value) {
1345
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1346
+ _impl_.data_is_zero_ = value;
1347
+ }
1348
+
1349
+ // bool complete = 3;
1350
+ inline void CallData::clear_complete() {
1351
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1352
+ _impl_.complete_ = false;
1353
+ ClearHasBit(_impl_._has_bits_[0],
1354
+ 0x00000008U);
1355
+ }
1356
+ inline bool CallData::complete() const {
1357
+ // @@protoc_insertion_point(field_get:srpc.CallData.complete)
1358
+ return _internal_complete();
1359
+ }
1360
+ inline void CallData::set_complete(bool value) {
1361
+ _internal_set_complete(value);
1362
+ SetHasBit(_impl_._has_bits_[0], 0x00000008U);
1363
+ // @@protoc_insertion_point(field_set:srpc.CallData.complete)
1364
+ }
1365
+ inline bool CallData::_internal_complete() const {
1366
+ ::google::protobuf::internal::TSanRead(&_impl_);
1367
+ return _impl_.complete_;
1368
+ }
1369
+ inline void CallData::_internal_set_complete(bool value) {
1370
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1371
+ _impl_.complete_ = value;
1372
+ }
1373
+
1374
+ // string error = 4;
1375
+ inline void CallData::clear_error() {
1376
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1377
+ _impl_.error_.ClearToEmpty();
1378
+ ClearHasBit(_impl_._has_bits_[0],
1379
+ 0x00000002U);
1380
+ }
1381
+ inline const ::std::string& CallData::error() const
1382
+ ABSL_ATTRIBUTE_LIFETIME_BOUND {
1383
+ // @@protoc_insertion_point(field_get:srpc.CallData.error)
1384
+ return _internal_error();
1385
+ }
1386
+ template <typename Arg_, typename... Args_>
1387
+ PROTOBUF_ALWAYS_INLINE void CallData::set_error(Arg_&& arg, Args_... args) {
1388
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1389
+ SetHasBit(_impl_._has_bits_[0], 0x00000002U);
1390
+ _impl_.error_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
1391
+ // @@protoc_insertion_point(field_set:srpc.CallData.error)
1392
+ }
1393
+ inline ::std::string* PROTOBUF_NONNULL CallData::mutable_error()
1394
+ ABSL_ATTRIBUTE_LIFETIME_BOUND {
1395
+ SetHasBit(_impl_._has_bits_[0], 0x00000002U);
1396
+ ::std::string* _s = _internal_mutable_error();
1397
+ // @@protoc_insertion_point(field_mutable:srpc.CallData.error)
1398
+ return _s;
1399
+ }
1400
+ inline const ::std::string& CallData::_internal_error() const {
1401
+ ::google::protobuf::internal::TSanRead(&_impl_);
1402
+ return _impl_.error_.Get();
1403
+ }
1404
+ inline void CallData::_internal_set_error(const ::std::string& value) {
1405
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1406
+ _impl_.error_.Set(value, GetArena());
1407
+ }
1408
+ inline ::std::string* PROTOBUF_NONNULL CallData::_internal_mutable_error() {
1409
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1410
+ return _impl_.error_.Mutable( GetArena());
1411
+ }
1412
+ inline ::std::string* PROTOBUF_NULLABLE CallData::release_error() {
1413
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1414
+ // @@protoc_insertion_point(field_release:srpc.CallData.error)
1415
+ if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) {
1416
+ return nullptr;
1417
+ }
1418
+ ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
1419
+ auto* released = _impl_.error_.Release();
1420
+ if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
1421
+ _impl_.error_.Set("", GetArena());
1422
+ }
1423
+ return released;
1424
+ }
1425
+ inline void CallData::set_allocated_error(::std::string* PROTOBUF_NULLABLE value) {
1426
+ ::google::protobuf::internal::TSanWrite(&_impl_);
1427
+ if (value != nullptr) {
1428
+ SetHasBit(_impl_._has_bits_[0], 0x00000002U);
1429
+ } else {
1430
+ ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
1431
+ }
1432
+ _impl_.error_.SetAllocated(value, GetArena());
1433
+ if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.error_.IsDefault()) {
1434
+ _impl_.error_.Set("", GetArena());
1435
+ }
1436
+ // @@protoc_insertion_point(field_set_allocated:srpc.CallData.error)
1437
+ }
1438
+
1439
+ #ifdef __GNUC__
1440
+ #pragma GCC diagnostic pop
1441
+ #endif // __GNUC__
1442
+
1443
+ // @@protoc_insertion_point(namespace_scope)
1444
+ } // namespace srpc
1445
+
1446
+
1447
+ // @@protoc_insertion_point(global_scope)
1448
+
1449
+ #include "google/protobuf/port_undef.inc"
1450
+
1451
+ #endif // github_2ecom_2faperturerobotics_2fstarpc_2fsrpc_2frpcproto_2eproto_2epb_2eh