Coverage Report

Created: 2026-04-02 06:41

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/brpc/build/brpc/nshead_meta.pb.h
Line
Count
Source
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: brpc/nshead_meta.proto
3
4
#ifndef GOOGLE_PROTOBUF_INCLUDED_brpc_2fnshead_5fmeta_2eproto
5
#define GOOGLE_PROTOBUF_INCLUDED_brpc_2fnshead_5fmeta_2eproto
6
7
#include <limits>
8
#include <string>
9
10
#include <google/protobuf/port_def.inc>
11
#if PROTOBUF_VERSION < 3021000
12
#error This file was generated by a newer version of protoc which is
13
#error incompatible with your Protocol Buffer headers. Please update
14
#error your headers.
15
#endif
16
#if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
17
#error This file was generated by an older version of protoc which is
18
#error incompatible with your Protocol Buffer headers. Please
19
#error regenerate this file with a newer version of protoc.
20
#endif
21
22
#include <google/protobuf/port_undef.inc>
23
#include <google/protobuf/io/coded_stream.h>
24
#include <google/protobuf/arena.h>
25
#include <google/protobuf/arenastring.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/repeated_field.h>  // IWYU pragma: export
31
#include <google/protobuf/extension_set.h>  // IWYU pragma: export
32
#include <google/protobuf/unknown_field_set.h>
33
#include "brpc/options.pb.h"
34
// @@protoc_insertion_point(includes)
35
#include <google/protobuf/port_def.inc>
36
#define PROTOBUF_INTERNAL_EXPORT_brpc_2fnshead_5fmeta_2eproto
37
PROTOBUF_NAMESPACE_OPEN
38
namespace internal {
39
class AnyMetadata;
40
}  // namespace internal
41
PROTOBUF_NAMESPACE_CLOSE
42
43
// Internal implementation detail -- do not use these members.
44
struct TableStruct_brpc_2fnshead_5fmeta_2eproto {
45
  static const uint32_t offsets[];
46
};
47
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_brpc_2fnshead_5fmeta_2eproto;
48
namespace brpc {
49
class NsheadMeta;
50
struct NsheadMetaDefaultTypeInternal;
51
extern NsheadMetaDefaultTypeInternal _NsheadMeta_default_instance_;
52
}  // namespace brpc
53
PROTOBUF_NAMESPACE_OPEN
54
template<> ::brpc::NsheadMeta* Arena::CreateMaybeMessage<::brpc::NsheadMeta>(Arena*);
55
PROTOBUF_NAMESPACE_CLOSE
56
namespace brpc {
57
58
// ===================================================================
59
60
class NsheadMeta final :
61
    public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:brpc.NsheadMeta) */ {
62
 public:
63
0
  inline NsheadMeta() : NsheadMeta(nullptr) {}
64
  ~NsheadMeta() override;
65
  explicit PROTOBUF_CONSTEXPR NsheadMeta(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
66
67
  NsheadMeta(const NsheadMeta& from);
68
  NsheadMeta(NsheadMeta&& from) noexcept
69
0
    : NsheadMeta() {
70
0
    *this = ::std::move(from);
71
0
  }
72
73
0
  inline NsheadMeta& operator=(const NsheadMeta& from) {
74
0
    CopyFrom(from);
75
0
    return *this;
76
0
  }
77
0
  inline NsheadMeta& operator=(NsheadMeta&& from) noexcept {
78
0
    if (this == &from) return *this;
79
0
    if (GetOwningArena() == from.GetOwningArena()
80
0
  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
81
0
        && GetOwningArena() != nullptr
82
0
  #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
83
0
    ) {
84
0
      InternalSwap(&from);
85
0
    } else {
86
0
      CopyFrom(from);
87
0
    }
88
0
    return *this;
89
0
  }
90
91
0
  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
92
0
    return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
93
0
  }
94
0
  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
95
0
    return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
96
0
  }
97
98
0
  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
99
0
    return GetDescriptor();
100
0
  }
101
0
  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
102
0
    return default_instance().GetMetadata().descriptor;
103
0
  }
104
0
  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
105
0
    return default_instance().GetMetadata().reflection;
106
0
  }
107
0
  static const NsheadMeta& default_instance() {
108
0
    return *internal_default_instance();
109
0
  }
110
0
  static inline const NsheadMeta* internal_default_instance() {
111
0
    return reinterpret_cast<const NsheadMeta*>(
112
0
               &_NsheadMeta_default_instance_);
113
0
  }
114
  static constexpr int kIndexInFileMessages =
115
    0;
116
117
0
  friend void swap(NsheadMeta& a, NsheadMeta& b) {
118
0
    a.Swap(&b);
119
0
  }
120
0
  inline void Swap(NsheadMeta* other) {
121
0
    if (other == this) return;
122
0
  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
123
0
    if (GetOwningArena() != nullptr &&
124
0
        GetOwningArena() == other->GetOwningArena()) {
125
0
   #else  // PROTOBUF_FORCE_COPY_IN_SWAP
126
0
    if (GetOwningArena() == other->GetOwningArena()) {
127
0
  #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
128
0
      InternalSwap(other);
129
0
    } else {
130
0
      ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
131
0
    }
132
0
  }
133
0
  void UnsafeArenaSwap(NsheadMeta* other) {
134
0
    if (other == this) return;
135
0
    GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
136
0
    InternalSwap(other);
137
0
  }
138
139
  // implements Message ----------------------------------------------
140
141
0
  NsheadMeta* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
142
0
    return CreateMaybeMessage<NsheadMeta>(arena);
143
0
  }
144
  using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
145
  void CopyFrom(const NsheadMeta& from);
146
  using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
147
0
  void MergeFrom( const NsheadMeta& from) {
148
0
    NsheadMeta::MergeImpl(*this, from);
149
0
  }
150
  private:
151
  static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
152
  public:
153
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
154
  bool IsInitialized() const final;
155
156
  size_t ByteSizeLong() const final;
157
  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
158
  uint8_t* _InternalSerialize(
159
      uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
160
0
  int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
161
162
  private:
163
  void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
164
  void SharedDtor();
165
  void SetCachedSize(int size) const final;
166
  void InternalSwap(NsheadMeta* other);
167
168
  private:
169
  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
170
0
  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
171
0
    return "brpc.NsheadMeta";
172
0
  }
173
  protected:
174
  explicit NsheadMeta(::PROTOBUF_NAMESPACE_ID::Arena* arena,
175
                       bool is_message_owned = false);
176
  public:
177
178
  static const ClassData _class_data_;
179
  const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
180
181
  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
182
183
  // nested types ----------------------------------------------------
184
185
  // accessors -------------------------------------------------------
186
187
  enum : int {
188
    kFullMethodNameFieldNumber = 1,
189
    kUserStringFieldNumber = 9,
190
    kCorrelationIdFieldNumber = 2,
191
    kLogIdFieldNumber = 3,
192
    kAttachmentSizeFieldNumber = 4,
193
    kCompressTypeFieldNumber = 5,
194
    kTraceIdFieldNumber = 6,
195
    kSpanIdFieldNumber = 7,
196
    kParentSpanIdFieldNumber = 8,
197
  };
198
  // required string full_method_name = 1;
199
  bool has_full_method_name() const;
200
  private:
201
  bool _internal_has_full_method_name() const;
202
  public:
203
  void clear_full_method_name();
204
  const std::string& full_method_name() const;
205
  template <typename ArgT0 = const std::string&, typename... ArgT>
206
  void set_full_method_name(ArgT0&& arg0, ArgT... args);
207
  std::string* mutable_full_method_name();
208
  PROTOBUF_NODISCARD std::string* release_full_method_name();
209
  void set_allocated_full_method_name(std::string* full_method_name);
210
  private:
211
  const std::string& _internal_full_method_name() const;
212
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_full_method_name(const std::string& value);
213
  std::string* _internal_mutable_full_method_name();
214
  public:
215
216
  // optional bytes user_string = 9;
217
  bool has_user_string() const;
218
  private:
219
  bool _internal_has_user_string() const;
220
  public:
221
  void clear_user_string();
222
  const std::string& user_string() const;
223
  template <typename ArgT0 = const std::string&, typename... ArgT>
224
  void set_user_string(ArgT0&& arg0, ArgT... args);
225
  std::string* mutable_user_string();
226
  PROTOBUF_NODISCARD std::string* release_user_string();
227
  void set_allocated_user_string(std::string* user_string);
228
  private:
229
  const std::string& _internal_user_string() const;
230
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_user_string(const std::string& value);
231
  std::string* _internal_mutable_user_string();
232
  public:
233
234
  // optional int64 correlation_id = 2;
235
  bool has_correlation_id() const;
236
  private:
237
  bool _internal_has_correlation_id() const;
238
  public:
239
  void clear_correlation_id();
240
  int64_t correlation_id() const;
241
  void set_correlation_id(int64_t value);
242
  private:
243
  int64_t _internal_correlation_id() const;
244
  void _internal_set_correlation_id(int64_t value);
245
  public:
246
247
  // optional int64 log_id = 3;
248
  bool has_log_id() const;
249
  private:
250
  bool _internal_has_log_id() const;
251
  public:
252
  void clear_log_id();
253
  int64_t log_id() const;
254
  void set_log_id(int64_t value);
255
  private:
256
  int64_t _internal_log_id() const;
257
  void _internal_set_log_id(int64_t value);
258
  public:
259
260
  // optional int32 attachment_size = 4;
261
  bool has_attachment_size() const;
262
  private:
263
  bool _internal_has_attachment_size() const;
264
  public:
265
  void clear_attachment_size();
266
  int32_t attachment_size() const;
267
  void set_attachment_size(int32_t value);
268
  private:
269
  int32_t _internal_attachment_size() const;
270
  void _internal_set_attachment_size(int32_t value);
271
  public:
272
273
  // optional .brpc.CompressType compress_type = 5;
274
  bool has_compress_type() const;
275
  private:
276
  bool _internal_has_compress_type() const;
277
  public:
278
  void clear_compress_type();
279
  ::brpc::CompressType compress_type() const;
280
  void set_compress_type(::brpc::CompressType value);
281
  private:
282
  ::brpc::CompressType _internal_compress_type() const;
283
  void _internal_set_compress_type(::brpc::CompressType value);
284
  public:
285
286
  // optional int64 trace_id = 6;
287
  bool has_trace_id() const;
288
  private:
289
  bool _internal_has_trace_id() const;
290
  public:
291
  void clear_trace_id();
292
  int64_t trace_id() const;
293
  void set_trace_id(int64_t value);
294
  private:
295
  int64_t _internal_trace_id() const;
296
  void _internal_set_trace_id(int64_t value);
297
  public:
298
299
  // optional int64 span_id = 7;
300
  bool has_span_id() const;
301
  private:
302
  bool _internal_has_span_id() const;
303
  public:
304
  void clear_span_id();
305
  int64_t span_id() const;
306
  void set_span_id(int64_t value);
307
  private:
308
  int64_t _internal_span_id() const;
309
  void _internal_set_span_id(int64_t value);
310
  public:
311
312
  // optional int64 parent_span_id = 8;
313
  bool has_parent_span_id() const;
314
  private:
315
  bool _internal_has_parent_span_id() const;
316
  public:
317
  void clear_parent_span_id();
318
  int64_t parent_span_id() const;
319
  void set_parent_span_id(int64_t value);
320
  private:
321
  int64_t _internal_parent_span_id() const;
322
  void _internal_set_parent_span_id(int64_t value);
323
  public:
324
325
  // @@protoc_insertion_point(class_scope:brpc.NsheadMeta)
326
 private:
327
  class _Internal;
328
329
  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
330
  typedef void InternalArenaConstructable_;
331
  typedef void DestructorSkippable_;
332
  struct Impl_ {
333
    ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
334
    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
335
    ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr full_method_name_;
336
    ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr user_string_;
337
    int64_t correlation_id_;
338
    int64_t log_id_;
339
    int32_t attachment_size_;
340
    int compress_type_;
341
    int64_t trace_id_;
342
    int64_t span_id_;
343
    int64_t parent_span_id_;
344
  };
345
  union { Impl_ _impl_; };
346
  friend struct ::TableStruct_brpc_2fnshead_5fmeta_2eproto;
347
};
348
// ===================================================================
349
350
351
// ===================================================================
352
353
#ifdef __GNUC__
354
  #pragma GCC diagnostic push
355
  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
356
#endif  // __GNUC__
357
// NsheadMeta
358
359
// required string full_method_name = 1;
360
0
inline bool NsheadMeta::_internal_has_full_method_name() const {
361
0
  bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
362
0
  return value;
363
0
}
364
0
inline bool NsheadMeta::has_full_method_name() const {
365
0
  return _internal_has_full_method_name();
366
0
}
367
0
inline void NsheadMeta::clear_full_method_name() {
368
0
  _impl_.full_method_name_.ClearToEmpty();
369
0
  _impl_._has_bits_[0] &= ~0x00000001u;
370
0
}
371
0
inline const std::string& NsheadMeta::full_method_name() const {
372
  // @@protoc_insertion_point(field_get:brpc.NsheadMeta.full_method_name)
373
0
  return _internal_full_method_name();
374
0
}
375
template <typename ArgT0, typename... ArgT>
376
inline PROTOBUF_ALWAYS_INLINE
377
0
void NsheadMeta::set_full_method_name(ArgT0&& arg0, ArgT... args) {
378
0
 _impl_._has_bits_[0] |= 0x00000001u;
379
0
 _impl_.full_method_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
380
  // @@protoc_insertion_point(field_set:brpc.NsheadMeta.full_method_name)
381
0
}
Unexecuted instantiation: void brpc::NsheadMeta::set_full_method_name<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
Unexecuted instantiation: void brpc::NsheadMeta::set_full_method_name<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)
382
0
inline std::string* NsheadMeta::mutable_full_method_name() {
383
0
  std::string* _s = _internal_mutable_full_method_name();
384
0
  // @@protoc_insertion_point(field_mutable:brpc.NsheadMeta.full_method_name)
385
0
  return _s;
386
0
}
387
0
inline const std::string& NsheadMeta::_internal_full_method_name() const {
388
0
  return _impl_.full_method_name_.Get();
389
0
}
390
0
inline void NsheadMeta::_internal_set_full_method_name(const std::string& value) {
391
0
  _impl_._has_bits_[0] |= 0x00000001u;
392
0
  _impl_.full_method_name_.Set(value, GetArenaForAllocation());
393
0
}
394
0
inline std::string* NsheadMeta::_internal_mutable_full_method_name() {
395
0
  _impl_._has_bits_[0] |= 0x00000001u;
396
0
  return _impl_.full_method_name_.Mutable(GetArenaForAllocation());
397
0
}
398
0
inline std::string* NsheadMeta::release_full_method_name() {
399
0
  // @@protoc_insertion_point(field_release:brpc.NsheadMeta.full_method_name)
400
0
  if (!_internal_has_full_method_name()) {
401
0
    return nullptr;
402
0
  }
403
0
  _impl_._has_bits_[0] &= ~0x00000001u;
404
0
  auto* p = _impl_.full_method_name_.Release();
405
0
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
406
0
  if (_impl_.full_method_name_.IsDefault()) {
407
0
    _impl_.full_method_name_.Set("", GetArenaForAllocation());
408
0
  }
409
0
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
410
0
  return p;
411
0
}
412
0
inline void NsheadMeta::set_allocated_full_method_name(std::string* full_method_name) {
413
0
  if (full_method_name != nullptr) {
414
0
    _impl_._has_bits_[0] |= 0x00000001u;
415
0
  } else {
416
0
    _impl_._has_bits_[0] &= ~0x00000001u;
417
0
  }
418
0
  _impl_.full_method_name_.SetAllocated(full_method_name, GetArenaForAllocation());
419
0
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
420
0
  if (_impl_.full_method_name_.IsDefault()) {
421
0
    _impl_.full_method_name_.Set("", GetArenaForAllocation());
422
0
  }
423
0
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
424
0
  // @@protoc_insertion_point(field_set_allocated:brpc.NsheadMeta.full_method_name)
425
0
}
426
427
// optional int64 correlation_id = 2;
428
0
inline bool NsheadMeta::_internal_has_correlation_id() const {
429
0
  bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
430
0
  return value;
431
0
}
432
0
inline bool NsheadMeta::has_correlation_id() const {
433
0
  return _internal_has_correlation_id();
434
0
}
435
0
inline void NsheadMeta::clear_correlation_id() {
436
0
  _impl_.correlation_id_ = int64_t{0};
437
0
  _impl_._has_bits_[0] &= ~0x00000004u;
438
0
}
439
0
inline int64_t NsheadMeta::_internal_correlation_id() const {
440
0
  return _impl_.correlation_id_;
441
0
}
442
0
inline int64_t NsheadMeta::correlation_id() const {
443
  // @@protoc_insertion_point(field_get:brpc.NsheadMeta.correlation_id)
444
0
  return _internal_correlation_id();
445
0
}
446
0
inline void NsheadMeta::_internal_set_correlation_id(int64_t value) {
447
0
  _impl_._has_bits_[0] |= 0x00000004u;
448
0
  _impl_.correlation_id_ = value;
449
0
}
450
0
inline void NsheadMeta::set_correlation_id(int64_t value) {
451
0
  _internal_set_correlation_id(value);
452
  // @@protoc_insertion_point(field_set:brpc.NsheadMeta.correlation_id)
453
0
}
454
455
// optional int64 log_id = 3;
456
0
inline bool NsheadMeta::_internal_has_log_id() const {
457
0
  bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
458
0
  return value;
459
0
}
460
0
inline bool NsheadMeta::has_log_id() const {
461
0
  return _internal_has_log_id();
462
0
}
463
0
inline void NsheadMeta::clear_log_id() {
464
0
  _impl_.log_id_ = int64_t{0};
465
0
  _impl_._has_bits_[0] &= ~0x00000008u;
466
0
}
467
0
inline int64_t NsheadMeta::_internal_log_id() const {
468
0
  return _impl_.log_id_;
469
0
}
470
0
inline int64_t NsheadMeta::log_id() const {
471
  // @@protoc_insertion_point(field_get:brpc.NsheadMeta.log_id)
472
0
  return _internal_log_id();
473
0
}
474
0
inline void NsheadMeta::_internal_set_log_id(int64_t value) {
475
0
  _impl_._has_bits_[0] |= 0x00000008u;
476
0
  _impl_.log_id_ = value;
477
0
}
478
0
inline void NsheadMeta::set_log_id(int64_t value) {
479
0
  _internal_set_log_id(value);
480
  // @@protoc_insertion_point(field_set:brpc.NsheadMeta.log_id)
481
0
}
482
483
// optional int32 attachment_size = 4;
484
0
inline bool NsheadMeta::_internal_has_attachment_size() const {
485
0
  bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
486
0
  return value;
487
0
}
488
0
inline bool NsheadMeta::has_attachment_size() const {
489
0
  return _internal_has_attachment_size();
490
0
}
491
0
inline void NsheadMeta::clear_attachment_size() {
492
0
  _impl_.attachment_size_ = 0;
493
0
  _impl_._has_bits_[0] &= ~0x00000010u;
494
0
}
495
0
inline int32_t NsheadMeta::_internal_attachment_size() const {
496
0
  return _impl_.attachment_size_;
497
0
}
498
0
inline int32_t NsheadMeta::attachment_size() const {
499
0
  // @@protoc_insertion_point(field_get:brpc.NsheadMeta.attachment_size)
500
0
  return _internal_attachment_size();
501
0
}
502
0
inline void NsheadMeta::_internal_set_attachment_size(int32_t value) {
503
0
  _impl_._has_bits_[0] |= 0x00000010u;
504
0
  _impl_.attachment_size_ = value;
505
0
}
506
0
inline void NsheadMeta::set_attachment_size(int32_t value) {
507
0
  _internal_set_attachment_size(value);
508
0
  // @@protoc_insertion_point(field_set:brpc.NsheadMeta.attachment_size)
509
0
}
510
511
// optional .brpc.CompressType compress_type = 5;
512
0
inline bool NsheadMeta::_internal_has_compress_type() const {
513
0
  bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
514
0
  return value;
515
0
}
516
0
inline bool NsheadMeta::has_compress_type() const {
517
0
  return _internal_has_compress_type();
518
0
}
519
0
inline void NsheadMeta::clear_compress_type() {
520
0
  _impl_.compress_type_ = 0;
521
0
  _impl_._has_bits_[0] &= ~0x00000020u;
522
0
}
523
0
inline ::brpc::CompressType NsheadMeta::_internal_compress_type() const {
524
0
  return static_cast< ::brpc::CompressType >(_impl_.compress_type_);
525
0
}
526
0
inline ::brpc::CompressType NsheadMeta::compress_type() const {
527
  // @@protoc_insertion_point(field_get:brpc.NsheadMeta.compress_type)
528
0
  return _internal_compress_type();
529
0
}
530
0
inline void NsheadMeta::_internal_set_compress_type(::brpc::CompressType value) {
531
0
  assert(::brpc::CompressType_IsValid(value));
532
0
  _impl_._has_bits_[0] |= 0x00000020u;
533
0
  _impl_.compress_type_ = value;
534
0
}
535
0
inline void NsheadMeta::set_compress_type(::brpc::CompressType value) {
536
0
  _internal_set_compress_type(value);
537
  // @@protoc_insertion_point(field_set:brpc.NsheadMeta.compress_type)
538
0
}
539
540
// optional int64 trace_id = 6;
541
0
inline bool NsheadMeta::_internal_has_trace_id() const {
542
0
  bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0;
543
0
  return value;
544
0
}
545
0
inline bool NsheadMeta::has_trace_id() const {
546
0
  return _internal_has_trace_id();
547
0
}
548
0
inline void NsheadMeta::clear_trace_id() {
549
0
  _impl_.trace_id_ = int64_t{0};
550
0
  _impl_._has_bits_[0] &= ~0x00000040u;
551
0
}
552
0
inline int64_t NsheadMeta::_internal_trace_id() const {
553
0
  return _impl_.trace_id_;
554
0
}
555
0
inline int64_t NsheadMeta::trace_id() const {
556
0
  // @@protoc_insertion_point(field_get:brpc.NsheadMeta.trace_id)
557
0
  return _internal_trace_id();
558
0
}
559
0
inline void NsheadMeta::_internal_set_trace_id(int64_t value) {
560
0
  _impl_._has_bits_[0] |= 0x00000040u;
561
0
  _impl_.trace_id_ = value;
562
0
}
563
0
inline void NsheadMeta::set_trace_id(int64_t value) {
564
0
  _internal_set_trace_id(value);
565
0
  // @@protoc_insertion_point(field_set:brpc.NsheadMeta.trace_id)
566
0
}
567
568
// optional int64 span_id = 7;
569
0
inline bool NsheadMeta::_internal_has_span_id() const {
570
0
  bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0;
571
0
  return value;
572
0
}
573
0
inline bool NsheadMeta::has_span_id() const {
574
0
  return _internal_has_span_id();
575
0
}
576
0
inline void NsheadMeta::clear_span_id() {
577
0
  _impl_.span_id_ = int64_t{0};
578
0
  _impl_._has_bits_[0] &= ~0x00000080u;
579
0
}
580
0
inline int64_t NsheadMeta::_internal_span_id() const {
581
0
  return _impl_.span_id_;
582
0
}
583
0
inline int64_t NsheadMeta::span_id() const {
584
0
  // @@protoc_insertion_point(field_get:brpc.NsheadMeta.span_id)
585
0
  return _internal_span_id();
586
0
}
587
0
inline void NsheadMeta::_internal_set_span_id(int64_t value) {
588
0
  _impl_._has_bits_[0] |= 0x00000080u;
589
0
  _impl_.span_id_ = value;
590
0
}
591
0
inline void NsheadMeta::set_span_id(int64_t value) {
592
0
  _internal_set_span_id(value);
593
0
  // @@protoc_insertion_point(field_set:brpc.NsheadMeta.span_id)
594
0
}
595
596
// optional int64 parent_span_id = 8;
597
0
inline bool NsheadMeta::_internal_has_parent_span_id() const {
598
0
  bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0;
599
0
  return value;
600
0
}
601
0
inline bool NsheadMeta::has_parent_span_id() const {
602
0
  return _internal_has_parent_span_id();
603
0
}
604
0
inline void NsheadMeta::clear_parent_span_id() {
605
0
  _impl_.parent_span_id_ = int64_t{0};
606
0
  _impl_._has_bits_[0] &= ~0x00000100u;
607
0
}
608
0
inline int64_t NsheadMeta::_internal_parent_span_id() const {
609
0
  return _impl_.parent_span_id_;
610
0
}
611
0
inline int64_t NsheadMeta::parent_span_id() const {
612
0
  // @@protoc_insertion_point(field_get:brpc.NsheadMeta.parent_span_id)
613
0
  return _internal_parent_span_id();
614
0
}
615
0
inline void NsheadMeta::_internal_set_parent_span_id(int64_t value) {
616
0
  _impl_._has_bits_[0] |= 0x00000100u;
617
0
  _impl_.parent_span_id_ = value;
618
0
}
619
0
inline void NsheadMeta::set_parent_span_id(int64_t value) {
620
0
  _internal_set_parent_span_id(value);
621
0
  // @@protoc_insertion_point(field_set:brpc.NsheadMeta.parent_span_id)
622
0
}
623
624
// optional bytes user_string = 9;
625
0
inline bool NsheadMeta::_internal_has_user_string() const {
626
0
  bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
627
0
  return value;
628
0
}
629
0
inline bool NsheadMeta::has_user_string() const {
630
0
  return _internal_has_user_string();
631
0
}
632
0
inline void NsheadMeta::clear_user_string() {
633
0
  _impl_.user_string_.ClearToEmpty();
634
0
  _impl_._has_bits_[0] &= ~0x00000002u;
635
0
}
636
0
inline const std::string& NsheadMeta::user_string() const {
637
  // @@protoc_insertion_point(field_get:brpc.NsheadMeta.user_string)
638
0
  return _internal_user_string();
639
0
}
640
template <typename ArgT0, typename... ArgT>
641
inline PROTOBUF_ALWAYS_INLINE
642
0
void NsheadMeta::set_user_string(ArgT0&& arg0, ArgT... args) {
643
0
 _impl_._has_bits_[0] |= 0x00000002u;
644
0
 _impl_.user_string_.SetBytes(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
645
  // @@protoc_insertion_point(field_set:brpc.NsheadMeta.user_string)
646
0
}
647
0
inline std::string* NsheadMeta::mutable_user_string() {
648
0
  std::string* _s = _internal_mutable_user_string();
649
0
  // @@protoc_insertion_point(field_mutable:brpc.NsheadMeta.user_string)
650
0
  return _s;
651
0
}
652
0
inline const std::string& NsheadMeta::_internal_user_string() const {
653
0
  return _impl_.user_string_.Get();
654
0
}
655
0
inline void NsheadMeta::_internal_set_user_string(const std::string& value) {
656
0
  _impl_._has_bits_[0] |= 0x00000002u;
657
0
  _impl_.user_string_.Set(value, GetArenaForAllocation());
658
0
}
659
0
inline std::string* NsheadMeta::_internal_mutable_user_string() {
660
0
  _impl_._has_bits_[0] |= 0x00000002u;
661
0
  return _impl_.user_string_.Mutable(GetArenaForAllocation());
662
0
}
663
0
inline std::string* NsheadMeta::release_user_string() {
664
0
  // @@protoc_insertion_point(field_release:brpc.NsheadMeta.user_string)
665
0
  if (!_internal_has_user_string()) {
666
0
    return nullptr;
667
0
  }
668
0
  _impl_._has_bits_[0] &= ~0x00000002u;
669
0
  auto* p = _impl_.user_string_.Release();
670
0
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
671
0
  if (_impl_.user_string_.IsDefault()) {
672
0
    _impl_.user_string_.Set("", GetArenaForAllocation());
673
0
  }
674
0
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
675
0
  return p;
676
0
}
677
0
inline void NsheadMeta::set_allocated_user_string(std::string* user_string) {
678
0
  if (user_string != nullptr) {
679
0
    _impl_._has_bits_[0] |= 0x00000002u;
680
0
  } else {
681
0
    _impl_._has_bits_[0] &= ~0x00000002u;
682
0
  }
683
0
  _impl_.user_string_.SetAllocated(user_string, GetArenaForAllocation());
684
0
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
685
0
  if (_impl_.user_string_.IsDefault()) {
686
0
    _impl_.user_string_.Set("", GetArenaForAllocation());
687
0
  }
688
0
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
689
0
  // @@protoc_insertion_point(field_set_allocated:brpc.NsheadMeta.user_string)
690
0
}
691
692
#ifdef __GNUC__
693
  #pragma GCC diagnostic pop
694
#endif  // __GNUC__
695
696
// @@protoc_insertion_point(namespace_scope)
697
698
}  // namespace brpc
699
700
// @@protoc_insertion_point(global_scope)
701
702
#include <google/protobuf/port_undef.inc>
703
#endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_brpc_2fnshead_5fmeta_2eproto