Coverage Report

Created: 2025-08-05 06:45

/src/brpc/build/brpc/nshead_meta.pb.h
Line
Count
Source (jump to first uncovered line)
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: brpc/nshead_meta.proto
3
4
#ifndef PROTOBUF_INCLUDED_brpc_2fnshead_5fmeta_2eproto
5
#define PROTOBUF_INCLUDED_brpc_2fnshead_5fmeta_2eproto
6
7
#include <string>
8
9
#include <google/protobuf/stubs/common.h>
10
11
#if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < GOOGLE_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/io/coded_stream.h>
23
#include <google/protobuf/arena.h>
24
#include <google/protobuf/arenastring.h>
25
#include <google/protobuf/generated_message_table_driven.h>
26
#include <google/protobuf/generated_message_util.h>
27
#include <google/protobuf/inlined_string_field.h>
28
#include <google/protobuf/metadata.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
#define PROTOBUF_INTERNAL_EXPORT_protobuf_brpc_2fnshead_5fmeta_2eproto 
36
37
namespace protobuf_brpc_2fnshead_5fmeta_2eproto {
38
// Internal implementation detail -- do not use these members.
39
struct TableStruct {
40
  static const ::google::protobuf::internal::ParseTableField entries[];
41
  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
42
  static const ::google::protobuf::internal::ParseTable schema[1];
43
  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
44
  static const ::google::protobuf::internal::SerializationTable serialization_table[];
45
  static const ::google::protobuf::uint32 offsets[];
46
};
47
void AddDescriptors();
48
}  // namespace protobuf_brpc_2fnshead_5fmeta_2eproto
49
namespace brpc {
50
class NsheadMeta;
51
class NsheadMetaDefaultTypeInternal;
52
extern NsheadMetaDefaultTypeInternal _NsheadMeta_default_instance_;
53
}  // namespace brpc
54
namespace google {
55
namespace protobuf {
56
template<> ::brpc::NsheadMeta* Arena::CreateMaybeMessage<::brpc::NsheadMeta>(Arena*);
57
}  // namespace protobuf
58
}  // namespace google
59
namespace brpc {
60
61
// ===================================================================
62
63
class NsheadMeta : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:brpc.NsheadMeta) */ {
64
 public:
65
  NsheadMeta();
66
  virtual ~NsheadMeta();
67
68
  NsheadMeta(const NsheadMeta& from);
69
70
0
  inline NsheadMeta& operator=(const NsheadMeta& from) {
71
0
    CopyFrom(from);
72
0
    return *this;
73
0
  }
74
  #if LANG_CXX11
75
  NsheadMeta(NsheadMeta&& from) noexcept
76
0
    : NsheadMeta() {
77
0
    *this = ::std::move(from);
78
0
  }
79
80
0
  inline NsheadMeta& operator=(NsheadMeta&& from) noexcept {
81
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
82
0
      if (this != &from) InternalSwap(&from);
83
0
    } else {
84
0
      CopyFrom(from);
85
0
    }
86
0
    return *this;
87
0
  }
88
  #endif
89
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
90
0
    return _internal_metadata_.unknown_fields();
91
0
  }
92
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
93
0
    return _internal_metadata_.mutable_unknown_fields();
94
0
  }
95
96
  static const ::google::protobuf::Descriptor* descriptor();
97
  static const NsheadMeta& default_instance();
98
99
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
100
0
  static inline const NsheadMeta* internal_default_instance() {
101
0
    return reinterpret_cast<const NsheadMeta*>(
102
0
               &_NsheadMeta_default_instance_);
103
0
  }
104
  static constexpr int kIndexInFileMessages =
105
    0;
106
107
  void Swap(NsheadMeta* other);
108
0
  friend void swap(NsheadMeta& a, NsheadMeta& b) {
109
0
    a.Swap(&b);
110
0
  }
111
112
  // implements Message ----------------------------------------------
113
114
0
  inline NsheadMeta* New() const final {
115
0
    return CreateMaybeMessage<NsheadMeta>(NULL);
116
0
  }
117
118
0
  NsheadMeta* New(::google::protobuf::Arena* arena) const final {
119
0
    return CreateMaybeMessage<NsheadMeta>(arena);
120
0
  }
121
  void CopyFrom(const ::google::protobuf::Message& from) final;
122
  void MergeFrom(const ::google::protobuf::Message& from) final;
123
  void CopyFrom(const NsheadMeta& from);
124
  void MergeFrom(const NsheadMeta& from);
125
  void Clear() final;
126
  bool IsInitialized() const final;
127
128
  size_t ByteSizeLong() const final;
129
  bool MergePartialFromCodedStream(
130
      ::google::protobuf::io::CodedInputStream* input) final;
131
  void SerializeWithCachedSizes(
132
      ::google::protobuf::io::CodedOutputStream* output) const final;
133
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
134
      bool deterministic, ::google::protobuf::uint8* target) const final;
135
0
  int GetCachedSize() const final { return _cached_size_.Get(); }
136
137
  private:
138
  void SharedCtor();
139
  void SharedDtor();
140
  void SetCachedSize(int size) const final;
141
  void InternalSwap(NsheadMeta* other);
142
  private:
143
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
144
0
    return NULL;
145
0
  }
146
0
  inline void* MaybeArenaPtr() const {
147
0
    return NULL;
148
0
  }
149
  public:
150
151
  ::google::protobuf::Metadata GetMetadata() const final;
152
153
  // nested types ----------------------------------------------------
154
155
  // accessors -------------------------------------------------------
156
157
  // required string full_method_name = 1;
158
  bool has_full_method_name() const;
159
  void clear_full_method_name();
160
  static const int kFullMethodNameFieldNumber = 1;
161
  const ::std::string& full_method_name() const;
162
  void set_full_method_name(const ::std::string& value);
163
  #if LANG_CXX11
164
  void set_full_method_name(::std::string&& value);
165
  #endif
166
  void set_full_method_name(const char* value);
167
  void set_full_method_name(const char* value, size_t size);
168
  ::std::string* mutable_full_method_name();
169
  ::std::string* release_full_method_name();
170
  void set_allocated_full_method_name(::std::string* full_method_name);
171
172
  // optional bytes user_string = 9;
173
  bool has_user_string() const;
174
  void clear_user_string();
175
  static const int kUserStringFieldNumber = 9;
176
  const ::std::string& user_string() const;
177
  void set_user_string(const ::std::string& value);
178
  #if LANG_CXX11
179
  void set_user_string(::std::string&& value);
180
  #endif
181
  void set_user_string(const char* value);
182
  void set_user_string(const void* value, size_t size);
183
  ::std::string* mutable_user_string();
184
  ::std::string* release_user_string();
185
  void set_allocated_user_string(::std::string* user_string);
186
187
  // optional int64 correlation_id = 2;
188
  bool has_correlation_id() const;
189
  void clear_correlation_id();
190
  static const int kCorrelationIdFieldNumber = 2;
191
  ::google::protobuf::int64 correlation_id() const;
192
  void set_correlation_id(::google::protobuf::int64 value);
193
194
  // optional int64 log_id = 3;
195
  bool has_log_id() const;
196
  void clear_log_id();
197
  static const int kLogIdFieldNumber = 3;
198
  ::google::protobuf::int64 log_id() const;
199
  void set_log_id(::google::protobuf::int64 value);
200
201
  // optional int32 attachment_size = 4;
202
  bool has_attachment_size() const;
203
  void clear_attachment_size();
204
  static const int kAttachmentSizeFieldNumber = 4;
205
  ::google::protobuf::int32 attachment_size() const;
206
  void set_attachment_size(::google::protobuf::int32 value);
207
208
  // optional .brpc.CompressType compress_type = 5;
209
  bool has_compress_type() const;
210
  void clear_compress_type();
211
  static const int kCompressTypeFieldNumber = 5;
212
  ::brpc::CompressType compress_type() const;
213
  void set_compress_type(::brpc::CompressType value);
214
215
  // optional int64 trace_id = 6;
216
  bool has_trace_id() const;
217
  void clear_trace_id();
218
  static const int kTraceIdFieldNumber = 6;
219
  ::google::protobuf::int64 trace_id() const;
220
  void set_trace_id(::google::protobuf::int64 value);
221
222
  // optional int64 span_id = 7;
223
  bool has_span_id() const;
224
  void clear_span_id();
225
  static const int kSpanIdFieldNumber = 7;
226
  ::google::protobuf::int64 span_id() const;
227
  void set_span_id(::google::protobuf::int64 value);
228
229
  // optional int64 parent_span_id = 8;
230
  bool has_parent_span_id() const;
231
  void clear_parent_span_id();
232
  static const int kParentSpanIdFieldNumber = 8;
233
  ::google::protobuf::int64 parent_span_id() const;
234
  void set_parent_span_id(::google::protobuf::int64 value);
235
236
  // @@protoc_insertion_point(class_scope:brpc.NsheadMeta)
237
 private:
238
  void set_has_full_method_name();
239
  void clear_has_full_method_name();
240
  void set_has_correlation_id();
241
  void clear_has_correlation_id();
242
  void set_has_log_id();
243
  void clear_has_log_id();
244
  void set_has_attachment_size();
245
  void clear_has_attachment_size();
246
  void set_has_compress_type();
247
  void clear_has_compress_type();
248
  void set_has_trace_id();
249
  void clear_has_trace_id();
250
  void set_has_span_id();
251
  void clear_has_span_id();
252
  void set_has_parent_span_id();
253
  void clear_has_parent_span_id();
254
  void set_has_user_string();
255
  void clear_has_user_string();
256
257
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
258
  ::google::protobuf::internal::HasBits<1> _has_bits_;
259
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
260
  ::google::protobuf::internal::ArenaStringPtr full_method_name_;
261
  ::google::protobuf::internal::ArenaStringPtr user_string_;
262
  ::google::protobuf::int64 correlation_id_;
263
  ::google::protobuf::int64 log_id_;
264
  ::google::protobuf::int32 attachment_size_;
265
  int compress_type_;
266
  ::google::protobuf::int64 trace_id_;
267
  ::google::protobuf::int64 span_id_;
268
  ::google::protobuf::int64 parent_span_id_;
269
  friend struct ::protobuf_brpc_2fnshead_5fmeta_2eproto::TableStruct;
270
};
271
// ===================================================================
272
273
274
// ===================================================================
275
276
#ifdef __GNUC__
277
  #pragma GCC diagnostic push
278
  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
279
#endif  // __GNUC__
280
// NsheadMeta
281
282
// required string full_method_name = 1;
283
0
inline bool NsheadMeta::has_full_method_name() const {
284
0
  return (_has_bits_[0] & 0x00000001u) != 0;
285
0
}
286
0
inline void NsheadMeta::set_has_full_method_name() {
287
0
  _has_bits_[0] |= 0x00000001u;
288
0
}
289
0
inline void NsheadMeta::clear_has_full_method_name() {
290
0
  _has_bits_[0] &= ~0x00000001u;
291
0
}
292
0
inline void NsheadMeta::clear_full_method_name() {
293
0
  full_method_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
294
0
  clear_has_full_method_name();
295
0
}
296
0
inline const ::std::string& NsheadMeta::full_method_name() const {
297
  // @@protoc_insertion_point(field_get:brpc.NsheadMeta.full_method_name)
298
0
  return full_method_name_.GetNoArena();
299
0
}
300
0
inline void NsheadMeta::set_full_method_name(const ::std::string& value) {
301
0
  set_has_full_method_name();
302
0
  full_method_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
303
  // @@protoc_insertion_point(field_set:brpc.NsheadMeta.full_method_name)
304
0
}
305
#if LANG_CXX11
306
0
inline void NsheadMeta::set_full_method_name(::std::string&& value) {
307
0
  set_has_full_method_name();
308
0
  full_method_name_.SetNoArena(
309
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
310
0
  // @@protoc_insertion_point(field_set_rvalue:brpc.NsheadMeta.full_method_name)
311
0
}
312
#endif
313
0
inline void NsheadMeta::set_full_method_name(const char* value) {
314
0
  GOOGLE_DCHECK(value != NULL);
315
0
  set_has_full_method_name();
316
0
  full_method_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
317
0
  // @@protoc_insertion_point(field_set_char:brpc.NsheadMeta.full_method_name)
318
0
}
319
0
inline void NsheadMeta::set_full_method_name(const char* value, size_t size) {
320
0
  set_has_full_method_name();
321
0
  full_method_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
322
0
      ::std::string(reinterpret_cast<const char*>(value), size));
323
0
  // @@protoc_insertion_point(field_set_pointer:brpc.NsheadMeta.full_method_name)
324
0
}
325
0
inline ::std::string* NsheadMeta::mutable_full_method_name() {
326
0
  set_has_full_method_name();
327
  // @@protoc_insertion_point(field_mutable:brpc.NsheadMeta.full_method_name)
328
0
  return full_method_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
329
0
}
330
0
inline ::std::string* NsheadMeta::release_full_method_name() {
331
0
  // @@protoc_insertion_point(field_release:brpc.NsheadMeta.full_method_name)
332
0
  if (!has_full_method_name()) {
333
0
    return NULL;
334
0
  }
335
0
  clear_has_full_method_name();
336
0
  return full_method_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
337
0
}
338
0
inline void NsheadMeta::set_allocated_full_method_name(::std::string* full_method_name) {
339
0
  if (full_method_name != NULL) {
340
0
    set_has_full_method_name();
341
0
  } else {
342
0
    clear_has_full_method_name();
343
0
  }
344
0
  full_method_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), full_method_name);
345
0
  // @@protoc_insertion_point(field_set_allocated:brpc.NsheadMeta.full_method_name)
346
0
}
347
348
// optional int64 correlation_id = 2;
349
0
inline bool NsheadMeta::has_correlation_id() const {
350
0
  return (_has_bits_[0] & 0x00000004u) != 0;
351
0
}
352
0
inline void NsheadMeta::set_has_correlation_id() {
353
0
  _has_bits_[0] |= 0x00000004u;
354
0
}
355
0
inline void NsheadMeta::clear_has_correlation_id() {
356
0
  _has_bits_[0] &= ~0x00000004u;
357
0
}
358
0
inline void NsheadMeta::clear_correlation_id() {
359
0
  correlation_id_ = GOOGLE_LONGLONG(0);
360
0
  clear_has_correlation_id();
361
0
}
362
0
inline ::google::protobuf::int64 NsheadMeta::correlation_id() const {
363
  // @@protoc_insertion_point(field_get:brpc.NsheadMeta.correlation_id)
364
0
  return correlation_id_;
365
0
}
366
0
inline void NsheadMeta::set_correlation_id(::google::protobuf::int64 value) {
367
0
  set_has_correlation_id();
368
0
  correlation_id_ = value;
369
  // @@protoc_insertion_point(field_set:brpc.NsheadMeta.correlation_id)
370
0
}
371
372
// optional int64 log_id = 3;
373
0
inline bool NsheadMeta::has_log_id() const {
374
0
  return (_has_bits_[0] & 0x00000008u) != 0;
375
0
}
376
0
inline void NsheadMeta::set_has_log_id() {
377
0
  _has_bits_[0] |= 0x00000008u;
378
0
}
379
0
inline void NsheadMeta::clear_has_log_id() {
380
0
  _has_bits_[0] &= ~0x00000008u;
381
0
}
382
0
inline void NsheadMeta::clear_log_id() {
383
0
  log_id_ = GOOGLE_LONGLONG(0);
384
0
  clear_has_log_id();
385
0
}
386
0
inline ::google::protobuf::int64 NsheadMeta::log_id() const {
387
  // @@protoc_insertion_point(field_get:brpc.NsheadMeta.log_id)
388
0
  return log_id_;
389
0
}
390
0
inline void NsheadMeta::set_log_id(::google::protobuf::int64 value) {
391
0
  set_has_log_id();
392
0
  log_id_ = value;
393
  // @@protoc_insertion_point(field_set:brpc.NsheadMeta.log_id)
394
0
}
395
396
// optional int32 attachment_size = 4;
397
0
inline bool NsheadMeta::has_attachment_size() const {
398
0
  return (_has_bits_[0] & 0x00000010u) != 0;
399
0
}
400
0
inline void NsheadMeta::set_has_attachment_size() {
401
0
  _has_bits_[0] |= 0x00000010u;
402
0
}
403
0
inline void NsheadMeta::clear_has_attachment_size() {
404
0
  _has_bits_[0] &= ~0x00000010u;
405
0
}
406
0
inline void NsheadMeta::clear_attachment_size() {
407
0
  attachment_size_ = 0;
408
0
  clear_has_attachment_size();
409
0
}
410
0
inline ::google::protobuf::int32 NsheadMeta::attachment_size() const {
411
  // @@protoc_insertion_point(field_get:brpc.NsheadMeta.attachment_size)
412
0
  return attachment_size_;
413
0
}
414
0
inline void NsheadMeta::set_attachment_size(::google::protobuf::int32 value) {
415
0
  set_has_attachment_size();
416
0
  attachment_size_ = value;
417
0
  // @@protoc_insertion_point(field_set:brpc.NsheadMeta.attachment_size)
418
0
}
419
420
// optional .brpc.CompressType compress_type = 5;
421
0
inline bool NsheadMeta::has_compress_type() const {
422
0
  return (_has_bits_[0] & 0x00000020u) != 0;
423
0
}
424
0
inline void NsheadMeta::set_has_compress_type() {
425
0
  _has_bits_[0] |= 0x00000020u;
426
0
}
427
0
inline void NsheadMeta::clear_has_compress_type() {
428
0
  _has_bits_[0] &= ~0x00000020u;
429
0
}
430
0
inline void NsheadMeta::clear_compress_type() {
431
0
  compress_type_ = 0;
432
0
  clear_has_compress_type();
433
0
}
434
0
inline ::brpc::CompressType NsheadMeta::compress_type() const {
435
  // @@protoc_insertion_point(field_get:brpc.NsheadMeta.compress_type)
436
0
  return static_cast< ::brpc::CompressType >(compress_type_);
437
0
}
438
0
inline void NsheadMeta::set_compress_type(::brpc::CompressType value) {
439
0
  assert(::brpc::CompressType_IsValid(value));
440
0
  set_has_compress_type();
441
0
  compress_type_ = value;
442
  // @@protoc_insertion_point(field_set:brpc.NsheadMeta.compress_type)
443
0
}
444
445
// optional int64 trace_id = 6;
446
0
inline bool NsheadMeta::has_trace_id() const {
447
0
  return (_has_bits_[0] & 0x00000040u) != 0;
448
0
}
449
0
inline void NsheadMeta::set_has_trace_id() {
450
0
  _has_bits_[0] |= 0x00000040u;
451
0
}
452
0
inline void NsheadMeta::clear_has_trace_id() {
453
0
  _has_bits_[0] &= ~0x00000040u;
454
0
}
455
0
inline void NsheadMeta::clear_trace_id() {
456
0
  trace_id_ = GOOGLE_LONGLONG(0);
457
0
  clear_has_trace_id();
458
0
}
459
0
inline ::google::protobuf::int64 NsheadMeta::trace_id() const {
460
  // @@protoc_insertion_point(field_get:brpc.NsheadMeta.trace_id)
461
0
  return trace_id_;
462
0
}
463
0
inline void NsheadMeta::set_trace_id(::google::protobuf::int64 value) {
464
0
  set_has_trace_id();
465
0
  trace_id_ = value;
466
0
  // @@protoc_insertion_point(field_set:brpc.NsheadMeta.trace_id)
467
0
}
468
469
// optional int64 span_id = 7;
470
0
inline bool NsheadMeta::has_span_id() const {
471
0
  return (_has_bits_[0] & 0x00000080u) != 0;
472
0
}
473
0
inline void NsheadMeta::set_has_span_id() {
474
0
  _has_bits_[0] |= 0x00000080u;
475
0
}
476
0
inline void NsheadMeta::clear_has_span_id() {
477
0
  _has_bits_[0] &= ~0x00000080u;
478
0
}
479
0
inline void NsheadMeta::clear_span_id() {
480
0
  span_id_ = GOOGLE_LONGLONG(0);
481
0
  clear_has_span_id();
482
0
}
483
0
inline ::google::protobuf::int64 NsheadMeta::span_id() const {
484
  // @@protoc_insertion_point(field_get:brpc.NsheadMeta.span_id)
485
0
  return span_id_;
486
0
}
487
0
inline void NsheadMeta::set_span_id(::google::protobuf::int64 value) {
488
0
  set_has_span_id();
489
0
  span_id_ = value;
490
0
  // @@protoc_insertion_point(field_set:brpc.NsheadMeta.span_id)
491
0
}
492
493
// optional int64 parent_span_id = 8;
494
0
inline bool NsheadMeta::has_parent_span_id() const {
495
0
  return (_has_bits_[0] & 0x00000100u) != 0;
496
0
}
497
0
inline void NsheadMeta::set_has_parent_span_id() {
498
0
  _has_bits_[0] |= 0x00000100u;
499
0
}
500
0
inline void NsheadMeta::clear_has_parent_span_id() {
501
0
  _has_bits_[0] &= ~0x00000100u;
502
0
}
503
0
inline void NsheadMeta::clear_parent_span_id() {
504
0
  parent_span_id_ = GOOGLE_LONGLONG(0);
505
0
  clear_has_parent_span_id();
506
0
}
507
0
inline ::google::protobuf::int64 NsheadMeta::parent_span_id() const {
508
  // @@protoc_insertion_point(field_get:brpc.NsheadMeta.parent_span_id)
509
0
  return parent_span_id_;
510
0
}
511
0
inline void NsheadMeta::set_parent_span_id(::google::protobuf::int64 value) {
512
0
  set_has_parent_span_id();
513
0
  parent_span_id_ = value;
514
  // @@protoc_insertion_point(field_set:brpc.NsheadMeta.parent_span_id)
515
0
}
516
517
// optional bytes user_string = 9;
518
0
inline bool NsheadMeta::has_user_string() const {
519
0
  return (_has_bits_[0] & 0x00000002u) != 0;
520
0
}
521
0
inline void NsheadMeta::set_has_user_string() {
522
0
  _has_bits_[0] |= 0x00000002u;
523
0
}
524
0
inline void NsheadMeta::clear_has_user_string() {
525
0
  _has_bits_[0] &= ~0x00000002u;
526
0
}
527
0
inline void NsheadMeta::clear_user_string() {
528
0
  user_string_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
529
0
  clear_has_user_string();
530
0
}
531
0
inline const ::std::string& NsheadMeta::user_string() const {
532
  // @@protoc_insertion_point(field_get:brpc.NsheadMeta.user_string)
533
0
  return user_string_.GetNoArena();
534
0
}
535
0
inline void NsheadMeta::set_user_string(const ::std::string& value) {
536
0
  set_has_user_string();
537
0
  user_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
538
  // @@protoc_insertion_point(field_set:brpc.NsheadMeta.user_string)
539
0
}
540
#if LANG_CXX11
541
0
inline void NsheadMeta::set_user_string(::std::string&& value) {
542
0
  set_has_user_string();
543
0
  user_string_.SetNoArena(
544
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
545
0
  // @@protoc_insertion_point(field_set_rvalue:brpc.NsheadMeta.user_string)
546
0
}
547
#endif
548
0
inline void NsheadMeta::set_user_string(const char* value) {
549
0
  GOOGLE_DCHECK(value != NULL);
550
0
  set_has_user_string();
551
0
  user_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
552
0
  // @@protoc_insertion_point(field_set_char:brpc.NsheadMeta.user_string)
553
0
}
554
0
inline void NsheadMeta::set_user_string(const void* value, size_t size) {
555
0
  set_has_user_string();
556
0
  user_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
557
0
      ::std::string(reinterpret_cast<const char*>(value), size));
558
0
  // @@protoc_insertion_point(field_set_pointer:brpc.NsheadMeta.user_string)
559
0
}
560
0
inline ::std::string* NsheadMeta::mutable_user_string() {
561
0
  set_has_user_string();
562
  // @@protoc_insertion_point(field_mutable:brpc.NsheadMeta.user_string)
563
0
  return user_string_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
564
0
}
565
0
inline ::std::string* NsheadMeta::release_user_string() {
566
0
  // @@protoc_insertion_point(field_release:brpc.NsheadMeta.user_string)
567
0
  if (!has_user_string()) {
568
0
    return NULL;
569
0
  }
570
0
  clear_has_user_string();
571
0
  return user_string_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
572
0
}
573
0
inline void NsheadMeta::set_allocated_user_string(::std::string* user_string) {
574
0
  if (user_string != NULL) {
575
0
    set_has_user_string();
576
0
  } else {
577
0
    clear_has_user_string();
578
0
  }
579
0
  user_string_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), user_string);
580
0
  // @@protoc_insertion_point(field_set_allocated:brpc.NsheadMeta.user_string)
581
0
}
582
583
#ifdef __GNUC__
584
  #pragma GCC diagnostic pop
585
#endif  // __GNUC__
586
587
// @@protoc_insertion_point(namespace_scope)
588
589
}  // namespace brpc
590
591
// @@protoc_insertion_point(global_scope)
592
593
#endif  // PROTOBUF_INCLUDED_brpc_2fnshead_5fmeta_2eproto